Uses of Interface
io.avaje.jex.Context
-
Packages that use Context Package Description io.avaje.jex io.avaje.jex.core io.avaje.jex.spi -
-
Uses of Context in io.avaje.jex
Methods in io.avaje.jex that return Context Modifier and Type Method Description ContextContext. attribute(String key, Object value)Sets an attribute on the request.ContextContext. contentType(String contentType)Set the response content type.ContextContext. cookie(String name, String value)Sets a cookie with name, value with unlimited age.ContextContext. cookie(String name, String value, int maxAge)Sets a cookie with name, value, and max-age.ContextContext. cookie(javax.servlet.http.Cookie cookie)Sets a Cookie.ContextContext. html(String content)Write html content to the response.ContextContext. json(Object bean)Set the response body as JSON for the given bean.ContextContext. removeCookie(String name)Remove a cookie by name.ContextContext. removeCookie(String name, String path)Remove a cookie by name and path.ContextContext. render(String name)Render a template typically as html.ContextContext. render(String name, Map<String,Object> model)Render a template typically as html with the given model.ContextContext. sessionAttribute(String key, Object value)Sets an attribute for the user session.ContextContext. status(int statusCode)Set the status code on the response.ContextContext. text(String content)Write plain text content to the response.ContextContext. write(String content)Write raw content to the response.Methods in io.avaje.jex with parameters of type Context Modifier and Type Method Description voidExceptionHandler. handle(T exception, Context ctx)voidHandler. handle(Context ctx)voidAccessManager. manage(Handler handler, Context ctx, Set<Role> permittedRoles)voidTemplateRender. render(Context context, String name, Map<String,Object> model)Render the template and model typically as html to the given context. -
Uses of Context in io.avaje.jex.core
Methods in io.avaje.jex.core with parameters of type Context Modifier and Type Method Description voidExceptionManager. handle(Context ctx, Exception e)voidServiceManager. handleException(Context ctx, Exception e)voidServiceManager. render(Context ctx, String name, Map<String,Object> model)voidTemplateManager. render(Context ctx, String name, Map<String,Object> model)Render the template and model typically as html to the context. -
Uses of Context in io.avaje.jex.spi
Subinterfaces of Context in io.avaje.jex.spi Modifier and Type Interface Description interfaceSpiContextExtension to Context for processing the request.Methods in io.avaje.jex.spi with parameters of type Context Modifier and Type Method Description voidSpiRoutes.Entry. handle(Context ctx)Handle the request.
-