org.jdesktop.wonderland.client.login
Class DarkstarServer

java.lang.Object
  extended by org.jdesktop.wonderland.client.login.DarkstarServer
All Implemented Interfaces:
java.lang.Cloneable

public class DarkstarServer
extends java.lang.Object
implements java.lang.Cloneable

Details on a particular Darkstar server

Author:
jkaplan

Constructor Summary
DarkstarServer()
          Default constructor
DarkstarServer(java.lang.String hostname, int port)
          Create a new DarkstarServer with the given hostname and port
 
Method Summary
 DarkstarServer clone()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getHostname()
          Get the hostname to connect to
 int getPort()
          Get the port to connect to
 int hashCode()
           
 void setHostname(java.lang.String hostname)
          Set the hostname
 void setPort(int port)
          Set the port to connect to
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DarkstarServer

public DarkstarServer()
Default constructor


DarkstarServer

public DarkstarServer(java.lang.String hostname,
                      int port)
Create a new DarkstarServer with the given hostname and port

Parameters:
hostname - the hostname
port - the port
Method Detail

getHostname

public java.lang.String getHostname()
Get the hostname to connect to

Returns:
the hostname

setHostname

public void setHostname(java.lang.String hostname)
Set the hostname

Parameters:
hostname - the hostname

getPort

public int getPort()
Get the port to connect to

Returns:
the port

setPort

public void setPort(int port)
Set the port to connect to

Parameters:
port - the port

clone

public DarkstarServer clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Open Wonderland - http://openwonderland.org