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 HttpEntitycreate(byte[] content, ContentType contentType) static HttpEntitycreate(byte[] content, ContentType contentType, Header... trailers) static HttpEntitycreate(File content, ContentType contentType) static HttpEntitycreate(File content, ContentType contentType, Header... trailers) static HttpEntitycreate(Serializable serializable, ContentType contentType) static HttpEntitycreate(Serializable serializable, ContentType contentType, Header... trailers) static HttpEntitystatic HttpEntitystatic HttpEntitystatic HttpEntitycreate(String content, ContentType contentType) static HttpEntitycreate(String content, ContentType contentType, Header... trailers) static HttpEntitystatic HttpEntitycreate(Path content, ContentType contentType) static HttpEntitycreate(Path content, ContentType contentType, Header... trailers) static HttpEntitycreate(IOCallback<OutputStream> callback, ContentType contentType) static HttpEntitycreate(IOCallback<OutputStream> callback, ContentType contentType, Header... trailers) static HttpEntitycreateGzipped(byte[] content, ContentType contentType) static HttpEntitycreateGzipped(File content, ContentType contentType) static HttpEntitycreateGzipped(Serializable serializable, ContentType contentType) static HttpEntitycreateGzipped(String content) static HttpEntitycreateGzipped(String content, Charset charset) static HttpEntitycreateGzipped(String content, ContentType contentType) static HttpEntitycreateGzipped(Path content, ContentType contentType) static HttpEntitycreateGzipped(IOCallback<OutputStream> callback, ContentType contentType) static HttpEntitycreateUrlEncoded(Iterable<? extends NameValuePair> parameters, Charset charset) static HttpEntitygzip(HttpEntity entity) static HttpEntitywithTrailers(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
-