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.
|
HttpCookie |
addCookie(String name,
String value,
String path)
Adds a new HttpCookie to the response of this request.
|
HttpCookie |
addCookie(String name,
String value,
String path,
String domain)
Adds a new HttpCookie to the response of this request.
|
HttpCookie |
addCookie(String name,
String value,
String path,
String domain,
int maxAge)
Adds a new HttpCookie to the response of this request.
|
HttpCookie |
addCookie(String name,
String value,
String path,
String domain,
int maxAge,
boolean secure)
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.HttpCookie addCookie(String name, String value, String path)
name - The name of the cookie.value - The value for the cookie.path - The path for the cookie.HttpCookie addCookie(String name, String value, String path, String domain)
name - The name of the cookie.value - The value for the cookie.path - The path for the cookie.domain - The domain for the cookie.HttpCookie addCookie(String name, String value, String path, String domain, int maxAge)
name - The name of the cookie.value - The value for the cookie.path - The path for the cookie.domain - The domain for the cookie.maxAge - The max age of the cookie.HttpCookie addCookie(String name, String value, String path, String domain, int maxAge, boolean secure)
name - The name of the cookie.value - The value for the cookie.path - The path for the cookie.domain - The domain for the cookie.maxAge - The max age of the cookie.secure - If the cookie is for secure requests.Copyright © 2015–2018 Bridje Framework. All rights reserved.