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