Class AsyncEntityProducers
java.lang.Object
org.apache.hc.core5.http.nio.entity.AsyncEntityProducers
{AsyncEntityProducer} factory methods.
- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AsyncEntityProducer
create
(byte[] content, ContentType contentType) static AsyncEntityProducer
create
(byte[] content, ContentType contentType, Header... trailers) static AsyncEntityProducer
create
(File content, ContentType contentType) static AsyncEntityProducer
create
(File content, ContentType contentType, Header... trailers) static AsyncEntityProducer
static AsyncEntityProducer
static AsyncEntityProducer
static AsyncEntityProducer
create
(String content, ContentType contentType) static AsyncEntityProducer
create
(String content, ContentType contentType, Header... trailers) static AsyncEntityProducer
static AsyncEntityProducer
create
(Path content, ContentType contentType, OpenOption... options) static AsyncEntityProducer
create
(Path content, ContentType contentType, Header... trailers) static AsyncEntityProducer
createBinary
(Callback<StreamChannel<ByteBuffer>> callback, ContentType contentType) static AsyncEntityProducer
createBinary
(Callback<StreamChannel<ByteBuffer>> callback, ContentType contentType, Header... trailers) static AsyncEntityProducer
createText
(Callback<StreamChannel<CharBuffer>> callback, ContentType contentType) static AsyncEntityProducer
createText
(Callback<StreamChannel<CharBuffer>> callback, ContentType contentType, Header... trailers) static AsyncEntityProducer
createUrlEncoded
(Iterable<? extends NameValuePair> parameters, Charset charset) static AsyncEntityProducer
withTrailers
(AsyncEntityProducer entity, Header... trailers)
-
Constructor Details
-
AsyncEntityProducers
private AsyncEntityProducers()
-
-
Method Details
-
create
-
create
-
create
-
create
-
create
-
createUrlEncoded
public static AsyncEntityProducer createUrlEncoded(Iterable<? extends NameValuePair> parameters, Charset charset) -
createBinary
public static AsyncEntityProducer createBinary(Callback<StreamChannel<ByteBuffer>> callback, ContentType contentType) -
createText
public static AsyncEntityProducer createText(Callback<StreamChannel<CharBuffer>> callback, ContentType contentType) -
withTrailers
-
create
public static AsyncEntityProducer create(String content, ContentType contentType, Header... trailers) -
create
-
create
-
create
public static AsyncEntityProducer create(byte[] content, ContentType contentType, Header... trailers) -
create
-
create
public static AsyncEntityProducer create(Path content, ContentType contentType, Header... trailers) throws IOException - Throws:
IOException
- Since:
- 5.2
-
create
public static AsyncEntityProducer create(Path content, ContentType contentType, OpenOption... options) throws IOException - Throws:
IOException
- Since:
- 5.2
-
createBinary
public static AsyncEntityProducer createBinary(Callback<StreamChannel<ByteBuffer>> callback, ContentType contentType, Header... trailers) -
createText
public static AsyncEntityProducer createText(Callback<StreamChannel<CharBuffer>> callback, ContentType contentType, Header... trailers)
-