Class AsyncEntityProducers
- java.lang.Object
-
- org.apache.hc.core5.http.nio.entity.AsyncEntityProducers
-
public final class AsyncEntityProducers extends java.lang.Object{AsyncEntityProducer} factory methods.- Since:
- 5.0
-
-
Constructor Summary
Constructors Modifier Constructor Description privateAsyncEntityProducers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AsyncEntityProducercreate(byte[] content, ContentType contentType)static AsyncEntityProducercreate(byte[] content, ContentType contentType, Header... trailers)static AsyncEntityProducercreate(java.io.File content, ContentType contentType)static AsyncEntityProducercreate(java.io.File content, ContentType contentType, Header... trailers)static AsyncEntityProducercreate(java.lang.String content)static AsyncEntityProducercreate(java.lang.String content, java.nio.charset.Charset charset)static AsyncEntityProducercreate(java.lang.String content, java.nio.charset.Charset charset, Header... trailers)static AsyncEntityProducercreate(java.lang.String content, ContentType contentType)static AsyncEntityProducercreate(java.lang.String content, ContentType contentType, Header... trailers)static AsyncEntityProducercreate(java.lang.String content, Header... trailers)static AsyncEntityProducercreate(java.nio.file.Path content, ContentType contentType, java.nio.file.OpenOption... options)static AsyncEntityProducercreate(java.nio.file.Path content, ContentType contentType, Header... trailers)static AsyncEntityProducercreateBinary(Callback<StreamChannel<java.nio.ByteBuffer>> callback, ContentType contentType)static AsyncEntityProducercreateBinary(Callback<StreamChannel<java.nio.ByteBuffer>> callback, ContentType contentType, Header... trailers)static AsyncEntityProducercreateText(Callback<StreamChannel<java.nio.CharBuffer>> callback, ContentType contentType)static AsyncEntityProducercreateText(Callback<StreamChannel<java.nio.CharBuffer>> callback, ContentType contentType, Header... trailers)static AsyncEntityProducercreateUrlEncoded(java.lang.Iterable<? extends NameValuePair> parameters, java.nio.charset.Charset charset)static AsyncEntityProducerwithTrailers(AsyncEntityProducer entity, Header... trailers)
-
-
-
Method Detail
-
create
public static AsyncEntityProducer create(java.lang.String content, ContentType contentType)
-
create
public static AsyncEntityProducer create(java.lang.String content, java.nio.charset.Charset charset)
-
create
public static AsyncEntityProducer create(java.lang.String content)
-
create
public static AsyncEntityProducer create(byte[] content, ContentType contentType)
-
create
public static AsyncEntityProducer create(java.io.File content, ContentType contentType)
-
createUrlEncoded
public static AsyncEntityProducer createUrlEncoded(java.lang.Iterable<? extends NameValuePair> parameters, java.nio.charset.Charset charset)
-
createBinary
public static AsyncEntityProducer createBinary(Callback<StreamChannel<java.nio.ByteBuffer>> callback, ContentType contentType)
-
createText
public static AsyncEntityProducer createText(Callback<StreamChannel<java.nio.CharBuffer>> callback, ContentType contentType)
-
withTrailers
public static AsyncEntityProducer withTrailers(AsyncEntityProducer entity, Header... trailers)
-
create
public static AsyncEntityProducer create(java.lang.String content, ContentType contentType, Header... trailers)
-
create
public static AsyncEntityProducer create(java.lang.String content, java.nio.charset.Charset charset, Header... trailers)
-
create
public static AsyncEntityProducer create(java.lang.String content, Header... trailers)
-
create
public static AsyncEntityProducer create(byte[] content, ContentType contentType, Header... trailers)
-
create
public static AsyncEntityProducer create(java.io.File content, ContentType contentType, Header... trailers)
-
create
public static AsyncEntityProducer create(java.nio.file.Path content, ContentType contentType, Header... trailers) throws java.io.IOException
- Throws:
java.io.IOException- Since:
- 5.2
-
create
public static AsyncEntityProducer create(java.nio.file.Path content, ContentType contentType, java.nio.file.OpenOption... options) throws java.io.IOException
- Throws:
java.io.IOException- Since:
- 5.2
-
createBinary
public static AsyncEntityProducer createBinary(Callback<StreamChannel<java.nio.ByteBuffer>> callback, ContentType contentType, Header... trailers)
-
createText
public static AsyncEntityProducer createText(Callback<StreamChannel<java.nio.CharBuffer>> callback, ContentType contentType, Header... trailers)
-
-