com.urbancode.ds.jenkins.plugins.serenarapublisher
Class UrbanDeploySite

java.lang.Object
  extended by com.urbancode.ds.jenkins.plugins.serenarapublisher.UrbanDeploySite
All Implemented Interfaces:
Serializable

public class UrbanDeploySite
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
UrbanDeploySite()
          Instantiates a new UrbanDeploy site.
UrbanDeploySite(String profileName, String url, String user, String password)
           
 
Method Summary
 String executeJSONGet(URI uri)
           
 String executeJSONPost(URI uri)
           
 String executeJSONPut(URI uri, String putContents)
           
 String getDisplayName()
          Gets the display name.
 String getPassword()
          Gets the password.
 String getProfileName()
          Gets the profile name.
 String getUrl()
          Gets the url.
 String getUser()
          Gets the username.
 void setPassword(String password)
          Sets the password.
 void setProfileName(String profileName)
          Sets the profile name.
 void setUrl(String url)
          Sets the url.
 void setUser(String user)
          Sets the username.
 void verifyApplicationExists(String applicationName)
           
 void verifyApplicationProcessExists(String applicationProcess, String applicationName)
           
 void verifyComponentExists(String componentName)
           
 void verifyConnection()
           
 void verifyEnvironmentExists(String environmentName, String applicationName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrbanDeploySite

public UrbanDeploySite()
Instantiates a new UrbanDeploy site.

Parameters:
profileName - the profile name
url - the url of the UrbanDeploy instance
username - the username
password - the password

UrbanDeploySite

public UrbanDeploySite(String profileName,
                       String url,
                       String user,
                       String password)
Method Detail

getDisplayName

public String getDisplayName()
Gets the display name.

Returns:
the display name

getProfileName

public String getProfileName()
Gets the profile name.

Returns:
the profile name

setProfileName

public void setProfileName(String profileName)
Sets the profile name.

Parameters:
profileName - the new profile name

getUrl

public String getUrl()
Gets the url.

Returns:
the url

setUrl

public void setUrl(String url)
Sets the url.

Parameters:
url - the new url

getUser

public String getUser()
Gets the username.

Returns:
the username

setUser

public void setUser(String user)
Sets the username.

Parameters:
username - the new username

getPassword

public String getPassword()
Gets the password.

Returns:
the password

setPassword

public void setPassword(String password)
Sets the password.

Parameters:
password - the new password

verifyConnection

public void verifyConnection()
                      throws Exception
Throws:
Exception

verifyComponentExists

public void verifyComponentExists(String componentName)
                           throws Exception
Throws:
Exception

verifyApplicationExists

public void verifyApplicationExists(String applicationName)
                             throws Exception
Throws:
Exception

verifyEnvironmentExists

public void verifyEnvironmentExists(String environmentName,
                                    String applicationName)
                             throws Exception
Throws:
Exception

verifyApplicationProcessExists

public void verifyApplicationProcessExists(String applicationProcess,
                                           String applicationName)
                                    throws Exception
Throws:
Exception

executeJSONGet

public String executeJSONGet(URI uri)
                      throws Exception
Throws:
Exception

executeJSONPut

public String executeJSONPut(URI uri,
                             String putContents)
                      throws Exception
Throws:
Exception

executeJSONPost

public String executeJSONPost(URI uri)
                       throws Exception
Throws:
Exception


Copyright © 2004-2014. All Rights Reserved.