Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

## Uses of Interface
org.apache.http.protocol.HttpContext

Packages that use HttpContext
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.

Uses of HttpContext in org.apache.http

Methods in org.apache.http with parameters of type HttpContext
`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.

Uses of HttpContext in org.apache.http.impl

Methods in org.apache.http.impl with parameters of type HttpContext
`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)`

Uses of HttpContext in org.apache.http.impl.nio

Fields in org.apache.http.impl.nio declared as HttpContext
`protected HttpContext` | `NHttpConnectionBase.context`

Methods in org.apache.http.impl.nio that return HttpContext
`HttpContext` | `NHttpConnectionBase.getContext()`

Uses of HttpContext in org.apache.http.nio

Methods in org.apache.http.nio that return HttpContext
`HttpContext` | `NHttpConnection.getContext()` Returns an HTTP execution context associated with this connection.

Uses of HttpContext in org.apache.http.nio.protocol

Methods in org.apache.http.nio.protocol that return HttpContext
`HttpContext` | `BasicAsyncRequestExecutionHandler.getContext()` Deprecated.
`HttpContext` | `HttpAsyncRequestExecutionHandler.getContext()` Deprecated. Returns shared `HttpContext` instance.

Methods in org.apache.http.nio.protocol with parameters of type HttpContext
`protected abstract T` | `AbstractAsyncResponseConsumer.buildResult(HttpContext context)` Invoked to generate a result object from the received HTTP response message.
`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 HttpResponse` | `BasicAsyncResponseConsumer.buildResult(HttpContext context)`
`protected HttpResponse` | `HttpAsyncService.createHttpResponse(int status, 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>> Future<T>`
` | `HttpAsyncRequester.execute(HttpAsyncRequestProducer requestProducer, HttpAsyncResponseConsumer<T> responseConsumer, ConnPool<HttpHost,E> connPool, HttpContext context)` Initiates asynchronous HTTP request execution.
`
`<T,E extends PoolEntry<HttpHost,NHttpClientConnection>> Future<T>`
` | `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>> Future<T>`
` | `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>> Future<List<T>>`
` | `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>> Future<List<T>>`
` | `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` | `HttpRequestExecutionHandler.finalizeContext(HttpContext context)` Deprecated. Triggered when the connection is terminated.
`void` | `NHttpRequestExecutionHandler.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` | `HttpRequestExecutionHandler.handleResponse(HttpResponse response, HttpContext context)` Deprecated. Triggered when an HTTP response is ready to be processed.
`void` | `NHttpRequestExecutionHandler.handleResponse(HttpResponse response, HttpContext context)` Deprecated. Triggered when an HTTP response is ready to be processed.
`void` | `HttpRequestExecutionHandler.initalizeContext(HttpContext context, Object attachment)` Deprecated. Triggered when a new connection has been established and the HTTP context needs to be initialized.
`void` | `NHttpRequestExecutionHandler.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` | `BasicAsyncRequestExecutionHandler.requestCompleted(HttpContext context)` Deprecated.
`void` | `AbstractAsyncRequestConsumer.requestCompleted(HttpContext context)` Use `AbstractAsyncRequestConsumer.buildResult(HttpContext)` instead.
`void` | `HttpAsyncRequestConsumer.requestCompleted(HttpContext context)` Invoked to signal that the request has been fully processed.
`void` | `HttpAsyncRequestProducer.requestCompleted(HttpContext context)` Invoked to signal that the request has been fully written out.
`void` | `BasicAsyncRequestProducer.requestCompleted(HttpContext context)`
`protected void` | `AsyncNHttpServiceHandler.responseComplete(HttpResponse response, HttpContext context)` Deprecated. Signals that this response has been fully sent.
`void` | `HttpAsyncResponseProducer.responseCompleted(HttpContext context)` Invoked to signal that the response has been fully written out.
`void` | `AbstractAsyncResponseConsumer.responseCompleted(HttpContext context)` Use `AbstractAsyncResponseConsumer.buildResult(HttpContext)` instead.
`void` | `BasicAsyncRequestExecutionHandler.responseCompleted(HttpContext context)` Deprecated.
`void` | `BasicAsyncResponseProducer.responseCompleted(HttpContext context)`
`void` | `HttpAsyncResponseConsumer.responseCompleted(HttpContext context)` Invoked to signal that the response has been fully processed.
`void` | `ErrorResponseProducer.responseCompleted(HttpContext context)`
`ConsumingNHttpEntity` | `NHttpRequestExecutionHandler.responseEntity(HttpResponse response, HttpContext context)` Deprecated. Triggered when a response is received with an entity.
`HttpRequest` | `HttpRequestExecutionHandler.submitRequest(HttpContext context)` Deprecated. Triggered when the underlying connection is ready to send a new HTTP request to the target host.
`HttpRequest` | `NHttpRequestExecutionHandler.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)`

Constructors in org.apache.http.nio.protocol with parameters of type HttpContext
`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`.

Uses of HttpContext in org.apache.http.protocol

Classes in org.apache.http.protocol that implement HttpContext
`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

Methods in org.apache.http.protocol that return HttpContext
`HttpContext` | `DefaultedHttpContext.getDefaults()` Deprecated.

Methods in org.apache.http.protocol with parameters of type HttpContext
`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` | `RequestContent.process(HttpRequest request, HttpContext context)`
`void` | `ImmutableHttpProcessor.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` | `RequestUserAgent.process(HttpRequest request, HttpContext context)`
`void` | `RequestTargetHost.process(HttpRequest request, HttpContext context)`
`void` | `BasicHttpProcessor.process(HttpRequest request, HttpContext context)` Deprecated.
`void` | `ResponseContent.process(HttpResponse response, HttpContext context)` Processes the response (possibly updating or inserting) Content-Length and Transfer-Encoding headers.
`void` | `ImmutableHttpProcessor.process(HttpResponse response, HttpContext context)`
`void` | `ResponseDate.process(HttpResponse response, HttpContext context)`
`void` | `ResponseServer.process(HttpResponse response, HttpContext context)`
`void` | `ResponseConnControl.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.

Constructors in org.apache.http.protocol with parameters of type HttpContext
`BasicHttpContext(HttpContext parentContext)`
`DefaultedHttpContext(HttpContext local, HttpContext defaults)` Deprecated.
`HttpCoreContext(HttpContext context)`
`SyncBasicHttpContext(HttpContext parentContext)` Deprecated.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.