Class StringRestEntityOkHttp
java.lang.Object
org.infinispan.client.rest.impl.okhttp.StringRestEntityOkHttp
- All Implemented Interfaces:
RestEntityAdaptorOkHttp,RestEntity
- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Constructor Summary
ConstructorsConstructorDescriptionStringRestEntityOkHttp(org.infinispan.commons.dataconversion.MediaType contentType, String body) -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.commons.dataconversion.MediaTypegetBody()okhttp3.RequestBody
-
Constructor Details
-
StringRestEntityOkHttp
public StringRestEntityOkHttp(org.infinispan.commons.dataconversion.MediaType contentType, String body)
-
-
Method Details
-
getBody
- Specified by:
getBodyin interfaceRestEntity
-
contentType
public org.infinispan.commons.dataconversion.MediaType contentType()- Specified by:
contentTypein interfaceRestEntity
-
toRequestBody
public okhttp3.RequestBody toRequestBody()- Specified by:
toRequestBodyin interfaceRestEntityAdaptorOkHttp
-