Uses of Interface
io.avaje.jex.Context
Packages that use Context
Package
Description
Avaje Jex API - see
Jex.Classes Governing Http Compression
SPI extension interfaces
-
Uses of Context in io.avaje.jex
Methods in io.avaje.jex that return ContextModifier and TypeMethodDescriptionSets an attribute on the request, accessible to other handlers in the request lifecycle.Context.contentType(String contentType) Set the response content type.Context.cookie(Context.Cookie cookie) Sets a cookie using the providedContext.Cookieobject.Sets a cookie with the specified name and value, with no expiration date.Sets a cookie with the specified name, value, and maximum age in seconds.Set the response header.Set the response header.Sets the response headers using the provided map.default ContextAdd the response headers using the provided map.Write html content to the response.Set the content type as application/json and write the response.<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) Removes a cookie with the specified name.Context.removeCookie(String name, String path) Removes a cookie with the specified 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) Writes the given bytes directly to the response.Context.write(InputStream is) Writes the content from the given InputStream directly to the response body.Writes the given string content directly to the response.Methods in io.avaje.jex with parameters of type ContextModifier and TypeMethodDescriptionvoidHttpFilter.filter(Context ctx, HttpFilter.FilterChain chain) Asks this filter to pre/post-process the given request.voidError handling consumer.voidHandles the given HTTP request and generates a 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 pre-processing 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.compression
Constructors in io.avaje.jex.compression with parameters of type ContextModifierConstructorDescriptionCompressedOutputStream(CompressionConfig compression, Context ctx, OutputStream originStream) -
Uses of Context in io.avaje.jex.spi
Methods in io.avaje.jex.spi with parameters of type Context