public class XmlBody extends BodyWithContentType<String>
Modifier and Type | Field and Description |
---|---|
static com.google.common.net.MediaType |
DEFAULT_CONTENT_TYPE |
contentType
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, getContentType
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
public 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 Body
public String toString()
toString
in class ObjectWithJsonToString
Copyright © 2018. All rights reserved.