Interface Rest.Response
- Enclosing class:
Rest
public static interface Rest.Response
Response interface.
- Author:
- Holger Eichelberger, SSE
-
Method Details
-
setBody
Sets the body.- Parameters:
body- the body
-
getBody
String getBody()Returns the body.- Returns:
- the body
-
setStatus
void setStatus(int status) Sets the status code for the response.- Parameters:
status- the status
-
setType
Sets the content/response type. Default is "text/html".- Parameters:
type- the type
-
setApplicationJsonType
default void setApplicationJsonType()Sets the content/response type to "application/json".- See Also:
-