Package org.mockserver.model
Class XmlBody
-
public class XmlBody extends BodyWithContentType<String>
- Author:
- jamesdbloom
-
-
Field Summary
Fields Modifier and Type Field Description static 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, Charset charset)
static XmlBody
xml(String xml, MediaType contentType)
-
Methods inherited from class org.mockserver.model.BodyWithContentType
getCharset, getContentType
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
-
-
-
-
Field Detail
-
DEFAULT_CONTENT_TYPE
public static final MediaType DEFAULT_CONTENT_TYPE
-
-
Method Detail
-
getRawBytes
public byte[] getRawBytes()
- Overrides:
getRawBytes
in classBody
-
toString
public String toString()
- Overrides:
toString
in classObjectWithJsonToString
-
-