nl.utwente.ewi.hmi.taverna.scuflworkers.rshell
Class RshellConnectionSettings

java.lang.Object
  extended by nl.utwente.ewi.hmi.taverna.scuflworkers.rshell.RshellConnectionSettings
All Implemented Interfaces:
java.io.Serializable

public class RshellConnectionSettings
extends java.lang.Object
implements java.io.Serializable

Class containing the connection settings

Author:
Ingo Wassink
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_HOST
           
static int DEFAULT_PORT
           
 
Constructor Summary
RshellConnectionSettings()
          Constructor of the rshell connection settings
RshellConnectionSettings(java.lang.String host, int port, java.lang.String username, java.lang.String Password)
          Constructor of the rshell connection settings
 
Method Summary
 boolean equals(java.lang.Object anObject)
          Method for overriding the equals method Two connections settings are equal, if all their settings are equal (host, port, username, password and keep session alive)
 java.lang.String getHost()
          Method for getting the host
 java.lang.String getPassword()
          Method for getting the password
 int getPort()
          Method for getting the port number
 java.lang.String getUsername()
          Method for getting the username
 int hashCode()
          Method overriding the hashcode function
 boolean isKeepSessionAlive()
          Method for getting the keep session alive setting
 void setHost(java.lang.String host)
          Method for setting the host
 void setKeepSessionAlive(boolean keepSessionAlive)
          Method for setting the keep session alive
 void setKeepSessionAlive(java.lang.String keepSessionAlive)
          Method for setting the keep session alive
 void setPassword(java.lang.String password)
          Method for setting the password
 void setPort(int port)
          Method for setting the port value
 void setPort(java.lang.String port)
          Method for setting the port value
 void setUsername(java.lang.String username)
          Method for setting the username
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_HOST

public static final java.lang.String DEFAULT_HOST
See Also:
Constant Field Values

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values
Constructor Detail

RshellConnectionSettings

public RshellConnectionSettings()
Constructor of the rshell connection settings


RshellConnectionSettings

public RshellConnectionSettings(java.lang.String host,
                                int port,
                                java.lang.String username,
                                java.lang.String Password)
Constructor of the rshell connection settings

Parameters:
host - the host name
port - the port number
username - the username
password - the password
Method Detail

getHost

public java.lang.String getHost()
Method for getting the host

Returns:
the host

setHost

public void setHost(java.lang.String host)
Method for setting the host

Parameters:
host - the new host value

getPort

public int getPort()
Method for getting the port number

Returns:
the port number

setPort

public void setPort(int port)
Method for setting the port value

Parameters:
port - the new port value

setPort

public void setPort(java.lang.String port)
Method for setting the port value

Parameters:
port - the new port value

getUsername

public java.lang.String getUsername()
Method for getting the username

Returns:
the username

setUsername

public void setUsername(java.lang.String username)
Method for setting the username

Parameters:
username - the new username

getPassword

public java.lang.String getPassword()
Method for getting the password

Returns:
the password

setPassword

public void setPassword(java.lang.String password)
Method for setting the password

Parameters:
password - the new password

isKeepSessionAlive

public boolean isKeepSessionAlive()
Method for getting the keep session alive setting

Returns:
the value for keep session alive

setKeepSessionAlive

public void setKeepSessionAlive(boolean keepSessionAlive)
Method for setting the keep session alive

Parameters:
keepSessionAlive - the new value

setKeepSessionAlive

public void setKeepSessionAlive(java.lang.String keepSessionAlive)
Method for setting the keep session alive

Parameters:
keepSessionAlive - the new value

equals

public boolean equals(java.lang.Object anObject)
Method for overriding the equals method Two connections settings are equal, if all their settings are equal (host, port, username, password and keep session alive)

Overrides:
equals in class java.lang.Object
Parameters:
anObject - the object to compare to
Returns:
true if the connections are equal

hashCode

public int hashCode()
Method overriding the hashcode function

Overrides:
hashCode in class java.lang.Object
Returns:
the hash code