Package | Description |
---|---|
org.apache.hc.core5.http |
Core HTTP transport component APIs.
|
org.apache.hc.core5.http.impl |
Default implementations of core HTTP APIs.
|
org.apache.hc.core5.http.impl.bootstrap |
HTTP/1.1 requester and server bootstrap.
|
org.apache.hc.core5.http.impl.io |
Default implementation of HTTP/1.1 transport based on the classic
(blocking) I/O model.
|
org.apache.hc.core5.http.io |
Core HTTP transport APIs based on the classic (blocking) I/O model.
|
org.apache.hc.core5.http.io.support |
Support classes for the classic (blocking) I/O model.
|
org.apache.hc.core5.http.nio |
Core HTTP transport APIs based on the asynchronous, event driven I/O model.
|
org.apache.hc.core5.http.nio.command |
Commands for HTTP transports based on asynchronous, event driven I/O model.
|
org.apache.hc.core5.http.nio.support |
Support classes for the asynchronous I/O model.
|
org.apache.hc.core5.http.nio.support.classic |
Support classes for the asynchronous I/O model that emulate
behavior of the classic (blocking) I/O model.
|
org.apache.hc.core5.http.protocol |
Core HTTP protocol interceptors.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ConnectionReuseStrategy.keepAlive(HttpRequest request,
HttpResponse response,
HttpContext context)
Decides whether a connection can be kept open after a request.
|
void |
HttpRequestInterceptor.process(HttpRequest request,
EntityDetails entity,
HttpContext context)
Processes a request.
|
void |
HttpResponseInterceptor.process(HttpResponse response,
EntityDetails entity,
HttpContext context)
Processes a response.
|
T |
HttpRequestMapper.resolve(HttpRequest request,
HttpContext context)
Resolves a handler matching the given request.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultConnectionReuseStrategy.keepAlive(HttpRequest request,
HttpResponse response,
HttpContext context) |
Modifier and Type | Method and Description |
---|---|
void |
HttpAsyncRequester.execute(AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
Timeout timeout,
HttpContext executeContext) |
void |
HttpAsyncRequester.execute(AsyncClientExchangeHandler exchangeHandler,
Timeout timeout,
HttpContext executeContext) |
<T> Future<T> |
HttpAsyncRequester.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
Timeout timeout,
HttpContext context,
FutureCallback<T> callback) |
<T> Future<T> |
HttpAsyncRequester.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
Timeout timeout,
HttpContext context,
FutureCallback<T> callback) |
ClassicHttpResponse |
HttpRequester.execute(HttpClientConnection connection,
ClassicHttpRequest request,
HttpContext context) |
<T> T |
HttpRequester.execute(HttpClientConnection connection,
ClassicHttpRequest request,
HttpContext context,
HttpClientResponseHandler<T> responseHandler) |
ClassicHttpResponse |
HttpRequester.execute(HttpClientConnection connection,
ClassicHttpRequest request,
HttpResponseInformationCallback informationCallback,
HttpContext context) |
ClassicHttpResponse |
HttpRequester.execute(HttpHost targetHost,
ClassicHttpRequest request,
HttpResponseInformationCallback informationCallback,
Timeout connectTimeout,
HttpContext context) |
ClassicHttpResponse |
HttpRequester.execute(HttpHost targetHost,
ClassicHttpRequest request,
Timeout connectTimeout,
HttpContext context) |
<T> T |
HttpRequester.execute(HttpHost targetHost,
ClassicHttpRequest request,
Timeout connectTimeout,
HttpContext context,
HttpClientResponseHandler<T> responseHandler) |
boolean |
HttpRequester.keepAlive(HttpClientConnection connection,
ClassicHttpRequest request,
ClassicHttpResponse response,
HttpContext context) |
Modifier and Type | Method and Description |
---|---|
ClassicHttpResponse |
HttpRequestExecutor.execute(ClassicHttpRequest request,
HttpClientConnection conn,
HttpContext context)
Sends the request and obtain a response.
|
ClassicHttpResponse |
HttpRequestExecutor.execute(ClassicHttpRequest request,
HttpClientConnection conn,
HttpResponseInformationCallback informationCallback,
HttpContext context)
Sends the request and obtain a response.
|
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.
|
boolean |
HttpRequestExecutor.keepAlive(ClassicHttpRequest request,
ClassicHttpResponse response,
HttpClientConnection connection,
HttpContext context)
Determines whether the connection can be kept alive and is safe to be re-used for subsequent message exchanges.
|
void |
HttpRequestExecutor.postProcess(ClassicHttpResponse 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(ClassicHttpRequest request,
HttpProcessor processor,
HttpContext context)
Pre-process the given request using the given protocol processor and
initiates the process of request execution.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpResponseInformationCallback.execute(HttpResponse response,
HttpConnection connection,
HttpContext context) |
void |
HttpRequestHandler.handle(ClassicHttpRequest request,
ClassicHttpResponse response,
HttpContext context)
Handles the request and produces a response to be sent back to
the client.
|
void |
HttpFilterHandler.handle(ClassicHttpRequest request,
HttpFilterChain.ResponseTrigger responseTrigger,
HttpContext context,
HttpFilterChain chain)
Processes the incoming HTTP request and if processing has been completed
submits a final response to the client.
|
void |
HttpServerRequestHandler.handle(ClassicHttpRequest request,
HttpServerRequestHandler.ResponseTrigger responseTrigger,
HttpContext context)
Handles the request and submits a final response to be sent back to the client.
|
void |
HttpFilterChain.proceed(ClassicHttpRequest request,
HttpFilterChain.ResponseTrigger responseTrigger,
HttpContext context)
Proceeds to the next element in the request processing chain.
|
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
AbstractHttpServerAuthFilter.authenticate(T challengeResponse,
URIAuthority authority,
String requestUri,
HttpContext context)
Authenticates the client using the authentication token sent by the client
as a response to an authentication challenge.
|
protected abstract String |
AbstractHttpServerAuthFilter.generateChallenge(T challengeResponse,
URIAuthority authority,
String requestUri,
HttpContext context)
Generates an authentication challenge in case of unsuccessful authentication.
|
void |
HttpServerFilterChainElement.handle(ClassicHttpRequest request,
HttpFilterChain.ResponseTrigger responseTrigger,
HttpContext context) |
void |
AbstractHttpServerAuthFilter.handle(ClassicHttpRequest request,
HttpFilterChain.ResponseTrigger responseTrigger,
HttpContext context,
HttpFilterChain chain) |
void |
TerminalServerFilter.handle(ClassicHttpRequest request,
HttpFilterChain.ResponseTrigger responseTrigger,
HttpContext context,
HttpFilterChain chain) |
void |
HttpServerExpectationFilter.handle(ClassicHttpRequest request,
HttpFilterChain.ResponseTrigger responseTrigger,
HttpContext context,
HttpFilterChain chain) |
void |
BasicHttpServerRequestHandler.handle(ClassicHttpRequest request,
HttpServerRequestHandler.ResponseTrigger responseTrigger,
HttpContext context) |
void |
BasicHttpServerExpectationDecorator.handle(ClassicHttpRequest request,
HttpServerRequestHandler.ResponseTrigger responseTrigger,
HttpContext context) |
void |
HttpServerFilterChainRequestHandler.handle(ClassicHttpRequest request,
HttpServerRequestHandler.ResponseTrigger trigger,
HttpContext context) |
protected abstract T |
AbstractHttpServerAuthFilter.parseChallengeResponse(String authorizationValue,
HttpContext context)
Parses authorization header value into an authentication token sent by the client
as a response to an authentication challenge.
|
protected ClassicHttpResponse |
BasicHttpServerExpectationDecorator.verify(ClassicHttpRequest request,
HttpContext context)
Verifies the HTTP request and decides whether it meets server expectations and the request
processing can continue.
|
protected boolean |
HttpServerExpectationFilter.verify(ClassicHttpRequest request,
HttpContext context)
Verifies the HTTP request and decides whether it meets server expectations and the request
processing can continue.
|
Modifier and Type | Method and Description |
---|---|
void |
AsyncClientExchangeHandler.consumeInformation(HttpResponse response,
HttpContext context)
Triggered to signal receipt of an intermediate (1xx) HTTP response.
|
void |
AsyncPushConsumer.consumePromise(HttpRequest promise,
HttpResponse response,
EntityDetails entityDetails,
HttpContext context)
Triggered to signal receipt of a request message head used as a promise
and the corresponding pushed response.
|
void |
AsyncRequestConsumer.consumeRequest(HttpRequest request,
EntityDetails entityDetails,
HttpContext context,
FutureCallback<T> resultCallback)
Triggered to signal receipt of a request message head.
|
void |
AsyncClientExchangeHandler.consumeResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext context)
Triggered to signal receipt of a response message head.
|
void |
AsyncResponseConsumer.consumeResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext context,
FutureCallback<T> resultCallback)
Triggered to signal receipt of a response message head.
|
T |
HandlerFactory.create(HttpRequest request,
HttpContext context)
Creates a new handler instance based on properties of
an incoming request message..
|
abstract void |
AsyncClientEndpoint.execute(AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context)
Initiates a message exchange using the given handler.
|
void |
AsyncClientEndpoint.execute(AsyncClientExchangeHandler exchangeHandler,
HttpContext context)
Initiates a message exchange using the given handler.
|
<T> Future<T> |
AsyncClientEndpoint.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context,
FutureCallback<T> callback)
Initiates message exchange using the given request producer and response consumer.
|
<T> Future<T> |
AsyncClientEndpoint.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HttpContext context,
FutureCallback<T> callback)
Initiates message exchange using the given request producer and response consumer.
|
AsyncDataConsumer |
AsyncFilterHandler.handle(HttpRequest request,
EntityDetails entityDetails,
HttpContext context,
AsyncFilterChain.ResponseTrigger responseTrigger,
AsyncFilterChain chain)
Processes the incoming HTTP request and if processing has been completed
submits a final response to the client.
|
void |
AsyncServerRequestHandler.handle(T requestObject,
AsyncServerRequestHandler.ResponseTrigger responseTrigger,
HttpContext context)
Triggered to handles the request object produced by the
AsyncRequestConsumer returned
from the AsyncServerRequestHandler.prepare(HttpRequest, EntityDetails, HttpContext) method. |
void |
AsyncServerExchangeHandler.handleRequest(HttpRequest request,
EntityDetails entityDetails,
ResponseChannel responseChannel,
HttpContext context)
Processes the actual HTTP request.
|
void |
AsyncResponseConsumer.informationResponse(HttpResponse response,
HttpContext context)
Triggered to signal receipt of an intermediate (1xx) HTTP response.
|
AsyncRequestConsumer<T> |
AsyncServerRequestHandler.prepare(HttpRequest request,
EntityDetails entityDetails,
HttpContext context)
Triggered to signal new incoming request.
|
AsyncDataConsumer |
AsyncFilterChain.proceed(HttpRequest request,
EntityDetails entityDetails,
HttpContext context,
AsyncFilterChain.ResponseTrigger responseTrigger)
Proceeds to the next element in the request processing chain.
|
void |
AsyncClientExchangeHandler.produceRequest(RequestChannel channel,
HttpContext context)
Triggered to signal the ability of the underlying request channel
to accept a request messages.
|
void |
AsyncPushProducer.produceResponse(ResponseChannel channel,
HttpContext context)
Triggered to signal the ability of the underlying response channel
to accept response messages.
|
void |
ResponseChannel.pushPromise(HttpRequest promise,
AsyncPushProducer responseProducer,
HttpContext context)
Pushes a request message head through this channel as a promise to deliver
a response message.
|
void |
AsyncServerRequestHandler.ResponseTrigger.pushPromise(HttpRequest promise,
HttpContext context,
AsyncPushProducer responseProducer)
Pushes a request message head as a promise to deliver a response message.
|
void |
AsyncServerRequestHandler.ResponseTrigger.sendInformation(HttpResponse response,
HttpContext context)
Sends an intermediate informational HTTP response to the client.
|
void |
ResponseChannel.sendInformation(HttpResponse response,
HttpContext context)
Sends an intermediate informational HTTP response through this channel.
|
void |
RequestChannel.sendRequest(HttpRequest request,
EntityDetails entityDetails,
HttpContext context)
Sends a request through this channel.
|
void |
AsyncRequestProducer.sendRequest(RequestChannel channel,
HttpContext context)
Triggered to signal the ability of the underlying request channel
to accept a request messages.
|
void |
ResponseChannel.sendResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext context)
Sends a final HTTP response through this channel.
|
void |
AsyncResponseProducer.sendResponse(ResponseChannel channel,
HttpContext context)
Triggered to signal the ability of the underlying response channel
to accept response messages.
|
void |
AsyncServerRequestHandler.ResponseTrigger.submitResponse(AsyncResponseProducer responseProducer,
HttpContext context)
Sends a final HTTP response to the client.
|
Modifier and Type | Method and Description |
---|---|
HttpContext |
RequestExecutionCommand.getContext() |
Constructor and Description |
---|
RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
CancellableDependency cancellableDependency,
HttpContext context) |
RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context) |
RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler,
HttpContext context) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
AbstractAsyncServerAuthFilter.authenticate(T challengeResponse,
URIAuthority authority,
String requestUri,
HttpContext context)
Authenticates the client using the authentication token sent by the client
as a response to an authentication challenge.
|
void |
BasicClientExchangeHandler.consumeInformation(HttpResponse response,
HttpContext httpContext) |
void |
AbstractAsyncPushHandler.consumePromise(HttpRequest promise,
HttpResponse response,
EntityDetails entityDetails,
HttpContext httpContext) |
void |
BasicRequestConsumer.consumeRequest(HttpRequest request,
EntityDetails entityDetails,
HttpContext httpContext,
FutureCallback<Message<HttpRequest,T>> resultCallback) |
void |
AbstractAsyncRequesterConsumer.consumeRequest(HttpRequest request,
EntityDetails entityDetails,
HttpContext httpContext,
FutureCallback<T> resultCallback) |
void |
BasicClientExchangeHandler.consumeResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext httpContext) |
void |
BasicResponseConsumer.consumeResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext httpContext,
FutureCallback<Message<HttpResponse,T>> resultCallback) |
void |
AbstractAsyncResponseConsumer.consumeResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext httpContext,
FutureCallback<T> resultCallback) |
AsyncServerExchangeHandler |
AsyncServerFilterChainExchangeHandlerFactory.create(HttpRequest request,
HttpContext context) |
AsyncServerExchangeHandler |
DefaultAsyncResponseExchangeHandlerFactory.create(HttpRequest request,
HttpContext context) |
protected abstract String |
AbstractAsyncServerAuthFilter.generateChallenge(T challengeResponse,
URIAuthority authority,
String requestUri,
HttpContext context)
Generates an authentication challenge in case of unsuccessful authentication.
|
AsyncDataConsumer |
AsyncServerFilterChainElement.handle(HttpRequest request,
EntityDetails entityDetails,
HttpContext context,
AsyncFilterChain.ResponseTrigger responseTrigger) |
AsyncDataConsumer |
AsyncServerExpectationFilter.handle(HttpRequest request,
EntityDetails entityDetails,
HttpContext context,
AsyncFilterChain.ResponseTrigger responseTrigger,
AsyncFilterChain chain) |
AsyncDataConsumer |
TerminalAsyncServerFilter.handle(HttpRequest request,
EntityDetails entityDetails,
HttpContext context,
AsyncFilterChain.ResponseTrigger responseTrigger,
AsyncFilterChain chain) |
AsyncDataConsumer |
AbstractAsyncServerAuthFilter.handle(HttpRequest request,
EntityDetails entityDetails,
HttpContext context,
AsyncFilterChain.ResponseTrigger responseTrigger,
AsyncFilterChain chain) |
protected abstract void |
AbstractServerExchangeHandler.handle(T requestMessage,
AsyncServerRequestHandler.ResponseTrigger responseTrigger,
HttpContext context)
Triggered to handles the request object produced by the
AsyncRequestConsumer returned
from the AbstractServerExchangeHandler.supplyConsumer(HttpRequest, EntityDetails, HttpContext) method. |
protected void |
BasicServerExchangeHandler.handle(T requestMessage,
AsyncServerRequestHandler.ResponseTrigger responseTrigger,
HttpContext context) |
void |
AbstractServerExchangeHandler.handleRequest(HttpRequest request,
EntityDetails entityDetails,
ResponseChannel responseChannel,
HttpContext context) |
void |
BasicAsyncServerExpectationDecorator.handleRequest(HttpRequest request,
EntityDetails entityDetails,
ResponseChannel responseChannel,
HttpContext context) |
void |
ImmediateResponseExchangeHandler.handleRequest(HttpRequest request,
EntityDetails entityDetails,
ResponseChannel responseChannel,
HttpContext context) |
void |
BasicResponseConsumer.informationResponse(HttpResponse response,
HttpContext httpContext) |
protected abstract T |
AbstractAsyncServerAuthFilter.parseChallengeResponse(String authorizationValue,
HttpContext context)
Parses authorization header value into an authentication token sent by the client
as a response to an authentication challenge.
|
void |
BasicClientExchangeHandler.produceRequest(RequestChannel requestChannel,
HttpContext httpContext) |
void |
BasicPushProducer.produceResponse(ResponseChannel channel,
HttpContext httpContext) |
void |
BasicRequestProducer.sendRequest(RequestChannel requestChannel,
HttpContext httpContext) |
void |
BasicResponseProducer.sendResponse(ResponseChannel responseChannel,
HttpContext httpContext) |
protected abstract AsyncRequestConsumer<T> |
AbstractServerExchangeHandler.supplyConsumer(HttpRequest request,
EntityDetails entityDetails,
HttpContext context)
Triggered to supply a request consumer to process the incoming request.
|
protected AsyncRequestConsumer<T> |
BasicServerExchangeHandler.supplyConsumer(HttpRequest request,
EntityDetails entityDetails,
HttpContext context) |
protected boolean |
AsyncServerExpectationFilter.verify(HttpRequest request,
HttpContext context) |
protected AsyncResponseProducer |
BasicAsyncServerExpectationDecorator.verify(HttpRequest request,
HttpContext context) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractClassicServerExchangeHandler.handle(HttpRequest request,
InputStream requestStream,
HttpResponse response,
OutputStream responseStream,
HttpContext context)
Handles an incoming request optionally reading its entity content form the given input stream
and generates a response optionally writing out its entity content into the given output stream.
|
void |
AbstractClassicServerExchangeHandler.handleRequest(HttpRequest request,
EntityDetails entityDetails,
ResponseChannel responseChannel,
HttpContext context) |
Modifier and Type | Class and Description |
---|---|
class |
BasicHttpContext
Default implementation of
HttpContext . |
class |
HttpCoreContext
Implementation of
HttpContext that provides convenience
setters for user assignable attributes and getter for readable attributes. |
Modifier and Type | Method and Description |
---|---|
static HttpCoreContext |
HttpCoreContext.adapt(HttpContext context) |
void |
RequestTargetHost.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
DefaultHttpProcessor.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
RequestExpectContinue.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
RequestContent.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
RequestConnControl.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
RequestDate.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
RequestValidateHost.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
RequestUserAgent.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
DefaultHttpProcessor.process(HttpResponse response,
EntityDetails entity,
HttpContext context) |
void |
ResponseDate.process(HttpResponse response,
EntityDetails entity,
HttpContext context) |
void |
ResponseConnControl.process(HttpResponse response,
EntityDetails entity,
HttpContext context) |
void |
ResponseContent.process(HttpResponse response,
EntityDetails entity,
HttpContext context)
Processes the response (possibly updating or inserting) Content-Length and Transfer-Encoding headers.
|
void |
ResponseServer.process(HttpResponse response,
EntityDetails entity,
HttpContext context) |
T |
RequestHandlerRegistry.resolve(HttpRequest request,
HttpContext context) |
Constructor and Description |
---|
BasicHttpContext(HttpContext parentContext) |
HttpCoreContext(HttpContext context) |
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.