Class HttpEntities
- java.lang.Object
-
- org.apache.hc.core5.http.io.entity.HttpEntities
-
public final class HttpEntities extends java.lang.Object
{HttpEntity} factory methods.- Since:
- 5.0
-
-
Constructor Summary
Constructors Modifier Constructor Description private
HttpEntities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpEntity
create(byte[] content, ContentType contentType)
static HttpEntity
create(byte[] content, ContentType contentType, Header... trailers)
static HttpEntity
create(java.io.File content, ContentType contentType)
static HttpEntity
create(java.io.File content, ContentType contentType, Header... trailers)
static HttpEntity
create(java.io.Serializable serializable, ContentType contentType)
static HttpEntity
create(java.io.Serializable serializable, ContentType contentType, Header... trailers)
static HttpEntity
create(java.lang.String content)
static HttpEntity
create(java.lang.String content, java.nio.charset.Charset charset)
static HttpEntity
create(java.lang.String content, java.nio.charset.Charset charset, Header... trailers)
static HttpEntity
create(java.lang.String content, ContentType contentType)
static HttpEntity
create(java.lang.String content, ContentType contentType, Header... trailers)
static HttpEntity
create(java.lang.String content, Header... trailers)
static HttpEntity
create(java.nio.file.Path content, ContentType contentType)
static HttpEntity
create(java.nio.file.Path content, ContentType contentType, Header... trailers)
static HttpEntity
create(IOCallback<java.io.OutputStream> callback, ContentType contentType)
static HttpEntity
create(IOCallback<java.io.OutputStream> callback, ContentType contentType, Header... trailers)
static HttpEntity
createGzipped(byte[] content, ContentType contentType)
static HttpEntity
createGzipped(java.io.File content, ContentType contentType)
static HttpEntity
createGzipped(java.io.Serializable serializable, ContentType contentType)
static HttpEntity
createGzipped(java.lang.String content)
static HttpEntity
createGzipped(java.lang.String content, java.nio.charset.Charset charset)
static HttpEntity
createGzipped(java.lang.String content, ContentType contentType)
static HttpEntity
createGzipped(java.nio.file.Path content, ContentType contentType)
static HttpEntity
createGzipped(IOCallback<java.io.OutputStream> callback, ContentType contentType)
static HttpEntity
createUrlEncoded(java.lang.Iterable<? extends NameValuePair> parameters, java.nio.charset.Charset charset)
static HttpEntity
gzip(HttpEntity entity)
static HttpEntity
withTrailers(HttpEntity entity, Header... trailers)
-
-
-
Method Detail
-
create
public static HttpEntity create(java.lang.String content, ContentType contentType)
-
create
public static HttpEntity create(java.lang.String content, java.nio.charset.Charset charset)
-
create
public static HttpEntity create(java.lang.String content)
-
create
public static HttpEntity create(byte[] content, ContentType contentType)
-
create
public static HttpEntity create(java.io.File content, ContentType contentType)
-
create
public static HttpEntity create(java.io.Serializable serializable, ContentType contentType)
-
createUrlEncoded
public static HttpEntity createUrlEncoded(java.lang.Iterable<? extends NameValuePair> parameters, java.nio.charset.Charset charset)
-
create
public static HttpEntity create(IOCallback<java.io.OutputStream> callback, ContentType contentType)
-
gzip
public static HttpEntity gzip(HttpEntity entity)
-
createGzipped
public static HttpEntity createGzipped(java.lang.String content, ContentType contentType)
-
createGzipped
public static HttpEntity createGzipped(java.lang.String content, java.nio.charset.Charset charset)
-
createGzipped
public static HttpEntity createGzipped(java.lang.String content)
-
createGzipped
public static HttpEntity createGzipped(byte[] content, ContentType contentType)
-
createGzipped
public static HttpEntity createGzipped(java.io.File content, ContentType contentType)
-
createGzipped
public static HttpEntity createGzipped(java.io.Serializable serializable, ContentType contentType)
-
createGzipped
public static HttpEntity createGzipped(IOCallback<java.io.OutputStream> callback, ContentType contentType)
-
createGzipped
public static HttpEntity createGzipped(java.nio.file.Path content, ContentType contentType)
-
withTrailers
public static HttpEntity withTrailers(HttpEntity entity, Header... trailers)
-
create
public static HttpEntity create(java.lang.String content, ContentType contentType, Header... trailers)
-
create
public static HttpEntity create(java.lang.String content, java.nio.charset.Charset charset, Header... trailers)
-
create
public static HttpEntity create(java.lang.String content, Header... trailers)
-
create
public static HttpEntity create(byte[] content, ContentType contentType, Header... trailers)
-
create
public static HttpEntity create(java.io.File content, ContentType contentType, Header... trailers)
-
create
public static HttpEntity create(java.io.Serializable serializable, ContentType contentType, Header... trailers)
-
create
public static HttpEntity create(IOCallback<java.io.OutputStream> callback, ContentType contentType, Header... trailers)
-
create
public static HttpEntity create(java.nio.file.Path content, ContentType contentType)
-
create
public static HttpEntity create(java.nio.file.Path content, ContentType contentType, Header... trailers)
-
-