Uses of Interface
io.avaje.jex.Context
Packages that use Context
-
Uses of Context in io.avaje.jex
Methods in io.avaje.jex that return ContextModifier and TypeMethodDescriptionSets an attribute on the request.Context.contentType(String contentType) Set the response content type.Context.cookie(Context.Cookie cookie) Sets a Cookie.Sets a cookie with name, value with unlimited age.Sets a cookie with name, value, and max-age.Set the response header.default ContextSet the response headers using the provided map.Write html content to the response.Set the response body as JSON for the given bean.<E> ContextContext.jsonStream(Iterator<E> iterator) Write the stream as a JSON stream with new line delimiters application/x-json-stream.<E> ContextContext.jsonStream(Stream<E> stream) Write the stream as a JSON stream with new line delimiters application/x-json-stream.Context.removeCookie(String name) Remove a cookie by name.Context.removeCookie(String name, String path) Remove a cookie by name and path.default ContextRender a template typically as html.Render a template typically as html with the given model.Context.status(int statusCode) Set the status code on the response.Write plain text content to the response.Context.write(byte[] bytes) Write raw bytes to the response.Context.write(InputStream is) Write raw inputStream to the response.Write raw content to the response.Methods in io.avaje.jex with parameters of type ContextModifier and TypeMethodDescriptionvoidHttpFilter.filter(Context ctx, FilterChain chain) Asks this filter to pre/post-process the given request.voidvoidHandle the given request and generate an appropriate response.Method parameters in io.avaje.jex with type arguments of type ContextModifier and TypeMethodDescriptiondefault RoutingAdd a post-processing filter for all requests.default RoutingAdd a preprocessing filter for all requests.StaticContentConfig.skipFilePredicate(Predicate<Context> skipFilePredicate) Sets a predicate to filter files based on the request context. -
Uses of Context in io.avaje.jex.spi
Subinterfaces of Context in io.avaje.jex.spiModifier and TypeInterfaceDescriptioninterfaceExtension to Context for processing the request.Methods in io.avaje.jex.spi with parameters of type Context