Class RequestBodyEntity
- java.lang.Object
-
- io.joshworks.restclient.request.BaseRequest
-
- io.joshworks.restclient.request.body.RequestBodyEntity
-
- All Implemented Interfaces:
Body
public class RequestBodyEntity extends BaseRequest implements Body
-
-
Field Summary
-
Fields inherited from class io.joshworks.restclient.request.BaseRequest
clientRequest, httpRequest
-
-
Constructor Summary
Constructors Constructor Description RequestBodyEntity(HttpRequest httpRequest, ClientRequest config)
-
Method Summary
Modifier and Type Method Description RequestBodyEntitybody(Json body)RequestBodyEntitybody(java.lang.String body)java.lang.ObjectgetBody()org.apache.http.HttpEntitygetEntity()booleanimplicitContentType()-
Methods inherited from class io.joshworks.restclient.request.BaseRequest
asBinary, asBinaryAsync, asBinaryAsync, asJson, asJsonAsync, asJsonAsync, asObject, asObjectAsync, asObjectAsync, asString, asStringAsync, asStringAsync, getHttpRequest
-
-
-
-
Constructor Detail
-
RequestBodyEntity
public RequestBodyEntity(HttpRequest httpRequest, ClientRequest config)
-
-
Method Detail
-
body
public RequestBodyEntity body(java.lang.String body)
-
body
public RequestBodyEntity body(Json body)
-
getBody
public java.lang.Object getBody()
-
implicitContentType
public boolean implicitContentType()
- Specified by:
implicitContentTypein interfaceBody
-
-