Java Doc for TheClient.java in  » Net » QuickServer » org » quickserver » net » server » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » QuickServer » org.quickserver.net.server 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.quickserver.net.server.TheClient

TheClient
public class TheClient (Code)
Encapsulates client socket and its configuration details. Used by QuickServer and ClientHandler classes.
author:
   Akshathkumar Shetty




Method Summary
public  AuthenticatorgetAuthenticator()
     Returns the Authenticator object that handles the authentication of a client.
public  ClientAuthenticationHandlergetClientAuthenticationHandler()
     Returns the ClientAuthenticationHandler object that handles the authentication of a client.
public  ClientBinaryHandlergetClientBinaryHandler()
     Returns the ClientBinaryHandler object that interacts with client sockets.
public  ClientCommandHandlergetClientCommandHandler()
     Returns the ClientCommandHandler object that interacts with client sockets.
public  ClientDatagetClientData()
     Returns the ClientData object that carries client data.
public  ClientEventgetClientEvent()
     Returns ClientEvent.
public  ClientEventHandlergetClientEventHandler()
     Returns the ClientEventHandler object that gets notified of client events.
public  ClientExtendedEventHandlergetClientExtendedEventHandler()
     Returns the ClientExtendedEventHandler object that gets notified of client events.
public  ClientObjectHandlergetClientObjectHandler()
     Returns the ClientObjectHandler object that interacts with client sockets.
public  ClientWriteHandlergetClientWriteHandler()
     Returns the ClientWriteHandler object that interacts with client sockets.
public  booleangetCommunicationLogging()
     Returns the communication logging flag.
public  intgetMaxAuthTry()
     Returns maximum allowed login attempts.
public  StringgetMaxAuthTryMsg()
     Returns message to be displayed to the client when maximum allowed login attempts reaches.
public  StringgetMaxConnectionMsg()
     Returns message to be displayed to the client when maximum connection reaches.
public  QuickServergetServer()
    
public  SocketgetSocket()
     Returns client socket associated.
public  SocketChannelgetSocketChannel()
     Returns client socket channel associated, if any.
public  intgetTimeout()
     Returns the Client socket timeout in milliseconds.
public  StringgetTimeoutMsg()
     Returns timeout message.
public  booleangetTrusted()
     Returns flag to skip timeout setting and authentication of this client.
public  voidsetAuthenticator(Authenticator authenticator)
     Sets the Authenticator class that handles the authentication of a client.
public  voidsetClientAuthenticationHandler(ClientAuthenticationHandler clientAuthenticationHandler)
     Sets the ClientAuthenticationHandler class that handles the authentication of a client.
public  voidsetClientBinaryHandler(ClientBinaryHandler handler)
     Sets the ClientBinaryHandler object that interacts with client sockets.
public  voidsetClientCommandHandler(ClientCommandHandler handler)
     Sets the ClientCommandHandler objects that interacts with client sockets.
public  voidsetClientData(ClientData data)
     Sets the ClientData object that carries client data.
public  voidsetClientEvent(ClientEvent event)
     Sets ClientEvent.
public  voidsetClientEventHandler(ClientEventHandler handler)
     Sets the ClientEventHandler objects class that gets notified of client events.
public  voidsetClientExtendedEventHandler(ClientExtendedEventHandler handler)
     Sets the ClientExtendedEventHandler objects class that gets notified of extended client events.
public  voidsetClientObjectHandler(ClientObjectHandler handler)
     Sets the ClientObjectHandler object that interacts with client sockets.
public  voidsetClientWriteHandler(ClientWriteHandler handler)
     Sets the ClientWriteHandler object that interacts with client sockets.
public  voidsetCommunicationLogging(boolean communicationLogging)
     Sets the communication logging flag.
public  voidsetMaxAuthTry(int authTry)
     Sets maximum allowed login attempts.
public  voidsetMaxAuthTryMsg(String msg)
     Sets message to be displayed when max login attempt reaches.
public  voidsetMaxConnectionMsg(String msg)
     Sets message to be displayed when maximum connection reaches.
public  voidsetServer(QuickServer server)
    
public  voidsetSocket(Socket socket)
     Sets client socket associated.
public  voidsetSocketChannel(SocketChannel socketChannel)
     Sets client socket channel associated, if any.
public  voidsetTimeout(int time)
     Sets the client socket's timeout.
public  voidsetTimeoutMsg(String msg)
     Sets timeout message.
public  voidsetTrusted(boolean flag)
     Sets flag to skip timeout setting and authentication of this client.
public  StringtoString()
     Returns client info.



Method Detail
getAuthenticator
public Authenticator getAuthenticator()(Code)
Returns the Authenticator object that handles the authentication of a client.
See Also:   TheClient.setAuthenticator
since:
   1.3TheClient.getClientAuthenticationHandler



getClientAuthenticationHandler
public ClientAuthenticationHandler getClientAuthenticationHandler()(Code)
Returns the ClientAuthenticationHandler object that handles the authentication of a client.
See Also:   TheClient.setClientAuthenticationHandler
since:
   1.4.6



getClientBinaryHandler
public ClientBinaryHandler getClientBinaryHandler()(Code)
Returns the ClientBinaryHandler object that interacts with client sockets.
See Also:   TheClient.setClientBinaryHandler
since:
   1.4



getClientCommandHandler
public ClientCommandHandler getClientCommandHandler()(Code)
Returns the ClientCommandHandler object that interacts with client sockets.
See Also:   TheClient.setClientCommandHandler



getClientData
public ClientData getClientData()(Code)
Returns the ClientData object that carries client data. object of the class that implements ClientData.
See Also:   TheClient.setClientData



getClientEvent
public ClientEvent getClientEvent()(Code)
Returns ClientEvent.
since:
   1.4.5



getClientEventHandler
public ClientEventHandler getClientEventHandler()(Code)
Returns the ClientEventHandler object that gets notified of client events.
See Also:   TheClient.setClientEventHandler
since:
   1.4.6



getClientExtendedEventHandler
public ClientExtendedEventHandler getClientExtendedEventHandler()(Code)
Returns the ClientExtendedEventHandler object that gets notified of client events.
See Also:   TheClient.setClientExtendedEventHandler
since:
   1.4.6



getClientObjectHandler
public ClientObjectHandler getClientObjectHandler()(Code)
Returns the ClientObjectHandler object that interacts with client sockets.
See Also:   TheClient.setClientObjectHandler
since:
   1.2



getClientWriteHandler
public ClientWriteHandler getClientWriteHandler()(Code)
Returns the ClientWriteHandler object that interacts with client sockets.
See Also:   TheClient.setClientWriteHandler
since:
   1.4.5



getCommunicationLogging
public boolean getCommunicationLogging()(Code)
Returns the communication logging flag.
See Also:   TheClient.setCommunicationLogging
since:
   1.3.2



getMaxAuthTry
public int getMaxAuthTry()(Code)
Returns maximum allowed login attempts.
since:
   1.2



getMaxAuthTryMsg
public String getMaxAuthTryMsg()(Code)
Returns message to be displayed to the client when maximum allowed login attempts reaches.



getMaxConnectionMsg
public String getMaxConnectionMsg()(Code)
Returns message to be displayed to the client when maximum connection reaches.
since:
   1.4.5



getServer
public QuickServer getServer()(Code)
Gets the QuickServer object associated with this Client
See Also:   TheClient.getServer



getSocket
public Socket getSocket()(Code)
Returns client socket associated.



getSocketChannel
public SocketChannel getSocketChannel()(Code)
Returns client socket channel associated, if any.
since:
   1.4.5



getTimeout
public int getTimeout()(Code)
Returns the Client socket timeout in milliseconds.
See Also:   TheClient.setTimeout
since:
   1.4.5



getTimeoutMsg
public String getTimeoutMsg()(Code)
Returns timeout message.



getTrusted
public boolean getTrusted()(Code)
Returns flag to skip timeout setting and authentication of this client.
since:
   1.3.2



setAuthenticator
public void setAuthenticator(Authenticator authenticator)(Code)
Sets the Authenticator class that handles the authentication of a client.
Parameters:
  authenticator - object that implements Authenticator.
See Also:   TheClient.getAuthenticator
since:
   1.3TheClient.setClientAuthenticationHandler



setClientAuthenticationHandler
public void setClientAuthenticationHandler(ClientAuthenticationHandler clientAuthenticationHandler)(Code)
Sets the ClientAuthenticationHandler class that handles the authentication of a client.
Parameters:
  clientAuthenticationHandler - object that implements ClientAuthenticationHandler.
See Also:   TheClient.getClientAuthenticationHandler
since:
   1.4.6



setClientBinaryHandler
public void setClientBinaryHandler(ClientBinaryHandler handler)(Code)
Sets the ClientBinaryHandler object that interacts with client sockets.
Parameters:
  handler - object that implements ClientBinaryHandler
See Also:   TheClient.getClientBinaryHandler
since:
   1.4



setClientCommandHandler
public void setClientCommandHandler(ClientCommandHandler handler)(Code)
Sets the ClientCommandHandler objects that interacts with client sockets.
Parameters:
  handler - object that implements ClientCommandHandler
See Also:   TheClient.getClientCommandHandler



setClientData
public void setClientData(ClientData data)(Code)
Sets the ClientData object that carries client data.
Parameters:
  data - object of the class that extends ClientData.
See Also:   TheClient.getClientData



setClientEvent
public void setClientEvent(ClientEvent event)(Code)
Sets ClientEvent.
since:
   1.4.5



setClientEventHandler
public void setClientEventHandler(ClientEventHandler handler)(Code)
Sets the ClientEventHandler objects class that gets notified of client events.
Parameters:
  handler - object that implements ClientEventHandler
See Also:   TheClient.getClientEventHandler
since:
   1.4.6



setClientExtendedEventHandler
public void setClientExtendedEventHandler(ClientExtendedEventHandler handler)(Code)
Sets the ClientExtendedEventHandler objects class that gets notified of extended client events.
Parameters:
  handler - object that implements ClientExtendedEventHandler
See Also:   TheClient.getClientExtendedEventHandler
since:
   1.4.6



setClientObjectHandler
public void setClientObjectHandler(ClientObjectHandler handler)(Code)
Sets the ClientObjectHandler object that interacts with client sockets.
Parameters:
  handler - object that implements ClientObjectHandler
See Also:   TheClient.getClientObjectHandler
since:
   1.2



setClientWriteHandler
public void setClientWriteHandler(ClientWriteHandler handler)(Code)
Sets the ClientWriteHandler object that interacts with client sockets.
Parameters:
  handler - object that implements ClientWriteHandler
See Also:   TheClient.getClientWriteHandler
since:
   1.4.5



setCommunicationLogging
public void setCommunicationLogging(boolean communicationLogging)(Code)
Sets the communication logging flag.
See Also:   TheClient.getCommunicationLogging
since:
   1.3.2



setMaxAuthTry
public void setMaxAuthTry(int authTry)(Code)
Sets maximum allowed login attempts.
since:
   1.2



setMaxAuthTryMsg
public void setMaxAuthTryMsg(String msg)(Code)
Sets message to be displayed when max login attempt reaches.



setMaxConnectionMsg
public void setMaxConnectionMsg(String msg)(Code)
Sets message to be displayed when maximum connection reaches.
since:
   1.4.5



setServer
public void setServer(QuickServer server)(Code)
Sets the QuickServer object associated with this Client
See Also:   TheClient.getServer



setSocket
public void setSocket(Socket socket)(Code)
Sets client socket associated.



setSocketChannel
public void setSocketChannel(SocketChannel socketChannel)(Code)
Sets client socket channel associated, if any.
since:
   1.4.5



setTimeout
public void setTimeout(int time)(Code)
Sets the client socket's timeout.
Parameters:
  time - client socket timeout in milliseconds.
See Also:   TheClient.getTimeout
since:
   1.4.5



setTimeoutMsg
public void setTimeoutMsg(String msg)(Code)
Sets timeout message.



setTrusted
public void setTrusted(boolean flag)(Code)
Sets flag to skip timeout setting and authentication of this client.
since:
   1.3.2



toString
public String toString()(Code)
Returns client info.
since:
   1.4.5



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.