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.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, com.google.common.net.MediaType contentType)static XmlBodyxml(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:
getRawBytesin classBody
-
toString
public String toString()
- Overrides:
toStringin classObjectWithJsonToString
-
-