public class RequestBodyEntity extends BaseRequest implements Body
HttpRequest).| Modifier and Type | Field and Description |
|---|---|
private Object |
body |
httpRequest, UTF_8| Constructor and Description |
|---|
RequestBodyEntity(HttpRequest httpRequest)
Creates the body.
|
| Modifier and Type | Method and Description |
|---|---|
RequestBodyEntity |
body(com.fasterxml.jackson.databind.JsonNode body)
Sets the actual body content.
|
RequestBodyEntity |
body(String body)
Sets the actual body content.
|
Object |
getBody() |
org.apache.http.HttpEntity |
getEntity() |
asBinary, asBinaryAsync, asBinaryAsync, asHtml, asJson, asJsonAsync, asJsonAsync, asString, asStringAsync, asStringAsyncprivate Object body
public RequestBodyEntity(HttpRequest httpRequest)
httpRequest - the associated requestpublic RequestBodyEntity body(String body)
body - the content as StringRequestBodyEntitypublic RequestBodyEntity body(com.fasterxml.jackson.databind.JsonNode body)
body - the content as JSONRequestBodyEntitypublic Object getBody()
Copyright © 2013–2015 Wisdom Framework. All rights reserved.