Package | Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
AsyncFilterChain.ResponseTrigger.submitResponse(HttpResponse response,
AsyncEntityProducer entityProducer)
Sends a final HTTP response to the client.
|
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 |
---|---|
static AsyncEntityProducer |
AsyncEntityProducers.create(byte[] content,
ContentType contentType) |
static AsyncEntityProducer |
AsyncEntityProducers.create(byte[] content,
ContentType contentType,
Header... trailers) |
static AsyncEntityProducer |
AsyncEntityProducers.create(File content,
ContentType contentType) |
static AsyncEntityProducer |
AsyncEntityProducers.create(File content,
ContentType contentType,
Header... trailers) |
static AsyncEntityProducer |
AsyncEntityProducers.create(Path content,
ContentType contentType,
Header... trailers) |
static AsyncEntityProducer |
AsyncEntityProducers.create(Path content,
ContentType contentType,
OpenOption... options) |
static AsyncEntityProducer |
AsyncEntityProducers.create(String content) |
static AsyncEntityProducer |
AsyncEntityProducers.create(String content,
Charset charset) |
static AsyncEntityProducer |
AsyncEntityProducers.create(String content,
Charset charset,
Header... trailers) |
static AsyncEntityProducer |
AsyncEntityProducers.create(String content,
ContentType contentType) |
static AsyncEntityProducer |
AsyncEntityProducers.create(String content,
ContentType contentType,
Header... trailers) |
static AsyncEntityProducer |
AsyncEntityProducers.create(String content,
Header... trailers) |
static AsyncEntityProducer |
AsyncEntityProducers.createBinary(Callback<StreamChannel<ByteBuffer>> callback,
ContentType contentType) |
static AsyncEntityProducer |
AsyncEntityProducers.createBinary(Callback<StreamChannel<ByteBuffer>> callback,
ContentType contentType,
Header... trailers) |
static AsyncEntityProducer |
AsyncEntityProducers.createText(Callback<StreamChannel<CharBuffer>> callback,
ContentType contentType) |
static AsyncEntityProducer |
AsyncEntityProducers.createText(Callback<StreamChannel<CharBuffer>> callback,
ContentType contentType,
Header... trailers) |
static AsyncEntityProducer |
AsyncEntityProducers.createUrlEncoded(Iterable<? extends NameValuePair> parameters,
Charset charset) |
static AsyncEntityProducer |
AsyncEntityProducers.withTrailers(AsyncEntityProducer entity,
Header... trailers) |
Modifier and Type | Method and Description |
---|---|
static AsyncEntityProducer |
AsyncEntityProducers.withTrailers(AsyncEntityProducer entity,
Header... trailers) |
Constructor and Description |
---|
AsyncEntityProducerWrapper(AsyncEntityProducer wrappedEntityProducer) |
DigestingEntityProducer(String algo,
AsyncEntityProducer wrapped) |
Modifier and Type | Method and Description |
---|---|
protected AsyncEntityProducer |
AbstractAsyncServerAuthFilter.generateResponseContent(HttpResponse unauthorized)
Generates response body for UNAUTHORIZED response.
|
protected AsyncEntityProducer |
AsyncServerExpectationFilter.generateResponseContent(HttpResponse expectationFailed) |
AsyncEntityProducer |
AsyncRequestBuilder.getEntity() |
AsyncEntityProducer |
AsyncResponseBuilder.getEntity() |
AsyncEntityProducer |
AsyncPushBuilder.getEntity() |
Modifier and Type | Method and Description |
---|---|
AsyncRequestBuilder |
AsyncRequestBuilder.setEntity(AsyncEntityProducer entityProducer) |
AsyncResponseBuilder |
AsyncResponseBuilder.setEntity(AsyncEntityProducer entityProducer) |
AsyncPushBuilder |
AsyncPushBuilder.setEntity(AsyncEntityProducer entityProducer) |
Constructor and Description |
---|
BasicPushProducer(AsyncEntityProducer dataProducer) |
BasicPushProducer(HttpResponse response,
AsyncEntityProducer dataProducer) |
BasicPushProducer(int code,
AsyncEntityProducer dataProducer) |
BasicRequestProducer(HttpRequest request,
AsyncEntityProducer dataProducer) |
BasicRequestProducer(Method method,
HttpHost host,
String path,
AsyncEntityProducer dataProducer) |
BasicRequestProducer(Method method,
URI requestUri,
AsyncEntityProducer dataProducer) |
BasicRequestProducer(String method,
HttpHost host,
String path,
AsyncEntityProducer dataProducer) |
BasicRequestProducer(String method,
URI requestUri,
AsyncEntityProducer dataProducer) |
BasicResponseProducer(AsyncEntityProducer dataProducer) |
BasicResponseProducer(HttpResponse response,
AsyncEntityProducer dataProducer) |
BasicResponseProducer(int code,
AsyncEntityProducer dataProducer) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractClassicEntityProducer
AsyncEntityProducer implementation that acts as a compatibility
layer for classic OutputStream based interfaces. |
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.