|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.quickserver.net.server.TheClient
Encapsulates client socket and its configuration details. Used by
QuickServer
and ClientHandler
classes.
Constructor Summary | |
TheClient()
|
Method Summary | |
Authenticator |
getAuthenticator()
Returns the Authenticator object that handles the authentication of a client. |
ClientBinaryHandler |
getClientBinaryHandler()
Returns the ClientBinaryHandler object that interacts with client sockets. |
ClientCommandHandler |
getClientCommandHandler()
Returns the ClientCommandHandler object that interacts with client sockets. |
ClientData |
getClientData()
Returns the ClientData object that carries client data. |
ClientEvent |
getClientEvent()
Returns ClientEvent. |
ClientObjectHandler |
getClientObjectHandler()
Returns the ClientObjectHandler object that interacts with client sockets. |
ClientWriteHandler |
getClientWriteHandler()
Returns the ClientWriteHandler object that interacts with client sockets. |
boolean |
getCommunicationLogging()
Returns the communication logging flag. |
int |
getMaxAuthTry()
Returns maximum allowed login attempts. |
java.lang.String |
getMaxAuthTryMsg()
Returns message to be displayed to the client when maximum allowed login attempts reaches. |
java.lang.String |
getMaxConnectionMsg()
Returns message to be displayed to the client when maximum connection reaches. |
QuickServer |
getServer()
Gets the QuickServer object associated with this Client |
Authenticator |
getServerAuthenticator()
Deprecated. use getAuthenticator() |
java.net.Socket |
getSocket()
Returns client socket associated. |
java.nio.channels.SocketChannel |
getSocketChannel()
Returns client socket channel associated, if any. |
int |
getTimeout()
Returns the Client socket timeout in milliseconds. |
java.lang.String |
getTimeoutMsg()
Returns timeout message. |
boolean |
getTrusted()
Returns flag to skip timeout setting and authentication of this client. |
void |
setAuthenticator(Authenticator authenticator)
Sets the Authenticator class that handles the authentication of a client. |
void |
setClientBinaryHandler(ClientBinaryHandler handler)
Sets the ClientBinaryHandler object that interacts with client sockets. |
void |
setClientCommandHandler(ClientCommandHandler handler)
Sets the ClientCommandHandler objects that interacts with client sockets. |
void |
setClientData(ClientData data)
Sets the ClientData object that carries client data. |
void |
setClientEvent(ClientEvent event)
Sets ClientEvent. |
void |
setClientObjectHandler(ClientObjectHandler handler)
Sets the ClientObjectHandler object that interacts with client sockets. |
void |
setClientWriteHandler(ClientWriteHandler handler)
Sets the ClientWriteHandler object that interacts with client sockets. |
void |
setCommunicationLogging(boolean communicationLogging)
Sets the communication logging flag. |
void |
setMaxAuthTry(int authTry)
Sets maximum allowed login attempts. |
void |
setMaxAuthTryMsg(java.lang.String msg)
Sets message to be displayed when max login attempt reaches. |
void |
setMaxConnectionMsg(java.lang.String msg)
Sets message to be displayed when maximum connection reaches. |
void |
setServer(QuickServer server)
Sets the QuickServer object associated with this Client |
void |
setServerAuthenticator(Authenticator authenticator)
Deprecated. use setAuthenticator(org.quickserver.net.server.Authenticator) |
void |
setSocket(java.net.Socket socket)
Sets client socket associated. |
void |
setSocketChannel(java.nio.channels.SocketChannel socketChannel)
Sets client socket channel associated, if any. |
void |
setTimeout(int time)
Sets the client socket's timeout. |
void |
setTimeoutMsg(java.lang.String msg)
Sets timeout message. |
void |
setTrusted(boolean flag)
Sets flag to skip timeout setting and authentication of this client. |
java.lang.String |
toString()
Returns client info. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TheClient()
Method Detail |
public void setServer(QuickServer server)
getServer()
public QuickServer getServer()
getServer()
public void setSocket(java.net.Socket socket)
public java.net.Socket getSocket()
public void setServerAuthenticator(Authenticator authenticator)
setAuthenticator(org.quickserver.net.server.Authenticator)
authenticator
- object that
implements Authenticator
.getServerAuthenticator()
public Authenticator getServerAuthenticator()
getAuthenticator()
setServerAuthenticator(org.quickserver.net.server.Authenticator)
public void setAuthenticator(Authenticator authenticator)
authenticator
- object that implements Authenticator
.getAuthenticator()
public Authenticator getAuthenticator()
setAuthenticator(org.quickserver.net.server.Authenticator)
public void setClientData(ClientData data)
data
- object of the class that
extends ClientData
.getClientData()
public ClientData getClientData()
ClientData
.setClientData(org.quickserver.net.server.ClientData)
public void setMaxAuthTry(int authTry)
public int getMaxAuthTry()
public void setMaxAuthTryMsg(java.lang.String msg)
public java.lang.String getMaxAuthTryMsg()
public void setTimeoutMsg(java.lang.String msg)
public java.lang.String getTimeoutMsg()
public void setClientCommandHandler(ClientCommandHandler handler)
handler
- object that
implements ClientCommandHandler
getClientCommandHandler()
public ClientCommandHandler getClientCommandHandler()
setClientCommandHandler(org.quickserver.net.server.ClientCommandHandler)
public void setClientObjectHandler(ClientObjectHandler handler)
handler
- object that
implements ClientObjectHandler
getClientObjectHandler()
public ClientObjectHandler getClientObjectHandler()
setClientObjectHandler(org.quickserver.net.server.ClientObjectHandler)
public boolean getTrusted()
public void setTrusted(boolean flag)
public void setCommunicationLogging(boolean communicationLogging)
getCommunicationLogging()
public boolean getCommunicationLogging()
setCommunicationLogging(boolean)
public void setClientBinaryHandler(ClientBinaryHandler handler)
handler
- object that
implements ClientBinaryHandler
getClientBinaryHandler()
public ClientBinaryHandler getClientBinaryHandler()
setClientBinaryHandler(org.quickserver.net.server.ClientBinaryHandler)
public void setTimeout(int time)
time
- client socket timeout in milliseconds.getTimeout()
public int getTimeout()
setTimeout(int)
public void setClientEvent(ClientEvent event)
public ClientEvent getClientEvent()
public void setMaxConnectionMsg(java.lang.String msg)
public java.lang.String getMaxConnectionMsg()
public void setSocketChannel(java.nio.channels.SocketChannel socketChannel)
public java.nio.channels.SocketChannel getSocketChannel()
public void setClientWriteHandler(ClientWriteHandler handler)
handler
- object that
implements ClientWriteHandler
getClientWriteHandler()
public ClientWriteHandler getClientWriteHandler()
setClientWriteHandler(org.quickserver.net.server.ClientWriteHandler)
public java.lang.String toString()
|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |