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