public class Body
extends java.lang.Object
Constructor and Description |
---|
Body(byte[] content) |
Body(com.fasterxml.jackson.databind.JsonNode content) |
Body(java.lang.String content) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asBase64() |
byte[] |
asBytes() |
com.fasterxml.jackson.databind.JsonNode |
asJson() |
java.lang.String |
asString() |
boolean |
equals(java.lang.Object o) |
static Body |
fromOneOf(byte[] bytes,
java.lang.String str,
com.fasterxml.jackson.databind.JsonNode json,
java.lang.String base64) |
int |
hashCode() |
boolean |
isAbsent() |
boolean |
isBinary() |
boolean |
isJson() |
boolean |
isPresent() |
static Body |
none() |
static Body |
ofBinaryOrText(byte[] content,
ContentTypeHeader contentTypeHeader) |
java.lang.String |
toString() |
public Body(byte[] content)
public Body(java.lang.String content)
public Body(com.fasterxml.jackson.databind.JsonNode content)
public static Body ofBinaryOrText(byte[] content, ContentTypeHeader contentTypeHeader)
public static Body fromOneOf(byte[] bytes, java.lang.String str, com.fasterxml.jackson.databind.JsonNode json, java.lang.String base64)
public static Body none()
public java.lang.String asString()
public byte[] asBytes()
public java.lang.String asBase64()
public boolean isBinary()
public com.fasterxml.jackson.databind.JsonNode asJson()
public boolean isJson()
public boolean isAbsent()
public boolean isPresent()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object