Top Description Constructors Methods
org.apache.hc.core5.http.nio.entity

public final Class AsyncEntityProducers

extends Object
Class Inheritance
Imports
java.io.File, .IOException, java.nio.ByteBuffer, .CharBuffer, java.nio.charset.Charset, java.nio.file.OpenOption, .Path, .StandardOpenOption, java.util.ArrayList, .Arrays, .LinkedHashSet, .List, .Set, org.apache.hc.core5.function.Callback, org.apache.hc.core5.http.ContentType, .Header, .NameValuePair, org.apache.hc.core5.http.nio.AsyncEntityProducer, .DataStreamChannel, .StreamChannel, org.apache.hc.core5.net.WWWFormCodec

{AsyncEntityProducer} factory methods.
Since
5.0

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static AsyncEntityProducer
create(final String content, final ContentType contentType)

public static AsyncEntityProducer
create(final String content, final Charset charset)

public static AsyncEntityProducer
create(final String content)

public static AsyncEntityProducer
create(final byte[] content, final ContentType contentType)

public static AsyncEntityProducer
create(final File content, final ContentType contentType)

public static AsyncEntityProducer
create(final String content, final ContentType contentType, final Header... trailers)

public static AsyncEntityProducer
create(final String content, final Charset charset, final Header... trailers)

public static AsyncEntityProducer
create(final String content, final Header... trailers)

public static AsyncEntityProducer
create(final byte[] content, final ContentType contentType, final Header... trailers)

public static AsyncEntityProducer
create(final File content, final ContentType contentType, final Header... trailers)

public static AsyncEntityProducer
create(final Path content, final ContentType contentType, final Header... trailers)

public static AsyncEntityProducer
create(final Path content, final ContentType contentType, final OpenOption... options)

public static AsyncEntityProducer
createBinary(final Callback<StreamChannel<ByteBuffer>> callback, final ContentType contentType)

public static AsyncEntityProducer
createBinary(final Callback<StreamChannel<ByteBuffer>> callback, final ContentType contentType, final Header... trailers)

public static AsyncEntityProducer
createText(final Callback<StreamChannel<CharBuffer>> callback, final ContentType contentType)

public static AsyncEntityProducer
createText(final Callback<StreamChannel<CharBuffer>> callback, final ContentType contentType, final Header... trailers)

public static AsyncEntityProducer
createUrlEncoded(final Iterable<? extends NameValuePair> parameters, final Charset charset)

public static AsyncEntityProducer
withTrailers(final AsyncEntityProducer entity, final Header... trailers)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AsyncEntityProducersback to summary
private AsyncEntityProducers()

Method Detail

createback to summary
public static AsyncEntityProducer create(final String content, final ContentType contentType)
createback to summary
public static AsyncEntityProducer create(final String content, final Charset charset)
createback to summary
public static AsyncEntityProducer create(final String content)
createback to summary
public static AsyncEntityProducer create(final byte[] content, final ContentType contentType)
createback to summary
public static AsyncEntityProducer create(final File content, final ContentType contentType)
createback to summary
public static AsyncEntityProducer create(final String content, final ContentType contentType, final Header... trailers)
createback to summary
public static AsyncEntityProducer create(final String content, final Charset charset, final Header... trailers)
createback to summary
public static AsyncEntityProducer create(final String content, final Header... trailers)
createback to summary
public static AsyncEntityProducer create(final byte[] content, final ContentType contentType, final Header... trailers)
createback to summary
public static AsyncEntityProducer create(final File content, final ContentType contentType, final Header... trailers)
createback to summary
public static AsyncEntityProducer create(final Path content, final ContentType contentType, final Header... trailers) throws IOException
Since
5.2
createback to summary
public static AsyncEntityProducer create(final Path content, final ContentType contentType, final OpenOption... options) throws IOException
Since
5.2
createBinaryback to summary
public static AsyncEntityProducer createBinary(final Callback<StreamChannel<ByteBuffer>> callback, final ContentType contentType)
createBinaryback to summary
public static AsyncEntityProducer createBinary(final Callback<StreamChannel<ByteBuffer>> callback, final ContentType contentType, final Header... trailers)
createTextback to summary
public static AsyncEntityProducer createText(final Callback<StreamChannel<CharBuffer>> callback, final ContentType contentType)
createTextback to summary
public static AsyncEntityProducer createText(final Callback<StreamChannel<CharBuffer>> callback, final ContentType contentType, final Header... trailers)
createUrlEncodedback to summary
public static AsyncEntityProducer createUrlEncoded(final Iterable<? extends NameValuePair> parameters, final Charset charset)
withTrailersback to summary
public static AsyncEntityProducer withTrailers(final AsyncEntityProducer entity, final Header... trailers)