Context |
Context.attribute(String key,
Object value) |
Sets an attribute on the request.
|
Context |
Context.contentType(String contentType) |
Set the response content type.
|
Context |
Context.cookie(String name,
String value) |
Sets a cookie with name, value with unlimited age.
|
Context |
Context.cookie(String name,
String value,
int maxAge) |
Sets a cookie with name, value, and max-age.
|
Context |
Context.cookie(javax.servlet.http.Cookie cookie) |
Sets a Cookie.
|
Context |
Context.html(String content) |
Write html content to the response.
|
Context |
Context.json(Object bean) |
Set the response body as JSON for the given bean.
|
Context |
Context.removeCookie(String name) |
Remove a cookie by name.
|
Context |
Context.removeCookie(String name,
String path) |
Remove a cookie by name and path.
|
Context |
Context.render(String name) |
Render a template typically as html.
|
Context |
Context.render(String name,
Map<String,Object> model) |
Render a template typically as html with the given model.
|
Context |
Context.sessionAttribute(String key,
Object value) |
Sets an attribute for the user session.
|
Context |
Context.status(int statusCode) |
Set the status code on the response.
|
Context |
Context.text(String content) |
Write plain text content to the response.
|
Context |
Context.write(String content) |
Write raw content to the response.
|