org.mockserver.model
Class BinaryBody

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<byte[]>
                      extended by org.mockserver.model.BinaryBody

public class BinaryBody
extends BodyWithContentType<byte[]>

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
BinaryBody(byte[] bytes)
           
BinaryBody(byte[] bytes, com.google.common.net.MediaType contentType)
           
 
Method Summary
static BinaryBody binary(byte[] body)
           
static BinaryBody binary(byte[] body, com.google.common.net.MediaType contentType)
           
 byte[] getRawBytes()
           
 byte[] 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

BinaryBody

public BinaryBody(byte[] bytes)

BinaryBody

public BinaryBody(byte[] bytes,
                  com.google.common.net.MediaType contentType)
Method Detail

binary

public static BinaryBody binary(byte[] body)

binary

public static BinaryBody binary(byte[] body,
                                com.google.common.net.MediaType contentType)

getValue

public byte[] 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.