public class StringBody extends BodyWithContentType<String>
contentTypelogger| Constructor and Description |
|---|
StringBody(String value) |
StringBody(String value,
Charset charset) |
StringBody(String value,
com.google.common.net.MediaType contentType) |
| Modifier and Type | Method and Description |
|---|---|
static StringBody |
exact(String body) |
static StringBody |
exact(String body,
Charset charset) |
static StringBody |
exact(String body,
com.google.common.net.MediaType contentType) |
byte[] |
getRawBytes() |
String |
getValue() |
String |
toString() |
getCharset, getContentTypeaddFieldsExcludedFromEqualsAndHashCode, equals, fieldsExcludedFromEqualsAndHashCode, hashCodepublic StringBody(String value)
public StringBody(String value, com.google.common.net.MediaType contentType)
public static StringBody exact(String body)
public static StringBody exact(String body, Charset charset)
public static StringBody exact(String body, com.google.common.net.MediaType contentType)
public byte[] getRawBytes()
getRawBytes in class Bodypublic String toString()
toString in class ObjectWithJsonToStringCopyright © 2018. All rights reserved.