public class Response
extends HttpPart
Response from a provider to a consumer
| Modifier and Type | Class and Description |
|---|---|
static class |
Response.Companion |
| Modifier and Type | Field and Description |
|---|---|
static Response.Companion |
Companion |
static int |
DEFAULT_STATUS |
| Constructor and Description |
|---|
Response(int status,
java.util.Map<java.lang.String,java.util.List> headers,
OptionalBody body,
MatchingRules matchingRules,
Generators generators)
Response from a provider to a consumer
|
Response(int status,
java.util.Map<java.lang.String,java.util.List> headers,
OptionalBody body,
MatchingRules matchingRules)
Response from a provider to a consumer
|
Response(int status,
java.util.Map<java.lang.String,java.util.List> headers,
OptionalBody body)
Response from a provider to a consumer
|
Response(int status,
java.util.Map<java.lang.String,java.util.List> headers)
Response from a provider to a consumer
|
Response(int status)
Response from a provider to a consumer
|
Response()
Response from a provider to a consumer
|
| Modifier and Type | Method and Description |
|---|---|
Response |
copy() |
boolean |
equals(java.lang.Object other) |
static Response |
fromJson(com.google.gson.JsonObject json) |
Response |
generatedResponse(java.util.Map<java.lang.String,? extends java.lang.Object> context,
GeneratorTestMode mode) |
OptionalBody |
getBody() |
Generators |
getGenerators() |
java.util.Map<java.lang.String,java.util.List> |
getHeaders() |
MatchingRules |
getMatchingRules() |
int |
getStatus() |
int |
hashCode() |
void |
setBody(OptionalBody p) |
void |
setGenerators(Generators p) |
void |
setHeaders(java.util.Map<java.lang.String,java.util.List> p) |
void |
setMatchingRules(MatchingRules p) |
void |
setStatus(int p) |
java.lang.String |
toString() |
charset, contentTypeHeader, detectContentType, getBody, getHeaders, getMatchingRules, jsonBody, mimeType, setBody, setDefaultMimeType, setHeaders, setMatchingRules, xmlBodypublic static int DEFAULT_STATUS
public static Response.Companion Companion
public Response(int status,
java.util.Map<java.lang.String,java.util.List> headers,
OptionalBody body,
MatchingRules matchingRules,
Generators generators)
Response from a provider to a consumer
public Response(int status,
java.util.Map<java.lang.String,java.util.List> headers,
OptionalBody body,
MatchingRules matchingRules)
Response from a provider to a consumer
public Response(int status,
java.util.Map<java.lang.String,java.util.List> headers,
OptionalBody body)
Response from a provider to a consumer
public Response(int status,
java.util.Map<java.lang.String,java.util.List> headers)
Response from a provider to a consumer
public Response(int status)
Response from a provider to a consumer
public Response()
Response from a provider to a consumer
public java.lang.String toString()
public Response copy()
public Response generatedResponse(java.util.Map<java.lang.String,? extends java.lang.Object> context, GeneratorTestMode mode)
public boolean equals(java.lang.Object other)
public int hashCode()
public int getStatus()
public void setStatus(int p)
public java.util.Map<java.lang.String,java.util.List> getHeaders()
public void setHeaders(java.util.Map<java.lang.String,java.util.List> p)
public OptionalBody getBody()
public void setBody(OptionalBody p)
public MatchingRules getMatchingRules()
public void setMatchingRules(MatchingRules p)
public Generators getGenerators()
public void setGenerators(Generators p)
public static Response fromJson(com.google.gson.JsonObject json)