org.jminor.common.server
Class ClientInfo

java.lang.Object
  extended by org.jminor.common.server.ClientInfo
All Implemented Interfaces:
Serializable

public final class ClientInfo
extends Object
implements Serializable

Contains basic information about a remote client.

See Also:
Serialized Form

Constructor Summary
ClientInfo(UUID clientID)
          Instantiates a new ClientInfo
ClientInfo(UUID clientID, String clientTypeID, User user)
          Instantiates a new ClientInfo
 
Method Summary
 boolean equals(Object obj)
          
 String getClientHost()
           
 UUID getClientID()
           
 String getClientTypeID()
           
 User getUser()
           
 int hashCode()
          
 void setClientHost(String clientHost)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientInfo

public ClientInfo(UUID clientID)
Instantiates a new ClientInfo

Parameters:
clientID - the client ID

ClientInfo

public ClientInfo(UUID clientID,
                  String clientTypeID,
                  User user)
Instantiates a new ClientInfo

Parameters:
clientID - the client ID
clientTypeID - a string specifying the client type
user - the user
Method Detail

getUser

public User getUser()
Returns:
the user

getClientID

public UUID getClientID()
Returns:
the client ID

getClientTypeID

public String getClientTypeID()
Returns:
the client type ID

getClientHost

public String getClientHost()
Returns:
the client hostname

setClientHost

public void setClientHost(String clientHost)
Parameters:
clientHost - the client hostname

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object