Package | Description |
---|---|
org.apache.http |
Core HTTP component APIs and primitives.
|
org.apache.http.impl |
Default implementations of HTTP connections for synchronous,
blocking communication.
|
org.apache.http.impl.nio |
Default implementations of HTTP connections for asynchronous,
even driven communication.
|
org.apache.http.nio |
Core HTTP component APIs and primitives for asynchronous, event
driven communication.
|
org.apache.http.nio.protocol |
Core HTTP protocol execution framework and HTTP protocol handlers
for asynchronous, event driven communication.
|
org.apache.http.protocol |
Core HTTP protocol execution framework and HTTP protocol handlers
for synchronous, blocking communication.
|
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 |
NoConnectionReuseStrategy.keepAlive(HttpResponse response,
HttpContext context) |
boolean |
DefaultConnectionReuseStrategy.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 |
HttpAsyncRequestExecutionHandler.getContext()
Deprecated.
Returns shared
HttpContext instance. |
HttpContext |
BasicAsyncRequestExecutionHandler.getContext()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected abstract T |
AbstractAsyncRequestConsumer.buildResult(HttpContext context)
Invoked to generate a result object from the received HTTP request
message.
|
protected HttpRequest |
BasicAsyncRequestConsumer.buildResult(HttpContext context) |
protected abstract T |
AbstractAsyncResponseConsumer.buildResult(HttpContext context)
Invoked to generate a result object from the received HTTP response
message.
|
protected HttpResponse |
BasicAsyncResponseConsumer.buildResult(HttpContext context) |
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,E extends PoolEntry<HttpHost,NHttpClientConnection>> |
HttpAsyncRequester.execute(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
E poolEntry,
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.
|
<T,E extends PoolEntry<HttpHost,NHttpClientConnection>> |
HttpAsyncRequester.executePipelined(HttpHost target,
List<? extends HttpAsyncRequestProducer> requestProducers,
List<? extends HttpAsyncResponseConsumer<T>> responseConsumers,
ConnPool<HttpHost,E> connPool,
HttpContext context,
FutureCallback<List<T>> callback)
Initiates asynchronous pipelined HTTP request execution.
|
<T,E extends PoolEntry<HttpHost,NHttpClientConnection>> |
HttpAsyncRequester.executePipelined(List<HttpAsyncRequestProducer> requestProducers,
List<HttpAsyncResponseConsumer<T>> responseConsumers,
E poolEntry,
ConnPool<HttpHost,E> connPool,
HttpContext context,
FutureCallback<List<T>> callback)
Initiates asynchronous pipelined 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 void |
HttpAsyncService.handleAlreadySubmittedResponse(Cancellable cancellable,
HttpContext context)
This method can be used to handle callback set up happened after
response submission.
|
protected void |
HttpAsyncService.handleAlreadySubmittedResponse(HttpAsyncResponseProducer responseProducer,
HttpContext context)
This method can be used to handle double response submission.
|
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<HttpRequest> |
BasicAsyncRequestHandler.processRequest(HttpRequest request,
HttpContext context) |
HttpAsyncRequestConsumer<T> |
HttpAsyncRequestHandler.processRequest(HttpRequest request,
HttpContext context)
Triggered when an incoming request is received.
|
void |
AbstractAsyncRequestConsumer.requestCompleted(HttpContext context)
|
void |
BasicAsyncRequestExecutionHandler.requestCompleted(HttpContext context)
Deprecated.
|
void |
BasicAsyncRequestProducer.requestCompleted(HttpContext context) |
void |
HttpAsyncRequestProducer.requestCompleted(HttpContext context)
Invoked to signal that the request has been fully written out.
|
void |
HttpAsyncRequestConsumer.requestCompleted(HttpContext context)
Invoked to signal that the request has been fully processed.
|
protected void |
AsyncNHttpServiceHandler.responseComplete(HttpResponse response,
HttpContext context)
Deprecated.
Signals that this response has been fully sent.
|
void |
ErrorResponseProducer.responseCompleted(HttpContext context) |
void |
HttpAsyncResponseConsumer.responseCompleted(HttpContext context)
Invoked to signal that the response has been fully processed.
|
void |
BasicAsyncRequestExecutionHandler.responseCompleted(HttpContext context)
Deprecated.
|
void |
HttpAsyncResponseProducer.responseCompleted(HttpContext context)
Invoked to signal that the response has been fully written out.
|
void |
AbstractAsyncResponseConsumer.responseCompleted(HttpContext context)
|
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.
|
protected int |
HttpAsyncService.toStatusCode(Exception ex,
HttpContext context) |
void |
HttpAsyncExpectationVerifier.verify(HttpAsyncExchange httpExchange,
HttpContext context) |
Constructor and Description |
---|
BasicAsyncClientExchangeHandler(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
FutureCallback<T> callback,
HttpContext localContext,
NHttpClientConnection conn,
HttpProcessor httppocessor,
ConnectionReuseStrategy connReuseStrategy)
Creates new instance of BasicAsyncRequestExecutionHandler.
|
BasicAsyncClientExchangeHandler(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
HttpContext localContext,
NHttpClientConnection conn,
HttpProcessor httppocessor)
Creates new instance of BasicAsyncRequestExecutionHandler.
|
BasicAsyncRequestExecutionHandler(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
FutureCallback<T> callback,
HttpContext localContext,
HttpProcessor httppocessor,
ConnectionReuseStrategy reuseStrategy,
HttpParams params)
Deprecated.
|
BasicAsyncRequestExecutionHandler(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
HttpContext localContext,
HttpProcessor httppocessor,
ConnectionReuseStrategy reuseStrategy,
HttpParams params)
Deprecated.
|
PipeliningClientExchangeHandler(List<? extends HttpAsyncRequestProducer> requestProducers,
List<? extends HttpAsyncResponseConsumer<T>> responseConsumers,
FutureCallback<List<T>> callback,
HttpContext localContext,
NHttpClientConnection conn,
HttpProcessor httppocessor,
ConnectionReuseStrategy connReuseStrategy)
Creates new instance of
PipeliningClientExchangeHandler . |
PipeliningClientExchangeHandler(List<? extends HttpAsyncRequestProducer> requestProducers,
List<? extends HttpAsyncResponseConsumer<T>> responseConsumers,
HttpContext localContext,
NHttpClientConnection conn,
HttpProcessor httppocessor)
Creates new instance of
PipeliningClientExchangeHandler . |
Modifier and Type | Class and Description |
---|---|
class |
BasicHttpContext
Default implementation of
HttpContext . |
class |
DefaultedHttpContext
Deprecated.
(4.3) no longer used.
|
class |
HttpCoreContext
Implementation of
HttpContext that provides convenience
setters for user assignable attributes and getter for readable attributes. |
class |
SyncBasicHttpContext
Deprecated.
(4.2) HttpContext instances may not be shared by multiple threads
|
Modifier and Type | Method and Description |
---|---|
HttpContext |
DefaultedHttpContext.getDefaults()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static HttpCoreContext |
HttpCoreContext.adapt(HttpContext context) |
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 |
ImmutableHttpProcessor.process(HttpRequest request,
HttpContext context) |
void |
RequestContent.process(HttpRequest request,
HttpContext context) |
void |
RequestUserAgent.process(HttpRequest request,
HttpContext context) |
void |
RequestTargetHost.process(HttpRequest request,
HttpContext context) |
void |
RequestConnControl.process(HttpRequest request,
HttpContext context) |
void |
RequestDate.process(HttpRequest request,
HttpContext context) |
void |
RequestExpectContinue.process(HttpRequest request,
HttpContext context) |
void |
BasicHttpProcessor.process(HttpRequest request,
HttpContext context)
Deprecated.
|
void |
ImmutableHttpProcessor.process(HttpResponse response,
HttpContext context) |
void |
ResponseConnControl.process(HttpResponse response,
HttpContext context) |
void |
ResponseServer.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 |
ResponseDate.process(HttpResponse response,
HttpContext context) |
void |
BasicHttpProcessor.process(HttpResponse response,
HttpContext context)
Deprecated.
|
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)
Deprecated.
|
HttpCoreContext(HttpContext context) |
SyncBasicHttpContext(HttpContext parentContext)
Deprecated.
|
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.