Package org.mockserver.model
Class BinaryBody
-
public class BinaryBody extends BodyWithContentType<byte[]>
- Author:
- jamesdbloom
-
-
Field Summary
-
Fields inherited from class org.mockserver.model.BodyWithContentType
contentType
-
-
Constructor Summary
Constructors Constructor Description BinaryBody(byte[] bytes)
BinaryBody(byte[] bytes, MediaType contentType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BinaryBody
binary(byte[] body)
static BinaryBody
binary(byte[] body, 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.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
-
-
-
-
Constructor Detail
-
BinaryBody
public BinaryBody(byte[] bytes)
-
BinaryBody
public BinaryBody(byte[] bytes, MediaType contentType)
-
-
Method Detail
-
binary
public static BinaryBody binary(byte[] body)
-
binary
public static BinaryBody binary(byte[] body, MediaType contentType)
-
getRawBytes
public byte[] getRawBytes()
- Overrides:
getRawBytes
in classBody
-
toString
public String toString()
- Overrides:
toString
in classObjectWithJsonToString
-
-