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.io.entity |
HTTP message entity APIs based on the classic (blocking) I/O model.
|
org.apache.hc.core5.http.message |
Core HTTP message components, message element parser
and writer APIs and their default implementations.
|
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.entity |
HTTP message entity APIs based on the asynchronous (non-blocking) 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.
|
org.apache.hc.core5.http.support | |
org.apache.hc.core5.util |
Core utility classes.
|
Modifier and Type | Interface and Description |
---|---|
interface |
HttpEntity
An entity that can be sent or received with an HTTP message.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpRequestInterceptor.process(HttpRequest request,
EntityDetails entity,
HttpContext context)
Processes a request.
|
void |
HttpResponseInterceptor.process(HttpResponse response,
EntityDetails entity,
HttpContext context)
Processes a response.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicEntityDetails
Basic HTTP message entity details.
|
class |
IncomingEntityDetails
HTTP message entity details.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractHttpEntity
Abstract base class for mutable entities.
|
class |
BasicHttpEntity
A generic streamed, non-repeatable entity that obtains its content from an
InputStream . |
class |
BufferedHttpEntity
A wrapping entity that buffers it content if necessary.
|
class |
ByteArrayEntity
A self contained, repeatable entity that obtains its content from a byte array.
|
class |
ByteBufferEntity
An entity that delivers the contents of a
ByteBuffer . |
class |
EntityTemplate
Entity that delegates the process of content generation to a
IOCallback
with OutputStream as output sink. |
class |
FileEntity
A self contained, repeatable entity that obtains its content from a file.
|
class |
HttpEntityWrapper
Base class for wrapping entities that delegates all calls to the wrapped entity.
|
class |
InputStreamEntity
A streamed, non-repeatable entity that obtains its content from an
InputStream . |
class |
NullEntity
An empty entity with no content-type.
|
class |
PathEntity
A self contained, repeatable entity that obtains its content from a path.
|
class |
SerializableEntity
A streamed entity that obtains its content from a
Serializable . |
class |
StringEntity
A self contained, repeatable entity that obtains its content from a
String . |
Modifier and Type | Method and Description |
---|---|
static void |
MessageSupport.addContentEncodingHeader(HttpMessage message,
EntityDetails entity) |
static void |
MessageSupport.addContentTypeHeader(HttpMessage message,
EntityDetails entity) |
static void |
MessageSupport.addTrailerHeader(HttpMessage message,
EntityDetails entity) |
Modifier and Type | Interface and Description |
---|---|
interface |
AsyncEntityProducer
Abstract asynchronous message entity producer.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 |
AsyncServerExchangeHandler.handleRequest(HttpRequest request,
EntityDetails entityDetails,
ResponseChannel responseChannel,
HttpContext context)
Processes the actual HTTP request.
|
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 |
RequestChannel.sendRequest(HttpRequest request,
EntityDetails entityDetails,
HttpContext context)
Sends a request through this channel.
|
void |
ResponseChannel.sendResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext context)
Sends a final HTTP response through this channel.
|
void |
AsyncEntityConsumer.streamStart(EntityDetails entityDetails,
FutureCallback<T> resultCallback)
Signals beginning of an incoming request entity stream.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractBinAsyncEntityProducer
Abstract binary entity content producer.
|
class |
AbstractCharAsyncEntityProducer
Abstract text entity content producer.
|
class |
AsyncEntityProducerWrapper
Base class for wrapping entity producers that delegates all calls to the wrapped producer.
|
class |
BasicAsyncEntityProducer
Basic
AsyncEntityProducer implementation that generates data stream
from content of a byte array. |
class |
DigestingEntityProducer
AsyncEntityProducer decorator that calculates a digest hash from
the data stream content and appends its value to the list of trailers. |
class |
FileEntityProducer
AsyncEntityProducer implementation that generates data stream
from content of a File . |
class |
PathEntityProducer
AsyncEntityProducer implementation that generates a data stream from the content at a Path . |
class |
StringAsyncEntityProducer
Basic
AsyncDataProducer implementation that
generates data stream from content of a string. |
Modifier and Type | Method and Description |
---|---|
void |
DiscardingEntityConsumer.streamStart(EntityDetails entityDetails,
FutureCallback<T> resultCallback) |
void |
AbstractBinAsyncEntityConsumer.streamStart(EntityDetails entityDetails,
FutureCallback<T> resultCallback) |
void |
DigestingEntityConsumer.streamStart(EntityDetails entityDetails,
FutureCallback<T> resultCallback) |
void |
AbstractCharAsyncEntityConsumer.streamStart(EntityDetails entityDetails,
FutureCallback<T> resultCallback) |
void |
NoopEntityConsumer.streamStart(EntityDetails entityDetails,
FutureCallback<Void> resultCallback)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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) |
AsyncDataConsumer |
AsyncServerFilterChainElement.handle(HttpRequest request,
EntityDetails entityDetails,
HttpContext context,
AsyncFilterChain.ResponseTrigger responseTrigger) |
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) |
AsyncDataConsumer |
AsyncServerExpectationFilter.handle(HttpRequest request,
EntityDetails entityDetails,
HttpContext context,
AsyncFilterChain.ResponseTrigger responseTrigger,
AsyncFilterChain chain) |
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) |
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) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractClassicEntityProducer
AsyncEntityProducer implementation that acts as a compatibility
layer for classic OutputStream based interfaces. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractClassicServerExchangeHandler.handleRequest(HttpRequest request,
EntityDetails entityDetails,
ResponseChannel responseChannel,
HttpContext context) |
void |
AbstractClassicEntityConsumer.streamStart(EntityDetails entityDetails,
FutureCallback<T> resultCallback) |
Modifier and Type | Method and Description |
---|---|
void |
RequestUserAgent.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
RequestExpectContinue.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
RequestValidateHost.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
RequestDate.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
RequestTargetHost.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
RequestConnControl.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
RequestConformance.process(HttpRequest request,
EntityDetails entity,
HttpContext localContext) |
void |
RequestContent.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
ViaRequest.process(HttpRequest request,
EntityDetails entity,
HttpContext context)
Adds the HTTP
HttpHeaders.VIA header to the request if it does not already exist. |
void |
DefaultHttpProcessor.process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
void |
ForwardedRequest.process(HttpRequest request,
EntityDetails entity,
HttpContext localContext)
The process method adds a Forwarded header to an HTTP request containing information about
the intermediate nodes that the request has passed through.
|
void |
ResponseConnControl.process(HttpResponse response,
EntityDetails entity,
HttpContext localContext) |
void |
ResponseContent.process(HttpResponse response,
EntityDetails entity,
HttpContext context)
Processes the response (possibly updating or inserting) Content-Length and Transfer-Encoding headers.
|
void |
DefaultHttpProcessor.process(HttpResponse response,
EntityDetails entity,
HttpContext context) |
void |
ResponseServer.process(HttpResponse response,
EntityDetails entity,
HttpContext context) |
void |
ResponseDate.process(HttpResponse response,
EntityDetails entity,
HttpContext context) |
void |
ResponseConformance.process(HttpResponse response,
EntityDetails entity,
HttpContext context) |
Modifier and Type | Method and Description |
---|---|
static Expectation |
ExpectSupport.parse(HttpRequest request,
EntityDetails entityDetails) |
Modifier and Type | Method and Description |
---|---|
static long |
Args.checkContentLength(EntityDetails entityDetails)
Deprecated.
|
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.