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

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

- - ### Uses of HttpContext in org.apache.http

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

  - ### Uses of HttpContext in org.apache.http.impl

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

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

    Fields in org.apache.http.impl.nio declared as HttpContext
    Modifier and Type | Field and Description
    --- | ---
    `protected HttpContext` | NHttpConnectionBase.`context`

    Methods in org.apache.http.impl.nio that return HttpContext
    Modifier and Type | Method and Description
    --- | ---
    `HttpContext` | NHttpConnectionBase.`getContext()`

  - ### Uses of HttpContext in org.apache.http.nio

    Methods in org.apache.http.nio that return HttpContext
    Modifier and Type | Method and Description
    --- | ---
    `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
    Modifier and Type | Method and Description
    --- | ---
    `HttpContext` | HttpAsyncRequestExecutionHandler.`getContext()` Deprecated. Returns shared `HttpContext` instance.
    `HttpContext` | BasicAsyncRequestExecutionHandler.`getContext()` Deprecated.

    Methods in org.apache.http.nio.protocol with parameters of type HttpContext
    Modifier and Type | Method and Description
    --- | ---
    `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)`
    `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.
    `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.
    `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` | SimpleNHttpRequestHandler.`handle(HttpRequest request, HttpResponse response, NHttpResponseTrigger trigger, HttpContext context)` Deprecated.
    `void` | NHttpRequestHandler.`handle(HttpRequest request, HttpResponse response, NHttpResponseTrigger trigger, HttpContext context)` Deprecated. Initiates processing of the request.
    `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<HttpRequest>` | BasicAsyncRequestHandler.`processRequest(HttpRequest request, HttpContext context)`
    `HttpAsyncRequestConsumer<T>` | HttpAsyncRequestHandler.`processRequest(HttpRequest request, HttpContext context)` Triggered when an incoming request is received.
    `void` | HttpAsyncRequestConsumer.`requestCompleted(HttpContext context)` Invoked to signal that the request has been fully processed.
    `void` | BasicAsyncRequestProducer.`requestCompleted(HttpContext context)`
    `void` | HttpAsyncRequestProducer.`requestCompleted(HttpContext context)` Invoked to signal that the request has been fully written out.
    `void` | BasicAsyncRequestExecutionHandler.`requestCompleted(HttpContext context)` Deprecated.
    `void` | AbstractAsyncRequestConsumer.`requestCompleted(HttpContext context)` Use `AbstractAsyncRequestConsumer.buildResult(HttpContext)` instead.
    `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` | BasicAsyncResponseProducer.`responseCompleted(HttpContext context)`
    `void` | AbstractAsyncResponseConsumer.`responseCompleted(HttpContext context)` Use `AbstractAsyncResponseConsumer.buildResult(HttpContext)` instead.
    `void` | HttpAsyncResponseConsumer.`responseCompleted(HttpContext context)` Invoked to signal that the response has been fully processed.
    `void` | BasicAsyncRequestExecutionHandler.`responseCompleted(HttpContext context)` Deprecated.
    `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)`

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

  - ### Uses of HttpContext in org.apache.http.protocol

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

    Methods in org.apache.http.protocol that return HttpContext
    Modifier and Type | Method and Description
    --- | ---
    `HttpContext` | DefaultedHttpContext.`getDefaults()` Deprecated.

    Methods in org.apache.http.protocol with parameters of type HttpContext
    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` | RequestTargetHost.`process(HttpRequest request, HttpContext context)`
    `void` | RequestUserAgent.`process(HttpRequest request, HttpContext context)`
    `void` | BasicHttpProcessor.`process(HttpRequest request, HttpContext context)` Deprecated.
    `void` | RequestConnControl.`process(HttpRequest request, HttpContext context)`
    `void` | RequestDate.`process(HttpRequest request, HttpContext context)`
    `void` | ImmutableHttpProcessor.`process(HttpRequest request, HttpContext context)`
    `void` | RequestContent.`process(HttpRequest request, HttpContext context)`
    `void` | RequestExpectContinue.`process(HttpRequest request, HttpContext context)`
    `void` | ResponseConnControl.`process(HttpResponse response, HttpContext context)`
    `void` | ResponseServer.`process(HttpResponse response, HttpContext context)`
    `void` | BasicHttpProcessor.`process(HttpResponse response, HttpContext context)` Deprecated.
    `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` | ImmutableHttpProcessor.`process(HttpResponse response, HttpContext context)`
    `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
    Constructor and Description
    `BasicHttpContext(HttpContext parentContext)`
    `DefaultedHttpContext(HttpContext local, HttpContext defaults)` Deprecated.
    `HttpCoreContext(HttpContext context)`
    `SyncBasicHttpContext(HttpContext parentContext)` Deprecated.

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