com.multisoftgroup.jerry.server
Class AbstractServer

java.lang.Object
  extended by com.multisoftgroup.jerry.server.AbstractServer
Direct Known Subclasses:
ManagementServer, XMPP_SSLServer, XMPPServer

public abstract class AbstractServer
extends Object

A basic server supporting background acceptance of new, authenticated connections.


Field Summary
protected  org.apache.log4j.Logger log
           
 
Constructor Summary
AbstractServer()
           
 
Method Summary
protected abstract  void finalizeServer()
           
protected abstract  String getName()
           
abstract  int getPort()
           
protected abstract  ServerSocketType getServerSocketType()
           
protected abstract  void initServer()
           
 void launch()
           
protected abstract  void processConnection(Socket socket)
           
 void terminate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.log4j.Logger log
Constructor Detail

AbstractServer

public AbstractServer()
Method Detail

getName

protected abstract String getName()

getServerSocketType

protected abstract ServerSocketType getServerSocketType()

processConnection

protected abstract void processConnection(Socket socket)
                                   throws IOException
Throws:
IOException

initServer

protected abstract void initServer()
                            throws IOException
Throws:
IOException

finalizeServer

protected abstract void finalizeServer()
                                throws IOException
Throws:
IOException

getPort

public abstract int getPort()

launch

public final void launch()
                  throws Exception
Throws:
Exception

terminate

public final void terminate()