Uses of Class
org.mockserver.model.MediaType
-
Packages that use MediaType Package Description org.mockserver.model -
-
Uses of MediaType in org.mockserver.model
Methods in org.mockserver.model that return MediaType Modifier and Type Method Description static MediaType
MediaType. create(String type, String subType)
static MediaType
MediaType. parse(String mediaTypeHeader)
MediaType
MediaType. withCharset(String charset)
MediaType
MediaType. withCharset(Charset charset)
Methods in org.mockserver.model with parameters of type MediaType Modifier and Type Method Description static BinaryBody
BinaryBody. binary(byte[] body, MediaType contentType)
static StringBody
StringBody. exact(String body, MediaType contentType)
boolean
MediaType. isCompatible(MediaType other)
static JsonBody
JsonBody. json(Object object, MediaType contentType)
static JsonBody
JsonBody. json(Object object, MediaType contentType, MatchType matchType)
static JsonBody
JsonBody. json(String json, MediaType contentType)
static JsonBody
JsonBody. json(String json, MediaType contentType, MatchType matchType)
static StringBody
StringBody. subString(String body, MediaType contentType)
HttpResponse
HttpResponse. withBody(String body, MediaType contentType)
Set response body to return a string response body with the specified encoding.T
HttpObject. withContentType(MediaType mediaType)
HttpRequest
HttpRequest. withContentType(MediaType mediaType)
HttpResponse
HttpResponse. withContentType(MediaType mediaType)
static XmlBody
XmlBody. xml(String xml, MediaType contentType)
Constructors in org.mockserver.model with parameters of type MediaType Constructor Description BinaryBody(byte[] bytes, MediaType contentType)
BodyWithContentType(Body.Type type, MediaType contentType)
JsonBody(String json, MediaType contentType, MatchType matchType)
StringBody(String value, boolean subString, MediaType contentType)
StringBody(String value, byte[] rawBinaryData, boolean subString, MediaType contentType)
StringBody(String value, MediaType contentType)
XmlBody(String xml, MediaType contentType)
-