Package | Description |
---|---|
org.apache.http |
Core HTTP components based on the blocking I/O model.
|
org.apache.http.impl |
Default implementations for interfaces in
org.apache.http . |
org.apache.http.impl.nio |
Default implementations for interfaces in
org.apache.http.nio . |
org.apache.http.nio |
Core HTTP components based on the non-blocking I/O model.
|
org.apache.http.nio.protocol |
Asynchronous HTTP protocol handlers based on the non-blocking I/O model.
|
org.apache.http.protocol |
HTTP protocol execution framework and synchronous HTTP protocol handlers
based on the blocking I/O model.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ConnectionReuseStrategy.keepAlive(HttpResponse response,
HttpContext context)
Decides whether a connection can be kept open after a request.
|
HttpResponse |
HttpResponseFactory.newHttpResponse(ProtocolVersion ver,
int status,
HttpContext context)
Creates a new response from status line elements.
|
HttpResponse |
HttpResponseFactory.newHttpResponse(StatusLine statusline,
HttpContext context)
Creates a new response from a status line.
|
void |
HttpRequestInterceptor.process(HttpRequest request,
HttpContext context)
Processes a request.
|
void |
HttpResponseInterceptor.process(HttpResponse response,
HttpContext context)
Processes a response.
|
Modifier and Type | Method and Description |
---|---|
protected Locale |
DefaultHttpResponseFactory.determineLocale(HttpContext context)
Determines the locale of the response.
|
boolean |
DefaultConnectionReuseStrategy.keepAlive(HttpResponse response,
HttpContext context) |
boolean |
NoConnectionReuseStrategy.keepAlive(HttpResponse response,
HttpContext context) |
HttpResponse |
DefaultHttpResponseFactory.newHttpResponse(ProtocolVersion ver,
int status,
HttpContext context) |
HttpResponse |
DefaultHttpResponseFactory.newHttpResponse(StatusLine statusline,
HttpContext context) |
Modifier and Type | Field and Description |
---|---|
protected HttpContext |
NHttpConnectionBase.context |
Modifier and Type | Method and Description |
---|---|
HttpContext |
NHttpConnectionBase.getContext() |
Modifier and Type | Method and Description |
---|---|
HttpContext |
NHttpConnection.getContext()
Returns an HTTP execution context associated with this connection.
|
Modifier and Type | Method and Description |
---|---|
HttpContext |
BasicAsyncRequestExecutionHandler.getContext() |
HttpContext |
HttpAsyncRequestExecutionHandler.getContext()
Returns shared
HttpContext instance. |
Modifier and Type | Method and Description |
---|---|
protected HttpRequest |
BasicAsyncRequestConsumer.buildResult(HttpContext context) |
protected abstract T |
AbstractAsyncRequestConsumer.buildResult(HttpContext context)
Invoked to generate a result object from the received HTTP request
message.
|
protected HttpResponse |
BasicAsyncResponseConsumer.buildResult(HttpContext context) |
protected abstract T |
AbstractAsyncResponseConsumer.buildResult(HttpContext context)
Invoked to generate a result object from the received HTTP response
message.
|
ConsumingNHttpEntity |
NHttpRequestHandler.entityRequest(HttpEntityEnclosingRequest request,
HttpContext context)
Deprecated.
Triggered when a request is received with an entity.
|
<T,E extends PoolEntry<HttpHost,NHttpClientConnection>> |
HttpAsyncRequester.execute(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
ConnPool<HttpHost,E> connPool,
HttpContext context)
Initiates asynchronous HTTP request execution.
|
<T,E extends PoolEntry<HttpHost,NHttpClientConnection>> |
HttpAsyncRequester.execute(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
ConnPool<HttpHost,E> connPool,
HttpContext context,
FutureCallback<T> callback)
Initiates asynchronous HTTP request execution.
|
<T> Future<T> |
HttpAsyncRequester.execute(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
NHttpClientConnection conn,
HttpContext context)
Initiates asynchronous HTTP request execution.
|
<T> Future<T> |
HttpAsyncRequester.execute(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
NHttpClientConnection conn,
HttpContext context,
FutureCallback<T> callback)
Initiates asynchronous HTTP request execution.
|
void |
NHttpRequestExecutionHandler.finalizeContext(HttpContext context)
Deprecated.
Triggered when the connection is terminated.
|
void |
HttpRequestExecutionHandler.finalizeContext(HttpContext context)
Deprecated.
Triggered when the connection is terminated.
|
void |
BasicAsyncRequestHandler.handle(HttpRequest request,
HttpAsyncExchange httpexchange,
HttpContext context) |
abstract void |
SimpleNHttpRequestHandler.handle(HttpRequest request,
HttpResponse response,
HttpContext context)
Deprecated.
|
void |
NHttpRequestHandler.handle(HttpRequest request,
HttpResponse response,
NHttpResponseTrigger trigger,
HttpContext context)
Deprecated.
Initiates processing of the request.
|
void |
SimpleNHttpRequestHandler.handle(HttpRequest request,
HttpResponse response,
NHttpResponseTrigger trigger,
HttpContext context)
Deprecated.
|
void |
HttpAsyncRequestHandler.handle(T data,
HttpAsyncExchange httpExchange,
HttpContext context)
Triggered to complete request processing and to initiate the process of
generating a response.
|
protected HttpAsyncResponseProducer |
HttpAsyncService.handleException(Exception ex,
HttpContext context) |
void |
NHttpRequestExecutionHandler.handleResponse(HttpResponse response,
HttpContext context)
Deprecated.
Triggered when an HTTP response is ready to be processed.
|
void |
HttpRequestExecutionHandler.handleResponse(HttpResponse response,
HttpContext context)
Deprecated.
Triggered when an HTTP response is ready to be processed.
|
void |
NHttpRequestExecutionHandler.initalizeContext(HttpContext context,
Object attachment)
Deprecated.
Triggered when a new connection has been established and the
HTTP context needs to be initialized.
|
void |
HttpRequestExecutionHandler.initalizeContext(HttpContext context,
Object attachment)
Deprecated.
Triggered when a new connection has been established and the
HTTP context needs to be initialized.
|
HttpAsyncRequestConsumer<T> |
HttpAsyncRequestHandler.processRequest(HttpRequest request,
HttpContext context)
Triggered when an incoming request is received.
|
HttpAsyncRequestConsumer<HttpRequest> |
BasicAsyncRequestHandler.processRequest(HttpRequest request,
HttpContext context) |
void |
HttpAsyncRequestProducer.requestCompleted(HttpContext context)
Invoked to signal that the request has been fully written out.
|
void |
AbstractAsyncRequestConsumer.requestCompleted(HttpContext context)
|
void |
HttpAsyncRequestConsumer.requestCompleted(HttpContext context)
Invoked to signal that the request has been fully processed.
|
void |
BasicAsyncRequestExecutionHandler.requestCompleted(HttpContext context) |
void |
BasicAsyncRequestProducer.requestCompleted(HttpContext context) |
protected void |
AsyncNHttpServiceHandler.responseComplete(HttpResponse response,
HttpContext context)
Deprecated.
Signals that this response has been fully sent.
|
void |
BasicAsyncRequestExecutionHandler.responseCompleted(HttpContext context) |
void |
HttpAsyncResponseConsumer.responseCompleted(HttpContext context)
Invoked to signal that the response has been fully processed.
|
void |
AbstractAsyncResponseConsumer.responseCompleted(HttpContext context)
|
void |
HttpAsyncResponseProducer.responseCompleted(HttpContext context)
Invoked to signal that the response has been fully written out.
|
void |
BasicAsyncResponseProducer.responseCompleted(HttpContext context) |
ConsumingNHttpEntity |
NHttpRequestExecutionHandler.responseEntity(HttpResponse response,
HttpContext context)
Deprecated.
Triggered when a response is received with an entity.
|
HttpRequest |
NHttpRequestExecutionHandler.submitRequest(HttpContext context)
Deprecated.
Triggered when the underlying connection is ready to send a new
HTTP request to the target host.
|
HttpRequest |
HttpRequestExecutionHandler.submitRequest(HttpContext context)
Deprecated.
Triggered when the underlying connection is ready to send a new
HTTP request to the target host.
|
void |
HttpAsyncExpectationVerifier.verify(HttpAsyncExchange httpExchange,
HttpContext context) |
Constructor and Description |
---|
BasicAsyncRequestExecutionHandler(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
FutureCallback<T> callback,
HttpContext localContext,
HttpProcessor httppocessor,
ConnectionReuseStrategy reuseStrategy,
HttpParams params) |
BasicAsyncRequestExecutionHandler(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
HttpContext localContext,
HttpProcessor httppocessor,
ConnectionReuseStrategy reuseStrategy,
HttpParams params) |
Modifier and Type | Class and Description |
---|---|
class |
BasicHttpContext
Default implementation of
HttpContext . |
class |
DefaultedHttpContext
HttpContext implementation that delegates resolution of an attribute
to the given default HttpContext instance if the attribute is not
present in the local one. |
class |
SyncBasicHttpContext
Deprecated.
(4.2) HttpContext instances may not be shared by multiple threads
|
Modifier and Type | Method and Description |
---|---|
HttpContext |
DefaultedHttpContext.getDefaults() |
Modifier and Type | Method and Description |
---|---|
protected HttpResponse |
HttpRequestExecutor.doReceiveResponse(HttpRequest request,
HttpClientConnection conn,
HttpContext context)
Waits for and receives a response.
|
protected HttpResponse |
HttpRequestExecutor.doSendRequest(HttpRequest request,
HttpClientConnection conn,
HttpContext context)
Send the given request over the given connection.
|
protected void |
HttpService.doService(HttpRequest request,
HttpResponse response,
HttpContext context)
The default implementation of this method attempts to resolve an
HttpRequestHandler for the request URI of the given request
and, if found, executes its
HttpRequestHandler.handle(HttpRequest, HttpResponse, HttpContext)
method. |
HttpResponse |
HttpRequestExecutor.execute(HttpRequest request,
HttpClientConnection conn,
HttpContext context)
Sends the request and obtain a response.
|
void |
HttpRequestHandler.handle(HttpRequest request,
HttpResponse response,
HttpContext context)
Handles the request and produces a response to be sent back to
the client.
|
void |
HttpService.handleRequest(HttpServerConnection conn,
HttpContext context)
Handles receives one HTTP request over the given connection within the
given execution context and sends a response back to the client.
|
void |
HttpRequestExecutor.postProcess(HttpResponse response,
HttpProcessor processor,
HttpContext context)
Post-processes the given response using the given protocol processor and
completes the process of request execution.
|
void |
HttpRequestExecutor.preProcess(HttpRequest request,
HttpProcessor processor,
HttpContext context)
Pre-process the given request using the given protocol processor and
initiates the process of request execution.
|
void |
RequestContent.process(HttpRequest request,
HttpContext context) |
void |
RequestConnControl.process(HttpRequest request,
HttpContext context) |
void |
BasicHttpProcessor.process(HttpRequest request,
HttpContext context) |
void |
RequestDate.process(HttpRequest request,
HttpContext context) |
void |
RequestTargetHost.process(HttpRequest request,
HttpContext context) |
void |
RequestExpectContinue.process(HttpRequest request,
HttpContext context) |
void |
ImmutableHttpProcessor.process(HttpRequest request,
HttpContext context) |
void |
RequestUserAgent.process(HttpRequest request,
HttpContext context) |
void |
ResponseDate.process(HttpResponse response,
HttpContext context) |
void |
ResponseContent.process(HttpResponse response,
HttpContext context)
Processes the response (possibly updating or inserting) Content-Length and Transfer-Encoding headers.
|
void |
ResponseServer.process(HttpResponse response,
HttpContext context) |
void |
BasicHttpProcessor.process(HttpResponse response,
HttpContext context) |
void |
ImmutableHttpProcessor.process(HttpResponse response,
HttpContext context) |
void |
ResponseConnControl.process(HttpResponse response,
HttpContext context) |
void |
HttpExpectationVerifier.verify(HttpRequest request,
HttpResponse response,
HttpContext context)
Verifies whether the given request meets the server's expectations.
|
Constructor and Description |
---|
BasicHttpContext(HttpContext parentContext) |
DefaultedHttpContext(HttpContext local,
HttpContext defaults) |
SyncBasicHttpContext(HttpContext parentContext)
Deprecated.
|
Copyright © 2005-2015 The Apache Software Foundation. All Rights Reserved.