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 AsyncEntityProducercreate(byte[] content, ContentType contentType) static AsyncEntityProducercreate(byte[] content, ContentType contentType, Header... trailers) static AsyncEntityProducercreate(File content, ContentType contentType) static AsyncEntityProducercreate(File content, ContentType contentType, Header... trailers) static AsyncEntityProducerstatic AsyncEntityProducerstatic AsyncEntityProducerstatic AsyncEntityProducercreate(String content, ContentType contentType) static AsyncEntityProducercreate(String content, ContentType contentType, Header... trailers) static AsyncEntityProducerstatic AsyncEntityProducercreate(Path content, ContentType contentType, OpenOption... options) static AsyncEntityProducercreate(Path content, ContentType contentType, Header... trailers) static AsyncEntityProducercreateBinary(Callback<StreamChannel<ByteBuffer>> callback, ContentType contentType) static AsyncEntityProducercreateBinary(Callback<StreamChannel<ByteBuffer>> callback, ContentType contentType, Header... trailers) static AsyncEntityProducercreateText(Callback<StreamChannel<CharBuffer>> callback, ContentType contentType) static AsyncEntityProducercreateText(Callback<StreamChannel<CharBuffer>> callback, ContentType contentType, Header... trailers) static AsyncEntityProducercreateUrlEncoded(Iterable<? extends NameValuePair> parameters, Charset charset) static AsyncEntityProducerwithTrailers(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)
-