java.lang.Object | ||
↳ | org.apache.http.impl.nio.NHttpConnectionBase | |
↳ | org.apache.http.impl.nio.DefaultNHttpServerConnection |
Default implementation of the NHttpServerConnection
interface.
The following parameters can be used to customize the behavior of this class:
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.apache.http.nio.NHttpConnection
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
requestParser | |||||||||||
responseWriter |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.impl.nio.NHttpConnectionBase
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance of this class given the underlying I/O session.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Triggered when the connection is ready to consume input.
| |||||||||||
Returns
true if an HTTP response has been submitted to the
client. | |||||||||||
Triggered when the connection is ready to produce output.
| |||||||||||
Resets output state.
| |||||||||||
Resets input state.
| |||||||||||
Submits {link @HttpResponse} to be sent to the client.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an instance of
NHttpMessageParser to be used
by this connection for parsing incoming HttpRequest messages. | |||||||||||
Creates an instance of
NHttpMessageWriter to be used
by this connection for writing out outgoing HttpResponse
messages. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.impl.nio.NHttpConnectionBase
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.HttpConnection
| |||||||||||
From interface
org.apache.http.HttpInetConnection
| |||||||||||
From interface
org.apache.http.nio.IOControl
| |||||||||||
From interface
org.apache.http.nio.NHttpConnection
| |||||||||||
From interface
org.apache.http.nio.NHttpServerConnection
| |||||||||||
From interface
org.apache.http.nio.NHttpServerIOTarget
| |||||||||||
From interface
org.apache.http.nio.reactor.SessionBufferStatus
|
Creates a new instance of this class given the underlying I/O session.
session | the underlying I/O session. |
---|---|
requestFactory | HTTP request factory. |
allocator | byte buffer allocator. |
params | HTTP parameters. |
Triggered when the connection is ready to consume input.
handler | the server protocol handler. |
---|
Returns true
if an HTTP response has been submitted to the
client.
true
if an HTTP response has been submitted,
false
otherwise.
Triggered when the connection is ready to produce output.
handler | the server protocol handler. |
---|
Resets output state. This method can be used to prematurely terminate processing of the incoming HTTP request.
Resets input state. This method can be used to prematurely terminate processing of the outgoing HTTP response.
Submits {link @HttpResponse} to be sent to the client.
response | HTTP response |
---|
HttpException | |
---|---|
IOException |
Creates an instance of NHttpMessageParser
to be used
by this connection for parsing incoming HttpRequest messages.
This method can be overridden in a super class in order to provide
a different implementation of the NHttpMessageParser
interface.
Creates an instance of NHttpMessageWriter
to be used
by this connection for writing out outgoing HttpResponse
messages.
This method can be overridden by a super class in order to provide
a different implementation of the NHttpMessageWriter
interface.