Package org.glassfish.deployment.client
Class ServerConnectionIdentifier
- java.lang.Object
-
- 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
Constructors Constructor Description ServerConnectionIdentifier()
Creates a new instance of ServerConnectionIdentifierServerConnectionIdentifier(String hostName, int hostPort, String userName, String password, boolean secure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
-
-
-
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)
-
-