public interface HttpBridletResponse
| Modifier and Type | Method and Description |
|---|---|
HttpCookie |
addCookie(String name,
String value)
Adds a new HttpCookie to the response of this request.
|
String |
getContentType()
The content mime type of the response.
|
OutputStream |
getOutputStream()
The OutputStream to print the response body.
|
int |
getStatusCode()
The status code of the response.
|
void |
setContentType(String contentType)
The content mime type of the response.
|
void |
setHeader(String name,
Object value)
Sets a header for the response.
|
void |
setStatusCode(int statusCode)
The status code of the response.
|
OutputStream getOutputStream()
String getContentType()
void setContentType(String contentType)
contentType - The content mime type of the response.int getStatusCode()
void setStatusCode(int statusCode)
statusCode - The status code of the response.void setHeader(String name, Object value)
name - The header namevalue - The header valueHttpCookie addCookie(String name, String value)
name - The name of the cookie.value - The value for the cookie.Copyright © 2015–2017 Bridje Framework. All rights reserved.