Interface Response
-
public interface ResponseThis interface represents the response of the current user interaction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCookie(Cookie cookie)Add the specified cookie.voidsetBody(java.io.InputStream body)Set the body.voidsetHeader(java.lang.String name, java.lang.String value)Set the value of the header with the specified name with the specified value.voidsetHeaders(java.lang.String name, java.util.List<java.lang.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 Detail
-
setStatus
void setStatus(int status)
Set the status. Example of statuses are 200, 400, and 500.- Parameters:
status- The status.
-
setHeader
void setHeader(java.lang.String name, java.lang.String value)Set the value of the header with the specified name with the specified value.- Parameters:
name- The name.value- The value.
-
setHeaders
void setHeaders(java.lang.String name, java.util.List<java.lang.String> values)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
void addCookie(Cookie cookie)
Add the specified cookie.- Parameters:
cookie- The cookie.
-
setBody
void setBody(java.io.InputStream body)
Set the body.- Parameters:
body- The body.
-
-