org.newdawn.dss.client
Class ServerFactory

java.lang.Object
  extended byorg.newdawn.dss.client.ServerFactory

public class ServerFactory
extends java.lang.Object

A bootstrap to obtain the initial server context


Constructor Summary
ServerFactory()
           
 
Method Summary
static Server getServer(Client client, CommandFactory factory, ServerProperties properties)
          Get a server instance based on a set of properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerFactory

public ServerFactory()
Method Detail

getServer

public static Server getServer(Client client,
                               CommandFactory factory,
                               ServerProperties properties)
                        throws java.io.IOException
Get a server instance based on a set of properties. Note this method will not return until authentication has taken place.

Parameters:
client - The client who should be notified of new commands
factory - The command factory to use to produce commfands
properties - The properties describing the server obtained
Returns:
The server instance (should be full authenticated?)
Throws:
java.io.IOException - indicates a failure in connecting to the server