Methods Summary |
---|
public boolean | equals(java.lang.Object other)
if (other instanceof ServerConnectionIdentifier) {
ServerConnectionIdentifier dci = (ServerConnectionIdentifier) other;
if (hostName==null) {
return false;
} else {
if (!hostName.equals(dci.hostName))
return false;
}
if (hostPort!=dci.hostPort) {
return false;
}
if (!getConnectionEnvironment().equals(dci.getConnectionEnvironment())) {
return false;
}
if (protocol==null) {
return dci.protocol==null;
} else {
return protocol.equals(dci.protocol);
}
} else {
return false;
}
|
public ServerConnectionEnvironment | getConnectionEnvironment()
if (env == null) {
env = new ServerConnectionEnvironment();
}
return env;
|
public java.lang.String | getHostName()Getter for property hostName.
return this.hostName;
|
public int | getHostPort()Getter for property hostPort.
return this.hostPort;
|
public java.lang.String | getPassword()Getter for property password.
return this.password;
|
public java.lang.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
if (isSecure()) {
return DefaultConfiguration.S1_HTTPS_PROTOCOL;
} else {
return DefaultConfiguration.S1_HTTP_PROTOCOL;
}
|
public java.lang.String | getUserName()Getter for property userName.
return this.userName;
|
public int | hashCode()
int result = 17;
result = 37*result + (hostName == null ? 0 : hostName.hashCode());
result = 37*result + hostPort;
result = 37*result + getConnectionEnvironment().hashCode();
result = 37*result + (protocol == null ? 0: protocol.hashCode());
return result;
|
public boolean | isSecure()
return this.secure;
|
public void | setConnectionEnvironment(ServerConnectionEnvironment env)
this.env = env;
|
public void | setHostName(java.lang.String hostName)Setter for property hostName.
this.hostName = hostName;
|
public void | setHostPort(int hostPort)Setter for property hostPort.
this.hostPort = hostPort;
|
public void | setPassword(java.lang.String password)Setter for property password.
this.password = password;
|
public void | setSecure(boolean secure)
this.secure = secure;
|
public void | setUserName(java.lang.String userName)Setter for property userName.
this.userName = userName;
|
public java.lang.String | toString()
return getUserName()+"("+ getPassword()+")@(" + getHostName()
+ "):(" + getHostPort()+")" + ":" + getProtocol();
|