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 booleanequals(Object other)ServerConnectionEnvironmentgetConnectionEnvironment()StringgetHostName()Getter for property hostName.intgetHostPort()Getter for property hostPort.StringgetPassword()Getter for property password.StringgetProtocol()Getter for property protocol.StringgetUserName()Getter for property userName.inthashCode()booleanisSecure()voidsetConnectionEnvironment(ServerConnectionEnvironment env)voidsetHostName(String hostName)Setter for property hostName.voidsetHostPort(int hostPort)Setter for property hostPort.voidsetPassword(String password)Setter for property password.voidsetSecure(boolean secure)voidsetUserName(String userName)Setter for property userName.StringtoString()
-
-
-
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)
-
-