public interface Response
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(Cookie cookie)
Add the specified cookie.
|
void |
setBody(java.io.InputStream body)
Set the body.
|
void |
setHeader(java.lang.String name,
java.lang.String value)
Set the value of the header with the specified name with the specified
value.
|
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.
|
void |
setStatus(int status)
Set the status.
|
void setStatus(int status)
status - The status.void setHeader(java.lang.String name,
java.lang.String value)
name - The name.value - The value.void setHeaders(java.lang.String name,
java.util.List<java.lang.String> values)
name - The name.values - The value list.void addCookie(Cookie cookie)
cookie - The cookie.void setBody(java.io.InputStream body)
body - The body.