Java Doc for NHttpClientHandler.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.NHttpClientHandler

All known Subclasses:   org.apache.http.nio.protocol.NHttpClientHandlerBase,
NHttpClientHandler
public interface NHttpClientHandler (Code)
Abstract client-side HTTP event handler.
author:
   Oleg Kalnichevski




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



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



connected
void connected(NHttpClientConnection conn, Object attachment)(Code)
Triggered when a new outgoing connection is created.
Parameters:
  conn - closed HTTP connection.
Parameters:
  attachment - an arbitrary object that was attached to thesession request



exception
void exception(NHttpClientConnection 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(NHttpClientConnection conn, HttpException ex)(Code)
Triggered when an HTTP protocol violation occurs while receiving an HTTP response.
Parameters:
  conn - HTTP connection that caused an HTTP protocol violation
Parameters:
  ex - HTTP protocol violation exception



inputReady
void inputReady(NHttpClientConnection conn, ContentDecoder decoder)(Code)
Triggered when the underlying channel is ready for reading a new portion of the response 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 response content.
Parameters:
  decoder - The content decoder to use to read content.




outputReady
void outputReady(NHttpClientConnection conn, ContentEncoder encoder)(Code)
Triggered when the underlying channel is ready for writing a next portion of the request 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 request content.
Parameters:
  encoder - The content encoder to use to write content.




requestReady
void requestReady(NHttpClientConnection conn)(Code)
Triggered when the connection is ready to send an HTTP request.
See Also:   NHttpClientConnection
Parameters:
  conn - HTTP connection that is ready to send an HTTP request



responseReceived
void responseReceived(NHttpClientConnection conn)(Code)
Triggered when an HTTP response is received. The connection passed as a parameter to this method is guaranteed to return a valid HTTP response object.

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




timeout
void timeout(NHttpClientConnection 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.