Package org.mockserver.model
Class BodyWithContentType<T>
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.model.Not
-
- org.mockserver.model.Body<T>
-
- org.mockserver.model.BodyWithContentType<T>
-
- Direct Known Subclasses:
BinaryBody,FileBody,JsonBody,LogEntryBody,StringBody,XmlBody
public abstract class BodyWithContentType<T> extends Body<T>
- Author:
- jamesdbloom
-
-
Field Summary
Fields Modifier and Type Field Description protected MediaTypecontentType
-
Constructor Summary
Constructors Constructor Description BodyWithContentType(Body.Type type, MediaType contentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)CharsetgetCharset(Charset defaultIfNotSet)StringgetContentType()inthashCode()-
Methods inherited from class org.mockserver.model.Body
getOptional, getRawBytes, getType, getValue, withOptional
-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
-
-
-
Field Detail
-
contentType
protected final MediaType contentType
-
-
Method Detail
-
getCharset
public Charset getCharset(Charset defaultIfNotSet)
- Overrides:
getCharsetin classBody<T>
-
getContentType
public String getContentType()
- Overrides:
getContentTypein classBody<T>
-
-