public interface DataControllerResponse
DataControllerRequest
Modifier and Type | Method and Description |
---|---|
DataControllerResponse |
clone()
Creates a copy (clone) of this response.
|
<T> T |
getAttribute(String name)
Gets an attribute value, an Object previously stored in the scope of this
response.
|
Iterator<String> |
getAttributeNames()
Gets name of all the attributes stored in the scope of this response.
|
String |
getCharsetEncoding()
Gets the character encoding of the response.
|
List<org.apache.http.cookie.Cookie> |
getCookies()
Gets the list of response cookies.
|
List<org.apache.http.cookie.Cookie> |
getDeviceCookies()
Gets the list of response cookies that will be sent to the client (device).
|
Map<String,String> |
getDeviceHeaders()
Gets map of all headers that will be sent to client (device).
|
Map<String,String> |
getHeaders()
Gets the map of all headers from the response.
|
String |
getLocation()
Gets the redirected location URL if the response was a 302 redirect.
|
String |
getResponse()
Gets the response content.
|
int |
getStatusCode()
Gets the (HTTP) status code of the back-end service call.
|
<T> void |
setAttribute(String name,
T value)
Sets an attribute value, an Object storied in the scope of this response.
|
void |
setCharsetEncoding(String encoding)
Sets the character encoding of the response.
|
void |
setCookies(List<org.apache.http.cookie.Cookie> cookies)
Sets the list of response cookies.
|
void |
setDeviceCookies(List<org.apache.http.cookie.Cookie> cookies)
Sets list of response cookies sent to the client (device).
|
void |
setDeviceHeaders(Map<String,String> header)
Sets map of all headers that will be sent to client (device).
|
void |
setHeaders(Map<String,String> header)
Sets the map of all headers in the response.
|
void |
setLocation(String location)
Sets the redirected location URL when there is 302 redirect.
|
void |
setResponse(String response)
Sets the content of this response.
|
void |
setStatusCode(int statusCode)
Sets the (HTTP) status code of the back-end service call.
|
<T> void setAttribute(String name, T value)
name
- The attribute namevalue
- The attribute value<T> T getAttribute(String name)
name
- The attribute nameIterator<String> getAttributeNames()
void setResponse(String response)
response
- The response content to setString getResponse()
void setCharsetEncoding(String encoding)
encoding
- The character encoding to setString getCharsetEncoding()
void setStatusCode(int statusCode)
statusCode
- The (HTTP) status code to setint getStatusCode()
void setCookies(List<org.apache.http.cookie.Cookie> cookies)
cookies
- The list to setList<org.apache.http.cookie.Cookie> getCookies()
void setLocation(String location)
location
- The redirected locationString getLocation()
void setHeaders(Map<String,String> header)
header
- The map of all headersMap<String,String> getHeaders()
void setDeviceCookies(List<org.apache.http.cookie.Cookie> cookies)
cookies
- The list of cookies to setList<org.apache.http.cookie.Cookie> getDeviceCookies()
void setDeviceHeaders(Map<String,String> header)
header
- The map of all headersMap<String,String> getDeviceHeaders()
DataControllerResponse clone()
Copyright © 2019. All rights reserved.