|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.model.Not
org.mockserver.model.Body
org.mockserver.model.JsonBody
public class JsonBody
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.mockserver.model.Body |
|---|
Body.Type |
| Field Summary | |
|---|---|
static MatchType |
DEFAULT_MATCH_TYPE
|
| Fields inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString |
|---|
logger |
| Constructor Summary | |
|---|---|
JsonBody(String json)
|
|
JsonBody(String json,
Charset charset,
MatchType matchType)
|
|
JsonBody(String json,
MatchType matchType)
|
|
| Method Summary | |
|---|---|
Charset |
getCharset()
|
Charset |
getCharset(Charset defaultIfNotSet)
|
String |
getContentType()
|
MatchType |
getMatchType()
|
byte[] |
getRawBytes()
|
String |
getValue()
|
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)
|
| 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.ObjectWithJsonToString |
|---|
toString |
| 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 |
| Field Detail |
|---|
public static final MatchType DEFAULT_MATCH_TYPE
| Constructor Detail |
|---|
public JsonBody(String json)
public JsonBody(String json,
MatchType matchType)
public JsonBody(String json,
Charset charset,
MatchType matchType)
| Method Detail |
|---|
public static JsonBody json(String json)
public static JsonBody json(String json,
MatchType matchType)
public static JsonBody json(String json,
Charset charset)
public static JsonBody json(String json,
Charset charset,
MatchType matchType)
public String getValue()
getValue in class Bodypublic byte[] getRawBytes()
getRawBytes in class Bodypublic MatchType getMatchType()
public Charset getCharset()
public Charset getCharset(Charset defaultIfNotSet)
getCharset in class Bodypublic String getContentType()
getContentType in class Body
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||