Package org.mockserver.model
Class XmlBody
-
public class XmlBody extends BodyWithContentType<String>
- Author:
- jamesdbloom
-
-
Field Summary
Fields Modifier and Type Field Description static MediaTypeDEFAULT_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()StringgetValue()StringtoString()static XmlBodyxml(String xml)static XmlBodyxml(String xml, Charset charset)static XmlBodyxml(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:
getRawBytesin classBody
-
toString
public String toString()
- Overrides:
toStringin classObjectWithJsonToString
-
-