-
Methods in io.avaje.jex that return Context
| Modifier and Type |
Method |
Description |
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(Context.Cookie cookie) |
Sets a Cookie.
|
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.header(String key,
String value) |
Set the response header.
|
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.
|
<E> Context |
Context.jsonStream(Iterator<E> iterator) |
Write the stream as a JSON stream with new line delimiters
application/x-json-stream.
|
<E> Context |
Context.jsonStream(Stream<E> stream) |
Write the stream as a JSON stream with new line delimiters
application/x-json-stream.
|
Context |
Context.removeCookie(String name) |
Remove a cookie by name.
|
Context |
Context.removeCookie(String name,
String path) |
Remove a cookie by name and path.
|
default 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.
|
-
-
Methods in io.avaje.jex.spi with parameters of type Context
| Modifier and Type |
Method |
Description |
Map<String,List<String>> |
ProxyServiceManager.formParamMap(Context ctx,
String charset) |
|
Map<String,List<String>> |
SpiServiceManager.formParamMap(Context ctx,
String charset) |
Parse and return the body as form parameters.
|
void |
SpiRoutes.Entry.handle(Context ctx) |
Handle the request.
|
void |
ProxyServiceManager.render(Context ctx,
String name,
Map<String,Object> model) |
|
void |
SpiServiceManager.render(Context ctx,
String name,
Map<String,Object> model) |
Render using template manager.
|
String |
ProxyServiceManager.requestCharset(Context ctx) |
|
String |
SpiServiceManager.requestCharset(Context ctx) |
Return the character set of the request.
|