Package org.mockserver.model
Class XmlBody
-
public class XmlBody extends BodyWithContentType<String>
- Author:
- jamesdbloom
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.net.MediaType
DEFAULT_CONTENT_TYPE
-
Fields inherited from class org.mockserver.model.BodyWithContentType
contentType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getRawBytes()
String
getValue()
String
toString()
static XmlBody
xml(String xml)
static XmlBody
xml(String xml, com.google.common.net.MediaType contentType)
static XmlBody
xml(String xml, Charset charset)
-
Methods inherited from class org.mockserver.model.BodyWithContentType
getCharset, getContentType
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
-
-
-
-
Method Detail
-
getRawBytes
public byte[] getRawBytes()
- Overrides:
getRawBytes
in classBody
-
toString
public String toString()
- Overrides:
toString
in classObjectWithJsonToString
-
-