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