|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfoservice.mailsystem.central.server.AbstractServerImplementation
public abstract class AbstractServerImplementation
This is a generic implementation for handling client requests which have reached the server.
| Field Summary | |
|---|---|
private boolean |
m_alreadyInUse
Stores whether this AbstractServerImplementation is already in use. |
private SocketContainer |
m_socketContainer
Stores the SocketContainer which includes the Socket connected to the client and maybe some alternative datastreams. |
private java.lang.Object |
m_synchronizer
This object is used for synchronization purposes to prevent using this server implementation more than once. |
| Constructor Summary | |
|---|---|
protected |
AbstractServerImplementation()
Creates a new AbstractServerImplementation. |
| Method Summary | |
|---|---|
protected SocketContainer |
getSocketContainer()
Returns the SocketContainer with the connection to the client. |
protected abstract void |
handleClientRequest()
This method must be implemented by the children of this class. |
void |
run()
This is the generic implementation for handling the connection. |
void |
setClientConnection(SocketContainer a_socketContainer)
This will set the SocketContainer with the connection to the client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private SocketContainer m_socketContainer
private boolean m_alreadyInUse
private java.lang.Object m_synchronizer
| Constructor Detail |
|---|
protected AbstractServerImplementation()
| Method Detail |
|---|
public final void setClientConnection(SocketContainer a_socketContainer)
a_socketContainer - The SocketContainer with the connection to the client.public final void run()
run in interface java.lang.Runnableprotected final SocketContainer getSocketContainer()
protected abstract void handleClientRequest()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||