public class HttpContent extends Object
| Constructor and Description |
|---|
HttpContent() |
| Modifier and Type | Method and Description |
|---|---|
HttpContent |
content(Object content) |
static HttpContent |
create() |
static HttpContent |
create(Object content) |
static HttpContent |
create(Object content,
String encoding) |
<T> T |
getContent() |
Class<?> |
getContentType() |
HttpContent |
header(String name,
String value) |
Map<String,String> |
headers() |
HttpContent |
headers(Map<String,String> headers) |
HttpContent |
setEncoding(String encoding) |
String |
toString() |
HttpContent |
withContentType(org.apache.http.entity.ContentType type) |
HttpContent |
withContentType(String type) |
public static HttpContent create()
public static HttpContent create(Object content)
public static HttpContent create(Object content, String encoding)
public HttpContent headers(Map<String,String> headers)
public HttpContent header(String name, String value)
public HttpContent withContentType(String type)
public HttpContent withContentType(org.apache.http.entity.ContentType type)
public HttpContent content(Object content)
public HttpContent setEncoding(String encoding)
public Class<?> getContentType()
public <T> T getContent()
Copyright © 2019 Automation RockStars. All rights reserved.