public class XmlBody extends BodyWithContentType<String>
| Modifier and Type | Field and Description |
|---|---|
static MediaType |
DEFAULT_XML_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 |
|---|---|
boolean |
equals(Object o) |
byte[] |
getRawBytes() |
String |
getValue() |
int |
hashCode() |
String |
toString() |
static XmlBody |
xml(String xml) |
static XmlBody |
xml(String xml,
Charset charset) |
static XmlBody |
xml(String xml,
MediaType contentType) |
getCharset, getContentTypegetOptional, getType, withOptionalfieldsExcludedFromEqualsAndHashCodepublic static final MediaType DEFAULT_XML_CONTENT_TYPE
public XmlBody(String xml)
public byte[] getRawBytes()
getRawBytes in class Body<String>public String toString()
toString in class ObjectWithJsonToStringpublic boolean equals(Object o)
equals in class BodyWithContentType<String>public int hashCode()
hashCode in class BodyWithContentType<String>Copyright © 2020. All rights reserved.