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

public class StringBody
extends BodyWithContentType<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.BodyWithContentType
contentType
 
Fields inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
logger
 
Constructor Summary
StringBody(String value)
           
StringBody(String value, Charset charset)
           
StringBody(String value, com.google.common.net.MediaType contentType)
           
 
Method Summary
static StringBody exact(String body)
           
static StringBody exact(String body, Charset charset)
           
static StringBody exact(String body, com.google.common.net.MediaType contentType)
           
 byte[] getRawBytes()
           
 String getValue()
           
 String toString()
           
 
Methods inherited from class org.mockserver.model.BodyWithContentType
getCharset, getContentType
 
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)

StringBody

public StringBody(String value,
                  com.google.common.net.MediaType contentType)
Method Detail

exact

public static StringBody exact(String body)

exact

public static StringBody exact(String body,
                               Charset charset)

exact

public static StringBody exact(String body,
                               com.google.common.net.MediaType contentType)

getValue

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

getRawBytes

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

toString

public String toString()
Overrides:
toString in class ObjectWithJsonToString


Copyright © 2017. All rights reserved.