org.mockserver.model
Class Body<T>
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.model.Not
org.mockserver.model.Body<T>
- Direct Known Subclasses:
- BinaryBody, JsonBody, JsonSchemaBody, ParameterBody, RegexBody, StringBody, XmlBody, XPathBody
public abstract class Body<T>
- extends Not
- Author:
- jamesdbloom
|
Field Summary |
protected com.google.common.net.MediaType |
contentType
|
|
Constructor Summary |
Body(Body.Type type,
com.google.common.net.MediaType contentType)
|
contentType
protected final com.google.common.net.MediaType contentType
Body
public Body(Body.Type type,
com.google.common.net.MediaType contentType)
getType
public Body.Type getType()
getValue
public abstract T getValue()
getRawBytes
public byte[] getRawBytes()
getCharset
public Charset getCharset(Charset defaultIfNotSet)
getContentType
public String getContentType()
Copyright © 2017. All rights reserved.