org.mockserver.model
Class JsonBody
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.model.Not
org.mockserver.model.Body
org.mockserver.model.BodyWithContentType
org.mockserver.model.JsonBody
public class JsonBody
- extends BodyWithContentType
- Author:
- jamesdbloom
| Nested classes/interfaces inherited from class org.mockserver.model.Body |
Body.Type |
|
Method Summary |
MatchType |
getMatchType()
|
byte[] |
getRawBytes()
|
String |
getValue()
|
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,
com.google.common.net.MediaType contentType)
|
static JsonBody |
json(Object object,
com.google.common.net.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,
com.google.common.net.MediaType contentType)
|
static JsonBody |
json(String json,
com.google.common.net.MediaType contentType,
MatchType matchType)
|
String |
toString()
|
| Methods inherited from class org.mockserver.model.Body |
getType |
DEFAULT_MATCH_TYPE
public static final MatchType DEFAULT_MATCH_TYPE
DEFAULT_CONTENT_TYPE
public static final com.google.common.net.MediaType DEFAULT_CONTENT_TYPE
JsonBody
public JsonBody(String json)
JsonBody
public JsonBody(String json,
MatchType matchType)
JsonBody
public JsonBody(String json,
Charset charset,
MatchType matchType)
JsonBody
public JsonBody(String json,
com.google.common.net.MediaType contentType,
MatchType matchType)
json
public static JsonBody json(String json)
json
public static JsonBody json(String json,
MatchType matchType)
json
public static JsonBody json(String json,
Charset charset)
json
public static JsonBody json(String json,
Charset charset,
MatchType matchType)
json
public static JsonBody json(String json,
com.google.common.net.MediaType contentType)
json
public static JsonBody json(String json,
com.google.common.net.MediaType contentType,
MatchType matchType)
json
public static JsonBody json(Object object)
json
public static JsonBody json(Object object,
MatchType matchType)
json
public static JsonBody json(Object object,
Charset charset)
json
public static JsonBody json(Object object,
Charset charset,
MatchType matchType)
json
public static JsonBody json(Object object,
com.google.common.net.MediaType contentType)
json
public static JsonBody json(Object object,
com.google.common.net.MediaType contentType,
MatchType matchType)
getValue
public String getValue()
- Specified by:
getValue in class Body
getRawBytes
public byte[] getRawBytes()
- Overrides:
getRawBytes in class Body
getMatchType
public MatchType getMatchType()
toString
public String toString()
- Overrides:
toString in class ObjectWithJsonToString
Copyright © 2017. All rights reserved.