public class HttpEntities extends Object
| Constructor and Description |
|---|
HttpEntities() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.HttpEntity |
byteArrayEntity(byte[] content,
org.apache.http.entity.ContentType contentType) |
static org.apache.http.HttpEntity |
jsonEntity(String content,
Charset charset) |
static org.apache.http.HttpEntity |
octetStreamEntity(byte[] content) |
static org.apache.http.HttpEntity |
stringEntity(String content,
org.apache.http.entity.ContentType contentType) |
static org.apache.http.HttpEntity |
textPlainEntity(String content,
Charset charset) |
static org.apache.http.HttpEntity |
urlEncodedFormEntity(List<? extends org.apache.http.NameValuePair> params,
Charset charset) |
static org.apache.http.HttpEntity |
urlEncodedFormEntity(String content,
Charset charset) |
static org.apache.http.HttpEntity |
xmlEntity(String content,
Charset charset) |
public static org.apache.http.HttpEntity urlEncodedFormEntity(List<? extends org.apache.http.NameValuePair> params, Charset charset)
public static org.apache.http.HttpEntity urlEncodedFormEntity(String content, Charset charset)
public static org.apache.http.HttpEntity textPlainEntity(String content, Charset charset)
public static org.apache.http.HttpEntity octetStreamEntity(byte[] content)
public static org.apache.http.HttpEntity byteArrayEntity(byte[] content,
org.apache.http.entity.ContentType contentType)
public static org.apache.http.HttpEntity stringEntity(String content, org.apache.http.entity.ContentType contentType)
Copyright © 2016. All rights reserved.