public final class HttpEntities extends Object
Modifier and Type | Method and Description |
---|---|
static 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(IOCallback<OutputStream> callback,
ContentType contentType) |
static HttpEntity |
create(IOCallback<OutputStream> callback,
ContentType contentType,
Header... trailers) |
static HttpEntity |
create(Path content,
ContentType contentType) |
static HttpEntity |
create(Path content,
ContentType contentType,
Header... trailers) |
static HttpEntity |
create(Serializable serializable,
ContentType contentType) |
static HttpEntity |
create(Serializable serializable,
ContentType contentType,
Header... trailers) |
static HttpEntity |
create(String content) |
static HttpEntity |
create(String content,
Charset charset) |
static HttpEntity |
create(String content,
Charset charset,
Header... trailers) |
static HttpEntity |
create(String content,
ContentType contentType) |
static HttpEntity |
create(String content,
ContentType contentType,
Header... trailers) |
static HttpEntity |
create(String content,
Header... trailers) |
static HttpEntity |
createGzipped(byte[] content,
ContentType contentType) |
static HttpEntity |
createGzipped(File content,
ContentType contentType) |
static HttpEntity |
createGzipped(IOCallback<OutputStream> callback,
ContentType contentType) |
static HttpEntity |
createGzipped(Path 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 |
createUrlEncoded(Iterable<? extends NameValuePair> parameters,
Charset charset) |
static HttpEntity |
gzip(HttpEntity entity) |
static HttpEntity |
withTrailers(HttpEntity entity,
Header... trailers) |
public static HttpEntity create(String content, ContentType contentType)
public static HttpEntity create(String content, Charset charset)
public static HttpEntity create(String content)
public static HttpEntity create(byte[] content, ContentType contentType)
public static HttpEntity create(File content, ContentType contentType)
public static HttpEntity create(Serializable serializable, ContentType contentType)
public static HttpEntity createUrlEncoded(Iterable<? extends NameValuePair> parameters, Charset charset)
public static HttpEntity create(IOCallback<OutputStream> callback, ContentType contentType)
public static HttpEntity gzip(HttpEntity entity)
public static HttpEntity createGzipped(String content, ContentType contentType)
public static HttpEntity createGzipped(String content, Charset charset)
public static HttpEntity createGzipped(String content)
public static HttpEntity createGzipped(byte[] content, ContentType contentType)
public static HttpEntity createGzipped(File content, ContentType contentType)
public static HttpEntity createGzipped(Serializable serializable, ContentType contentType)
public static HttpEntity createGzipped(IOCallback<OutputStream> callback, ContentType contentType)
public static HttpEntity createGzipped(Path content, ContentType contentType)
public static HttpEntity withTrailers(HttpEntity entity, Header... trailers)
public static HttpEntity create(String content, ContentType contentType, Header... trailers)
public static HttpEntity create(String content, Charset charset, Header... trailers)
public static HttpEntity create(String content, Header... trailers)
public static HttpEntity create(byte[] content, ContentType contentType, Header... trailers)
public static HttpEntity create(File content, ContentType contentType, Header... trailers)
public static HttpEntity create(Serializable serializable, ContentType contentType, Header... trailers)
public static HttpEntity create(IOCallback<OutputStream> callback, ContentType contentType, Header... trailers)
public static HttpEntity create(Path content, ContentType contentType)
public static HttpEntity create(Path content, ContentType contentType, Header... trailers)
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.