org.mockserver.model
Class StringBody

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<String>
                  extended by org.mockserver.model.StringBody

public class StringBody
extends Body<String>

Author:
jamesdbloom

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mockserver.model.Body
Body.Type
 
Field Summary
 
Fields inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
logger
 
Constructor Summary
StringBody(String value)
           
StringBody(String value, Charset charset)
           
 
Method Summary
static StringBody exact(String body)
           
static StringBody exact(String body, Charset charset)
           
 Charset getCharset()
           
 Charset getCharset(Charset defaultIfNotSet)
           
 String getContentType()
           
 byte[] getRawBytes()
           
 String getValue()
           
 String toString()
           
 
Methods inherited from class org.mockserver.model.Body
getType
 
Methods inherited from class org.mockserver.model.Not
getNot, isNot, not, not, setNot
 
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

StringBody

public StringBody(String value)

StringBody

public StringBody(String value,
                  Charset charset)
Method Detail

exact

public static StringBody exact(String body)

exact

public static StringBody exact(String body,
                               Charset charset)

getValue

public String getValue()
Specified by:
getValue in class Body<String>

getRawBytes

public byte[] getRawBytes()
Overrides:
getRawBytes in class Body<String>

getCharset

public Charset getCharset()

getCharset

public Charset getCharset(Charset defaultIfNotSet)
Overrides:
getCharset in class Body<String>

getContentType

public String getContentType()
Overrides:
getContentType in class Body<String>

toString

public String toString()
Overrides:
toString in class ObjectWithJsonToString


Copyright © 2015. All rights reserved.