public class DefaultResponse extends java.lang.Object implements Response
Response.ResponseType
Modifier | Constructor and Description |
---|---|
protected |
DefaultResponse(Response.ResponseType responseType,
java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> attributes)
Instantiates a new response.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Gets attributes.
|
static Response |
getHeaderResponse(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> attributes)
Gets header response.
|
static Response |
getPostResponse(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> attributes)
Gets the post response.
|
static Response |
getRedirectResponse(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> parameters)
Gets the redirect response.
|
Response.ResponseType |
getResponseType()
Gets response type.
|
java.lang.String |
getUrl()
Gets url.
|
protected DefaultResponse(Response.ResponseType responseType, java.lang.String url, java.util.Map<java.lang.String,java.lang.String> attributes)
responseType
- the response typeurl
- the urlattributes
- the attributespublic static Response getPostResponse(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> attributes)
url
- the urlattributes
- the attributespublic static Response getHeaderResponse(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> attributes)
url
- the urlattributes
- the attributespublic static Response getRedirectResponse(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> parameters)
url
- the urlparameters
- the parameterspublic java.util.Map<java.lang.String,java.lang.String> getAttributes()
Response
getAttributes
in interface Response
public Response.ResponseType getResponseType()
Response
getResponseType
in interface Response