Java Doc for NHttpServiceHandler.java in  » Net » httpcomponents-core-4.0-beta1 » org » apache » http » nio » 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 » httpcomponents core 4.0 beta1 » org.apache.http.nio 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.http.nio.NHttpServiceHandler

All known Subclasses:   org.apache.http.nio.protocol.NHttpServiceHandlerBase,  org.apache.http.nio.protocol.BufferingHttpServiceHandler,
NHttpServiceHandler
public interface NHttpServiceHandler (Code)
Abstract server-side HTTP event handler.
author:
   Oleg Kalnichevski




Method Summary
 voidclosed(NHttpServerConnection conn)
     Triggered when the connection is closed.
 voidconnected(NHttpServerConnection conn)
     Triggered when a new incoming connection is created.
 voidexception(NHttpServerConnection conn, IOException ex)
     Triggered when an I/O error occurrs while reading from or writing to the underlying channel.
 voidexception(NHttpServerConnection conn, HttpException ex)
     Triggered when an HTTP protocol violation occurs while receiving an HTTP request.
 voidinputReady(NHttpServerConnection conn, ContentDecoder decoder)
     Triggered when the underlying channel is ready for reading a new portion of the request entity through the corresponding content decoder.
 voidoutputReady(NHttpServerConnection conn, ContentEncoder encoder)
     Triggered when the underlying channel is ready for writing a next portion of the response entity through the corresponding content encoder.
 voidrequestReceived(NHttpServerConnection conn)
     Triggered when a new HTTP request is received.
 voidresponseReady(NHttpServerConnection conn)
     Triggered when the connection is ready to send an HTTP response.
 voidtimeout(NHttpServerConnection conn)
     Triggered when no input is detected on this connection over the maximum period of inactivity.



Method Detail
closed
void closed(NHttpServerConnection conn)(Code)
Triggered when the connection is closed.
Parameters:
  conn - closed HTTP connection.



connected
void connected(NHttpServerConnection conn)(Code)
Triggered when a new incoming connection is created.
Parameters:
  conn - closed HTTP connection.



exception
void exception(NHttpServerConnection conn, IOException ex)(Code)
Triggered when an I/O error occurrs while reading from or writing to the underlying channel.
Parameters:
  conn - HTTP connection that caused an I/O error
Parameters:
  ex - I/O exception



exception
void exception(NHttpServerConnection conn, HttpException ex)(Code)
Triggered when an HTTP protocol violation occurs while receiving an HTTP request.
Parameters:
  conn - HTTP connection that caused an HTTP protocol violation
Parameters:
  ex - HTTP protocol violation exception



inputReady
void inputReady(NHttpServerConnection conn, ContentDecoder decoder)(Code)
Triggered when the underlying channel is ready for reading a new portion of the request entity through the corresponding content decoder.

If the content consumer is unable to process the incoming content, input event notifications can be temorarily suspended using NHttpConnection.suspendInput .
See Also:   NHttpConnection
See Also:   ContentDecoder
Parameters:
  conn - HTTP connection that can produce a new portion of theincoming request content.
Parameters:
  decoder - The content decoder to use to read content.




outputReady
void outputReady(NHttpServerConnection conn, ContentEncoder encoder)(Code)
Triggered when the underlying channel is ready for writing a next portion of the response entity through the corresponding content encoder.

If the content producer is unable to generate the outgoing content, output event notifications can be temorarily suspended using NHttpConnection.suspendOutput .
See Also:   NHttpConnection
See Also:   ContentEncoder
Parameters:
  conn - HTTP connection that can accommodate a new portion of the outgoing response content.
Parameters:
  encoder - The content encoder to use to write content.




requestReceived
void requestReceived(NHttpServerConnection conn)(Code)
Triggered when a new HTTP request is received. The connection passed as a parameter to this method is guaranteed to return a valid HTTP request object.

If the request received encloses a request entity this method will be followed a series of NHttpServiceHandler.inputReady(NHttpServerConnection,ContentDecoder) calls to transfer the request content.
See Also:   NHttpServerConnection
Parameters:
  conn - HTTP connection that contains a new HTTP request




responseReady
void responseReady(NHttpServerConnection conn)(Code)
Triggered when the connection is ready to send an HTTP response.
See Also:   NHttpServerConnection
Parameters:
  conn - HTTP connection that contains an HTTP response



timeout
void timeout(NHttpServerConnection conn)(Code)
Triggered when no input is detected on this connection over the maximum period of inactivity.
Parameters:
  conn - HTTP connection that caused timeout condition.



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