org.mockserver.model
Class Body<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<T>
Direct Known Subclasses:
BinaryBody, JsonBody, JsonSchemaBody, ParameterBody, RegexBody, StringBody, XPathBody

public abstract class Body<T>
extends Not

Author:
jamesdbloom

Nested Class Summary
static class Body.Type
           
 
Field Summary
 
Fields inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
logger
 
Constructor Summary
Body(Body.Type type)
           
 
Method Summary
 Charset getCharset(Charset defaultIfNotSet)
           
 String getContentType()
           
 byte[] getRawBytes()
           
 Body.Type getType()
           
abstract  T 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
 

Constructor Detail

Body

public Body(Body.Type type)
Method Detail

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 © 2015. All rights reserved.