org.glassfish.deployment.client
Class ServerConnectionIdentifier

java.lang.Object
  extended by org.glassfish.deployment.client.ServerConnectionIdentifier

public class ServerConnectionIdentifier
extends Object

This class defines all necessary information to connect to a particular application server deployment backend.

Author:
Jerome Dochez

Constructor Summary
ServerConnectionIdentifier()
          Creates a new instance of ServerConnectionIdentifier
ServerConnectionIdentifier(String hostName, int hostPort, String userName, String password, boolean secure)
           
 
Method Summary
 boolean equals(Object other)
           
 ServerConnectionEnvironment getConnectionEnvironment()
           
 String getHostName()
          Getter for property hostName.
 int getHostPort()
          Getter for property hostPort.
 String getPassword()
          Getter for property password.
 String getProtocol()
          Getter for property protocol.
 String getUserName()
          Getter for property userName.
 int hashCode()
           
 boolean isSecure()
           
 void setConnectionEnvironment(ServerConnectionEnvironment env)
           
 void setHostName(String hostName)
          Setter for property hostName.
 void setHostPort(int hostPort)
          Setter for property hostPort.
 void setPassword(String password)
          Setter for property password.
 void setSecure(boolean secure)
           
 void setUserName(String userName)
          Setter for property userName.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerConnectionIdentifier

public ServerConnectionIdentifier()
Creates a new instance of ServerConnectionIdentifier


ServerConnectionIdentifier

public ServerConnectionIdentifier(String hostName,
                                  int hostPort,
                                  String userName,
                                  String password,
                                  boolean secure)
Method Detail

getHostName

public String getHostName()
Getter for property hostName.

Returns:
Value of property hostName.

setHostName

public void setHostName(String hostName)
Setter for property hostName.

Parameters:
hostName - New value of property hostName.

getHostPort

public int getHostPort()
Getter for property hostPort.

Returns:
Value of property hostPort.

setHostPort

public void setHostPort(int hostPort)
Setter for property hostPort.

Parameters:
hostPort - New value of property hostPort.

getUserName

public String getUserName()
Getter for property userName.

Returns:
Value of property userName.

setUserName

public void setUserName(String userName)
Setter for property userName.

Parameters:
userName - New value of property userName.

getPassword

public String getPassword()
Getter for property password.

Returns:
Value of property password.

setPassword

public void setPassword(String password)
Setter for property password.

Parameters:
password - New value of property password.

setSecure

public void setSecure(boolean secure)

isSecure

public boolean isSecure()

getConnectionEnvironment

public ServerConnectionEnvironment getConnectionEnvironment()

setConnectionEnvironment

public void setConnectionEnvironment(ServerConnectionEnvironment env)

getProtocol

public String getProtocol()
Getter for property protocol. the protocol can only be two values: either DefaultConfiguration.S1_HTTPS_PROTOCOL, if secure or DefaultConfiguration.S1_HTTP_PROTOCOL, if not secure

Returns:
Value of property protocol.

equals

public boolean equals(Object other)
Overrides:
equals in class Object
Returns:
true if I am the equals to the other object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.