org.mockserver.model
Class BodyWithContentType<T>

java.lang.Object
  extended by org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
      extended by org.mockserver.model.ObjectWithJsonToString
          extended by org.mockserver.model.Not
              extended by org.mockserver.model.Body
                  extended by org.mockserver.model.BodyWithContentType<T>
Direct Known Subclasses:
BinaryBody, JsonBody, ParameterBody, StringBody, XmlBody

public abstract class BodyWithContentType<T>
extends Body

Author:
jamesdbloom

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mockserver.model.Body
Body.Type
 
Field Summary
protected  com.google.common.net.MediaType contentType
           
 
Fields inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
logger
 
Constructor Summary
BodyWithContentType(Body.Type type, com.google.common.net.MediaType contentType)
           
 
Method Summary
 Charset getCharset(Charset defaultIfNotSet)
           
 String getContentType()
           
 
Methods inherited from class org.mockserver.model.Body
getRawBytes, getType, getValue
 
Methods inherited from class org.mockserver.model.Not
getNot, isNot, not, not, setNot
 
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
 
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
addFieldsExcludedFromEqualsAndHashCode, equals, fieldsExcludedFromEqualsAndHashCode, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

contentType

protected final com.google.common.net.MediaType contentType
Constructor Detail

BodyWithContentType

public BodyWithContentType(Body.Type type,
                           com.google.common.net.MediaType contentType)
Method Detail

getCharset

public Charset getCharset(Charset defaultIfNotSet)
Overrides:
getCharset in class Body

getContentType

public String getContentType()
Overrides:
getContentType in class Body


Copyright © 2017. All rights reserved.