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, com.google.common.net.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, 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.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
-
-
-
-
Method Detail
-
binary
public static BinaryBody binary(byte[] body)
-
binary
public static BinaryBody binary(byte[] body, com.google.common.net.MediaType contentType)
-
getRawBytes
public byte[] getRawBytes()
- Overrides:
getRawBytes
in classBody
-
toString
public String toString()
- Overrides:
toString
in classObjectWithJsonToString
-
-