org.apache.http.nio.NHttpClientConnection |
Known Indirect Subclasses
|
Class Overview
Abstract non-blocking client-side HTTP connection interface. It can be used
to submit HTTP requests and asynchronously receive HTTP responses.
Summary
Public Methods |
abstract
boolean
|
isRequestSubmitted()
Returns true if an HTTP request has been submitted to the
target server.
|
abstract
void
|
resetInput()
Resets output state.
|
abstract
void
|
resetOutput()
Resets input state.
|
abstract
void
|
submitRequest(HttpRequest request)
Submits HttpRequest to be sent to the target server.
|
[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
isRequestSubmitted
()
Returns true
if an HTTP request has been submitted to the
target server.
Returns
true
if an HTTP request 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 response.
public
abstract
void
resetOutput
()
Resets input state. This method can be used to prematurely terminate
processing of the outgoing HTTP request.
public
abstract
void
submitRequest
(HttpRequest request)
Submits HttpRequest to be sent to the target server.
Throws
IOException
| if I/O error occurs while submitting the request |
HttpException
| if the HTTP request violates the HTTP protocol.
|