live.dto
Class ConnectionInfo

java.lang.Object
  extended bylive.dto.ConnectionInfo

public class ConnectionInfo
extends Object

This class holds information about how to connect to the SMAPI server. It's stored in each session inside a ThreadInitInfo object.

Author:
Evan Driscoll

Field Summary
private  String hostName
           
private  String password
           
private  int portNo
           
private  String userName
           
 
Constructor Summary
ConnectionInfo(String host, int port, String user, String pass)
          Constructs a ConnectionInfo that will login to the specified server with the specified user name and password.
 
Method Summary
 String getHostName()
          Gets the host name or IP address
 String getPassword()
          Gets the password
 int getPort()
          Gets the port number
 String getUserName()
          Gets the userName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userName

private String userName

password

private String password

hostName

private String hostName

portNo

private int portNo
Constructor Detail

ConnectionInfo

public ConnectionInfo(String host,
                      int port,
                      String user,
                      String pass)
Constructs a ConnectionInfo that will login to the specified server with the specified user name and password. The user name and password are intended to be set in the login action to whatever the user entered, and specifiy what will be sent in all the SMAPI calls.

Parameters:
host - The host name or IP address to connect to
port - The port to connect on
user - The user name to send SMAPI calls as
pass - The password to send with SMAPI calls
Method Detail

getUserName

public String getUserName()
Gets the userName

Returns:
String user name

getPassword

public String getPassword()
Gets the password

Returns:
String Password

getHostName

public String getHostName()
Gets the host name or IP address

Returns:
String host name

getPort

public int getPort()
Gets the port number

Returns:
int port number


Copyright © 2005