public class Response
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) HttpCashingConfiguration |
cashingConfiguration |
static java.time.format.DateTimeFormatter |
DATE_FORMAT |
static java.time.ZoneId |
ZONE_ID |
| Constructor and Description |
|---|
Response(ResponseContent content) |
| Modifier and Type | Method and Description |
|---|---|
Response |
applyCashingConfiguration(HttpCashingConfiguration cashingConfiguration) |
void |
finish(Request request,
WebServer server) |
void |
redirect(java.lang.String url,
boolean permanent) |
void |
redirect(java.lang.String url,
int errorCode) |
Response |
setContentType(ContentType contentType) |
Response |
setCookie(CookieKey key,
java.lang.String value) |
Response |
setCookie(java.lang.String name,
java.lang.String value) |
Response |
setHeader(java.lang.CharSequence httpHeader,
java.lang.CharSequence value) |
Response |
setHeader(ResponseHeader httpHeader,
java.lang.CharSequence value) |
public static final java.time.ZoneId ZONE_ID
public static final java.time.format.DateTimeFormatter DATE_FORMAT
HttpCashingConfiguration cashingConfiguration
public Response(ResponseContent content)
public Response applyCashingConfiguration(HttpCashingConfiguration cashingConfiguration)
public Response setCookie(java.lang.String name, java.lang.String value)
public Response setHeader(ResponseHeader httpHeader, java.lang.CharSequence value)
public Response setHeader(java.lang.CharSequence httpHeader, java.lang.CharSequence value)
public Response setContentType(ContentType contentType)
public void redirect(java.lang.String url,
int errorCode)
public void redirect(java.lang.String url,
boolean permanent)