|
QuickServer v1.4.7 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.quickserver.net.server.impl.DefaultClientEventHandler
Default ClientEventHandler implementation.
This implementation will try to provide a default ClientEventHandler implementation. If a ClientCommandHandler is known to have been set then this implementation will look for ClientEventHandler methods in that implementation and pass the corresponding call to that method. This was done to provide backward compatibility with v1.4.5 and prior version of ClientCommandHandler.
Constructor Summary | |
DefaultClientEventHandler()
|
Method Summary | |
void |
closingConnection(ClientHandler handler)
Method called when client connection is closed. |
void |
gotConnected(ClientHandler handler)
Method called when there is a new client connects to the QuickServer. |
void |
lostConnection(ClientHandler handler)
Method called when client connection is lost. |
void |
setClientCommandHandler(ClientCommandHandler handler)
Sets ClientCommandHandler that should be examined to find any ClientEventHandler methods |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultClientEventHandler()
Method Detail |
public void setClientCommandHandler(ClientCommandHandler handler)
public void gotConnected(ClientHandler handler) throws java.net.SocketTimeoutException, java.io.IOException
ClientEventHandler
gotConnected
in interface ClientEventHandler
java.io.IOException
- if io error in socket
java.net.SocketTimeoutException
- if socket times outpublic void lostConnection(ClientHandler handler) throws java.io.IOException
ClientEventHandler
lostConnection
in interface ClientEventHandler
java.io.IOException
- if io error in socketpublic void closingConnection(ClientHandler handler) throws java.io.IOException
ClientEventHandler
closingConnection
in interface ClientEventHandler
java.io.IOException
- if io error in socket
|
QuickServer v1.4.7 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |