org.apache.http.nio.NHttpServerConnection |
Known Indirect Subclasses
|
Class Overview
Abstract non-blocking server-side HTTP connection interface. It can be used
to receive HTTP requests and asynchronously submit HTTP responses.
Summary
Public Methods |
abstract
boolean
|
isResponseSubmitted()
Returns true if an HTTP response has been submitted to the
client.
|
abstract
void
|
resetInput()
Resets output state.
|
abstract
void
|
resetOutput()
Resets input state.
|
abstract
void
|
submitResponse(HttpResponse response)
Submits {link @HttpResponse} to be sent to the client.
|
[Expand]
Inherited Methods |
From interface
org.apache.http.HttpConnection
abstract
void
|
close()
|
abstract
HttpConnectionMetrics
|
getMetrics()
|
abstract
int
|
getSocketTimeout()
|
abstract
boolean
|
isOpen()
|
abstract
boolean
|
isStale()
|
abstract
void
|
setSocketTimeout(int arg0)
|
abstract
void
|
shutdown()
|
|
From interface
org.apache.http.nio.IOControl
abstract
void
|
requestInput()
Requests event notifications to be triggered when the underlying
channel is ready for input operations.
|
abstract
void
|
requestOutput()
Requests event notifications to be triggered when the underlying
channel is ready for output operations.
|
abstract
void
|
shutdown()
Shuts down the underlying channel.
|
abstract
void
|
suspendInput()
Suspends event notifications about the underlying channel being
ready for input operations.
|
abstract
void
|
suspendOutput()
Suspends event notifications about the underlying channel being
ready for output operations.
|
|
From interface
org.apache.http.nio.NHttpConnection
abstract
HttpContext
|
getContext()
Returns an HTTP execution context associated with this connection.
|
abstract
HttpRequest
|
getHttpRequest()
Returns the current HTTP request if one is being received / transmitted.
|
abstract
HttpResponse
|
getHttpResponse()
Returns the current HTTP response if one is being received / transmitted.
|
abstract
int
|
getStatus()
Returns status of the connection:
ACTIVE : connection is active.
|
|
Public Methods
public
abstract
boolean
isResponseSubmitted
()
Returns true
if an HTTP response has been submitted to the
client.
Returns
true
if an HTTP response has been submitted,
false
otherwise.
public
abstract
void
resetInput
()
Resets output state. This method can be used to prematurely terminate
processing of the incoming HTTP request.
public
abstract
void
resetOutput
()
Resets input state. This method can be used to prematurely terminate
processing of the outgoing HTTP response.
public
abstract
void
submitResponse
(HttpResponse response)
Submits {link @HttpResponse} to be sent to the client.
Throws
IOException
| if I/O error occurs while submitting the response |
HttpException
| if the HTTP response violates the HTTP protocol.
|