public class StringBody extends BodyWithContentType<String>
contentType
logger
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, getContentType
addFieldsExcludedFromEqualsAndHashCode, equals, fieldsExcludedFromEqualsAndHashCode, hashCode
public 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 Body
public String toString()
toString
in class ObjectWithJsonToString
Copyright © 2018. All rights reserved.