Interface Response
public interface Response
This interface represents the response of the current user interaction.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the specified cookie.voidsetBody(InputStream body) Set the body.voidSet the value of the header with the specified name with the specified value.voidsetHeaders(String name, List<String> values) Set the value list of the header with the specified name with the specified value list.voidsetStatus(int status) Set the status.
-
Method Details
-
setStatus
void setStatus(int status) Set the status. Example of statuses are 200, 400, and 500.- Parameters:
status- The status.
-
setHeader
Set the value of the header with the specified name with the specified value.- Parameters:
name- The name.value- The value.
-
setHeaders
Set the value list of the header with the specified name with the specified value list.- Parameters:
name- The name.values- The value list.
-
addCookie
Add the specified cookie.- Parameters:
cookie- The cookie.
-
setBody
Set the body.- Parameters:
body- The body.
-