public class StringBody extends BodyWithContentType<String>
Modifier and Type | Field and Description |
---|---|
static MediaType |
DEFAULT_CONTENT_TYPE |
contentType
Constructor and Description |
---|
StringBody(String value) |
StringBody(String value,
byte[] rawBytes,
boolean subString,
MediaType contentType) |
StringBody(String value,
Charset charset) |
StringBody(String value,
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,
MediaType contentType) |
byte[] |
getRawBytes() |
String |
getValue() |
boolean |
isSubString() |
static StringBody |
subString(String body) |
static StringBody |
subString(String body,
Charset charset) |
static StringBody |
subString(String body,
MediaType contentType) |
String |
toString() |
getCharset, getContentType
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
public static final MediaType DEFAULT_CONTENT_TYPE
public StringBody(String value)
public static StringBody exact(String body)
public static StringBody exact(String body, Charset charset)
public static StringBody exact(String body, MediaType contentType)
public static StringBody subString(String body)
public static StringBody subString(String body, Charset charset)
public static StringBody subString(String body, MediaType contentType)
public byte[] getRawBytes()
getRawBytes
in class Body<String>
public boolean isSubString()
public String toString()
toString
in class ObjectWithJsonToString
Copyright © 2020. All rights reserved.