public class JsonBody extends BodyWithContentType<String>
Modifier and Type | Field and Description |
---|---|
static MediaType |
DEFAULT_JSON_CONTENT_TYPE |
static MatchType |
DEFAULT_MATCH_TYPE |
contentType
Constructor and Description |
---|
JsonBody(String json) |
JsonBody(String json,
byte[] rawBytes,
MediaType contentType,
MatchType matchType) |
JsonBody(String json,
Charset charset,
MatchType matchType) |
JsonBody(String json,
MatchType matchType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.fasterxml.jackson.databind.JsonNode |
get(String field) |
MatchType |
getMatchType() |
byte[] |
getRawBytes() |
String |
getValue() |
int |
hashCode() |
static JsonBody |
json(Object object) |
static JsonBody |
json(Object object,
Charset charset) |
static JsonBody |
json(Object object,
Charset charset,
MatchType matchType) |
static JsonBody |
json(Object object,
MatchType matchType) |
static JsonBody |
json(Object object,
MediaType contentType) |
static JsonBody |
json(Object object,
MediaType contentType,
MatchType matchType) |
static JsonBody |
json(String json) |
static JsonBody |
json(String json,
Charset charset) |
static JsonBody |
json(String json,
Charset charset,
MatchType matchType) |
static JsonBody |
json(String json,
MatchType matchType) |
static JsonBody |
json(String json,
MediaType contentType) |
static JsonBody |
json(String json,
MediaType contentType,
MatchType matchType) |
String |
toString() |
getCharset, getContentType
getOptional, getType, withOptional
fieldsExcludedFromEqualsAndHashCode
public static final MatchType DEFAULT_MATCH_TYPE
public static final MediaType DEFAULT_JSON_CONTENT_TYPE
public JsonBody(String json)
public com.fasterxml.jackson.databind.JsonNode get(String field)
public byte[] getRawBytes()
getRawBytes
in class Body<String>
public MatchType getMatchType()
public String toString()
toString
in class ObjectWithJsonToString
public boolean equals(Object o)
equals
in class BodyWithContentType<String>
public int hashCode()
hashCode
in class BodyWithContentType<String>
Copyright © 2022. All rights reserved.