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 private
AsyncEntityProducers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AsyncEntityProducer
create(byte[] content, ContentType contentType)
static AsyncEntityProducer
create(byte[] content, ContentType contentType, Header... trailers)
static AsyncEntityProducer
create(java.io.File content, ContentType contentType)
static AsyncEntityProducer
create(java.io.File content, ContentType contentType, Header... trailers)
static AsyncEntityProducer
create(java.lang.String content)
static AsyncEntityProducer
create(java.lang.String content, java.nio.charset.Charset charset)
static AsyncEntityProducer
create(java.lang.String content, java.nio.charset.Charset charset, Header... trailers)
static AsyncEntityProducer
create(java.lang.String content, ContentType contentType)
static AsyncEntityProducer
create(java.lang.String content, ContentType contentType, Header... trailers)
static AsyncEntityProducer
create(java.lang.String content, Header... trailers)
static AsyncEntityProducer
create(java.nio.file.Path content, ContentType contentType, java.nio.file.OpenOption... options)
static AsyncEntityProducer
create(java.nio.file.Path content, ContentType contentType, Header... trailers)
static AsyncEntityProducer
createBinary(Callback<StreamChannel<java.nio.ByteBuffer>> callback, ContentType contentType)
static AsyncEntityProducer
createBinary(Callback<StreamChannel<java.nio.ByteBuffer>> callback, ContentType contentType, Header... trailers)
static AsyncEntityProducer
createText(Callback<StreamChannel<java.nio.CharBuffer>> callback, ContentType contentType)
static AsyncEntityProducer
createText(Callback<StreamChannel<java.nio.CharBuffer>> callback, ContentType contentType, Header... trailers)
static AsyncEntityProducer
createUrlEncoded(java.lang.Iterable<? extends NameValuePair> parameters, java.nio.charset.Charset charset)
static AsyncEntityProducer
withTrailers(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)
-
-