Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- add(Routing) - Method in interface io.avaje.jex.Routing.HttpService
-
Add to the routing.
- add(Routing.HttpService) - Method in interface io.avaje.jex.Routing
-
Add the routes provided by the Routing HttpService.
- addAll(Collection<Routing.HttpService>) - Method in interface io.avaje.jex.Routing
-
Add all the routes provided by the Routing Services.
- addGroup() - Method in interface io.avaje.jex.Routing.Group
-
Add the group of entries with a common prefix.
- after(Consumer<Context>) - Method in interface io.avaje.jex.Routing
-
Add a post-processing filter for all requests.
- allowsForCompression(String) - Method in class io.avaje.jex.compression.CompressionConfig
- APPLICATION_JSON - Static variable in interface io.avaje.jex.spi.SpiContext
- APPLICATION_X_JSON_STREAM - Static variable in interface io.avaje.jex.spi.SpiContext
- AppLifecycle - Interface in io.avaje.jex
-
Application lifecycle support.
- AppLifecycle.Status - Enum Class in io.avaje.jex
- apply(Jex) - Method in interface io.avaje.jex.JexPlugin
-
Register the plugin features with jex.
- attribute(Class<T>) - Method in interface io.avaje.jex.Jex
-
Return a custom attribute.
- attribute(Class<T>, T) - Method in interface io.avaje.jex.Jex
-
Set a custom attribute that can be used by an implementation.
- attribute(String) - Method in interface io.avaje.jex.Context
-
Get the specified attribute from the request.
- attribute(String, Object) - Method in interface io.avaje.jex.Context
-
Sets an attribute on the request.
B
- BAD_GATEWAY - Enum constant in enum class io.avaje.jex.http.ErrorCode
- BAD_REQUEST - Enum constant in enum class io.avaje.jex.http.ErrorCode
- BadRequestException - Exception Class in io.avaje.jex.http
-
Thrown when unable to find a route/resource
- BadRequestException(String) - Constructor for exception class io.avaje.jex.http.BadRequestException
- BANDWIDTH_LIMIT_EXCEEDED - Enum constant in enum class io.avaje.jex.http.ErrorCode
- basicAuthCredentials() - Method in interface io.avaje.jex.Context
-
Gets basic-auth credentials from the request, or throws.
- BasicAuthCredentials - Record Class in io.avaje.jex.security
- BasicAuthCredentials(String, String) - Constructor for record class io.avaje.jex.security.BasicAuthCredentials
-
Creates an instance of a
BasicAuthCredentialsrecord class. - before(Consumer<Context>) - Method in interface io.avaje.jex.Routing
-
Add a preprocessing filter for all requests.
- body() - Method in interface io.avaje.jex.Context
-
Return the request body as String.
- bodyAsBytes() - Method in interface io.avaje.jex.Context
-
Return the request body as bytes.
- bodyAsClass(Class<T>) - Method in interface io.avaje.jex.Context
-
Return the request body as bean.
- bodyAsInputStream() - Method in interface io.avaje.jex.Context
-
Return the request body as an inputStream.
- BootJex - Interface in io.avaje.jex
-
Start Jex using
@Controllerand avaje-inject, avaje-http, avaje-config.
C
- CLASS_PATH - Enum constant in enum class io.avaje.jex.ResourceLocation
- ClassResourceLoader - Interface in io.avaje.jex
-
Loading resources from the classpath or module path.
- close() - Method in class io.avaje.jex.compression.CompressedOutputStream
- compress(OutputStream) - Method in interface io.avaje.jex.compression.Compressor
-
Compresses the provided output stream.
- CompressedOutputStream - Class in io.avaje.jex.compression
-
CompressedOutputStream class that conditionally compresses the output based on configuration and request headers.
- CompressedOutputStream(CompressionConfig, SpiContext, OutputStream) - Constructor for class io.avaje.jex.compression.CompressedOutputStream
- compression() - Method in interface io.avaje.jex.JexConfig
- compression(Consumer<CompressionConfig>) - Method in interface io.avaje.jex.JexConfig
- CompressionConfig - Class in io.avaje.jex.compression
- CompressionConfig() - Constructor for class io.avaje.jex.compression.CompressionConfig
- compressionEnabled() - Method in class io.avaje.jex.compression.CompressionConfig
- Compressor - Interface in io.avaje.jex.compression
-
Compressor interface defines methods for compressing an output stream.
- config() - Method in interface io.avaje.jex.Jex
-
Return the configuration.
- configure(Consumer<JexConfig>) - Method in interface io.avaje.jex.Jex
-
Configure via a lambda taking the JexConfig instance.
- configureWith(BeanScope) - Method in interface io.avaje.jex.Jex
-
Configure given the dependency injection scope from avaje-inject.
- CONFLICT - Enum constant in enum class io.avaje.jex.http.ErrorCode
- contentLength() - Method in interface io.avaje.jex.Context
-
Return the request content length.
- contentType() - Method in interface io.avaje.jex.Context
-
Return the request content type.
- contentType(String) - Method in interface io.avaje.jex.Context
-
Set the response content type.
- context(String) - Method in interface io.avaje.jex.Jex
-
Set the context path.
- Context - Interface in io.avaje.jex
-
Provides access to functions for handling the request and response.
- Context.Cookie - Interface in io.avaje.jex
- contextPath() - Method in interface io.avaje.jex.Context
-
Return the request context path.
- contextPath() - Method in interface io.avaje.jex.JexConfig
-
Return the contextPath to use.
- contextPath(String) - Method in interface io.avaje.jex.JexConfig
-
Set the contextPath.
- cookie(Context.Cookie) - Method in interface io.avaje.jex.Context
-
Sets a Cookie.
- cookie(String) - Method in interface io.avaje.jex.Context
-
Return a request cookie by name, or null.
- cookie(String, String) - Method in interface io.avaje.jex.Context
-
Sets a cookie with name, value with unlimited age.
- cookie(String, String, int) - Method in interface io.avaje.jex.Context
-
Sets a cookie with name, value, and max-age.
- cookieMap() - Method in interface io.avaje.jex.Context
-
Returns a map with all the cookie keys and values on the request.
- create() - Static method in interface io.avaje.jex.Jex
-
Create Jex.
- create() - Static method in interface io.avaje.jex.StaticContentConfig
- createHandler() - Method in interface io.avaje.jex.StaticContentConfig
-
Return a new ExchangeHandler that will serve the resources
D
- defaultExtensions() - Method in interface io.avaje.jex.spi.TemplateRender
-
Return the extensions this template renders for by default.
- delete(String, ExchangeHandler) - Method in interface io.avaje.jex.Routing
-
Add a DELETE handler.
- DELETE - Enum constant in enum class io.avaje.jex.Routing.Type
-
HTTP DELETE.
- directoryIndex(String) - Method in interface io.avaje.jex.StaticContentConfig
-
Sets the index file to be served when a directory is requests.
- disableCompression() - Method in class io.avaje.jex.compression.CompressionConfig
- domain() - Method in interface io.avaje.jex.Context.Cookie
-
Return the domain.
- domain(String) - Method in interface io.avaje.jex.Context.Cookie
-
Set the domain.
E
- encoding() - Method in interface io.avaje.jex.compression.Compressor
-
Gets the content encoding for this compressor (e.g., "gzip").
- equals(Object) - Method in record class io.avaje.jex.security.BasicAuthCredentials
-
Indicates whether some other object is "equal to" this one.
- error(Class<T>, ExceptionHandler<T>) - Method in interface io.avaje.jex.Routing
-
Register an exception handler for the given exception type.
- ErrorCode - Enum Class in io.avaje.jex.http
- errorHandlers() - Method in interface io.avaje.jex.Routing
-
Return all the registered Exception Handlers.
- ExceptionHandler<T> - Interface in io.avaje.jex
- exchange() - Method in interface io.avaje.jex.Context
-
Return the underlying JDK
HttpExchangeobject backing the context - ExchangeHandler - Interface in io.avaje.jex
-
A handler which is invoked to process HTTP exchanges.
- executor() - Method in interface io.avaje.jex.JexConfig
-
Executor for serving requests.
- executor(Executor) - Method in interface io.avaje.jex.JexConfig
-
Set executor for serving requests.
- expired(String) - Static method in interface io.avaje.jex.Context.Cookie
-
Return an expired cookie given the name.
- expires() - Method in interface io.avaje.jex.Context.Cookie
-
Return the cookie expiration.
- expires(ZonedDateTime) - Method in interface io.avaje.jex.Context.Cookie
-
Set when the cookie expires.
F
- FILE - Enum constant in enum class io.avaje.jex.ResourceLocation
- filter(Context, FilterChain) - Method in interface io.avaje.jex.HttpFilter
-
Asks this filter to pre/post-process the given request.
- filter(HttpFilter) - Method in interface io.avaje.jex.Routing
-
Add a filter for all requests.
- FILTER - Enum constant in enum class io.avaje.jex.Routing.Type
-
Http Filter.
- FilterChain - Interface in io.avaje.jex
- filters() - Method in interface io.avaje.jex.Routing
-
Return all the registered filters.
- FORBIDDEN - Enum constant in enum class io.avaje.jex.http.ErrorCode
- formParam(String) - Method in interface io.avaje.jex.Context
-
Return the first form param value for the specified key or null.
- formParam(String, String) - Method in interface io.avaje.jex.Context
-
Return the first form param value for the specified key or the default value.
- formParamMap() - Method in interface io.avaje.jex.Context
-
Returns a map with all the form param keys and values.
- formParams(String) - Method in interface io.avaje.jex.Context
-
Return the form params for the specified key, or empty list.
- fromClass(Class<?>) - Static method in interface io.avaje.jex.ClassResourceLoader
- fullUrl() - Method in interface io.avaje.jex.Context
-
Return the full request url, including query string (if present)
G
- GATEWAY_TIMEOUT - Enum constant in enum class io.avaje.jex.http.ErrorCode
- get(String, ExchangeHandler) - Method in interface io.avaje.jex.Routing
-
Add a GET handler.
- GET - Enum constant in enum class io.avaje.jex.Routing.Type
-
Http GET.
- getDetails() - Method in exception class io.avaje.jex.http.HttpResponseException
- getHandler() - Method in interface io.avaje.jex.Routing.Entry
-
Return the handler.
- getPath() - Method in interface io.avaje.jex.Routing.Entry
-
Return the full path of the entry.
- getRoles() - Method in interface io.avaje.jex.Routing.Entry
-
Return the roles.
- getStatus() - Method in exception class io.avaje.jex.http.HttpResponseException
- getType() - Method in interface io.avaje.jex.Routing.Entry
-
Return the type of entry.
- GONE - Enum constant in enum class io.avaje.jex.http.ErrorCode
- gzipCompressionLevel(int) - Method in class io.avaje.jex.compression.CompressionConfig
-
set default gzip compressor level
H
- handle(Context) - Method in interface io.avaje.jex.ExchangeHandler
-
Handle the given request and generate an appropriate response.
- handle(T, Context) - Method in interface io.avaje.jex.ExceptionHandler
- handlers() - Method in interface io.avaje.jex.Routing
-
Return all the registered handlers.
- hashCode() - Method in record class io.avaje.jex.security.BasicAuthCredentials
-
Returns a hash code value for this object.
- head(String, ExchangeHandler) - Method in interface io.avaje.jex.Routing
-
Add a HEAD handler.
- HEAD - Enum constant in enum class io.avaje.jex.Routing.Type
-
HTTP HEAD.
- header(String) - Method in interface io.avaje.jex.Context
-
Return the request header.
- header(String, String) - Method in interface io.avaje.jex.Context
-
Set the response header.
- headerMap() - Method in interface io.avaje.jex.Context
-
Return all the request headers as a map.
- headers(Map<String, String>) - Method in interface io.avaje.jex.Context
-
Set the response headers using the provided map.
- health() - Method in interface io.avaje.jex.JexConfig
-
Return true to include the health endpoint.
- health(boolean) - Method in interface io.avaje.jex.JexConfig
-
Set to true to include the health endpoint.
- host() - Method in interface io.avaje.jex.Context
-
Returns the request host, or null.
- host() - Method in interface io.avaje.jex.JexConfig
-
Return the host to bind to.
- host(String) - Method in interface io.avaje.jex.JexConfig
-
Set the host to bind to.
- html(String) - Method in interface io.avaje.jex.Context
-
Write html content to the response.
- HTTP_VERSION_NOT_SUPPORTED - Enum constant in enum class io.avaje.jex.http.ErrorCode
- HttpFilter - Interface in io.avaje.jex
-
A filter used to pre- and post-process incoming requests.
- httpOnly() - Method in interface io.avaje.jex.Context.Cookie
-
Return the httpOnly attribute of the cookie.
- httpOnly(boolean) - Method in interface io.avaje.jex.Context.Cookie
-
Set the httpOnly attribute of the cookie.
- httpPath() - Method in interface io.avaje.jex.StaticContentConfig
-
Gets the current HTTP path.
- httpPath(String) - Method in interface io.avaje.jex.StaticContentConfig
-
Sets the HTTP path for the static resource handler.
- HttpResponseException - Exception Class in io.avaje.jex.http
-
Throwing an uncaught
HttpResponseExceptionwill interrupt http processing and set the status code and response body with the given message - HttpResponseException(int, String) - Constructor for exception class io.avaje.jex.http.HttpResponseException
- HttpResponseException(int, String, Map<String, String>) - Constructor for exception class io.avaje.jex.http.HttpResponseException
I
- ignoreTrailingSlashes() - Method in interface io.avaje.jex.JexConfig
-
Return true to ignore trailing slashes.
- ignoreTrailingSlashes(boolean) - Method in interface io.avaje.jex.JexConfig
-
Set to true to ignore trailing slashes.
- inputStream() - Method in interface io.avaje.jex.spi.SpiContext
-
Return the request inputStream to read content from.
- INSUFFICIENT_STORAGE - Enum constant in enum class io.avaje.jex.http.ErrorCode
- INTERNAL_SERVER_ERROR - Enum constant in enum class io.avaje.jex.http.ErrorCode
- InternalServerErrorException - Exception Class in io.avaje.jex.http
-
Thrown when unable to find a route/resource
- InternalServerErrorException(String) - Constructor for exception class io.avaje.jex.http.InternalServerErrorException
- io.avaje.jex - module io.avaje.jex
- io.avaje.jex - package io.avaje.jex
- io.avaje.jex.compression - package io.avaje.jex.compression
- io.avaje.jex.core.json - package io.avaje.jex.core.json
- io.avaje.jex.http - package io.avaje.jex.http
- io.avaje.jex.security - package io.avaje.jex.security
- io.avaje.jex.spi - package io.avaje.jex.spi
- ip() - Method in interface io.avaje.jex.Context
-
Returns the request IP.
- isAlive() - Method in interface io.avaje.jex.AppLifecycle
-
Return true if status starting or started (the server is coming up).
- isReady() - Method in interface io.avaje.jex.AppLifecycle
-
Return true the server has started.
J
- JacksonJsonService - Class in io.avaje.jex.core.json
- JacksonJsonService() - Constructor for class io.avaje.jex.core.json.JacksonJsonService
- JacksonJsonService(ObjectMapper) - Constructor for class io.avaje.jex.core.json.JacksonJsonService
- Jex - Interface in io.avaje.jex
-
Create configure and start Jex.
- Jex.Server - Interface in io.avaje.jex
-
The running server.
- JexConfig - Interface in io.avaje.jex
-
Jex configuration.
- JexExtension - Interface in io.avaje.jex.spi
-
Extension point for all Jex SPI interfaces
- JexPlugin - Interface in io.avaje.jex
-
A plugin that can register things like routes, exception handlers etc.
- json(Object) - Method in interface io.avaje.jex.Context
-
Set the response body as JSON for the given bean.
- JsonbJsonService - Class in io.avaje.jex.core.json
-
Provides JsonService using avaje-jsonb.
- JsonbJsonService() - Constructor for class io.avaje.jex.core.json.JsonbJsonService
-
Create with defaults for Jsonb.
- JsonbJsonService(Jsonb) - Constructor for class io.avaje.jex.core.json.JsonbJsonService
-
Create with a Jsonb instance that might have custom configuration.
- jsonRead(Class<T>, InputStream) - Method in class io.avaje.jex.core.json.JacksonJsonService
- jsonRead(Class<T>, InputStream) - Method in class io.avaje.jex.core.json.JsonbJsonService
- jsonRead(Class<T>, InputStream) - Method in interface io.avaje.jex.spi.JsonService
-
**Reads JSON from an InputStream**
- jsonService() - Method in interface io.avaje.jex.JexConfig
-
Return the JsonService.
- jsonService(JsonService) - Method in interface io.avaje.jex.Jex
-
Set the JsonService.
- jsonService(JsonService) - Method in interface io.avaje.jex.JexConfig
-
Set the JsonService to use.
- JsonService - Interface in io.avaje.jex.spi
-
**JsonService**
- jsonStream(Iterator<E>) - Method in interface io.avaje.jex.Context
-
Write the stream as a JSON stream with new line delimiters application/x-json-stream.
- jsonStream(Stream<E>) - Method in interface io.avaje.jex.Context
-
Write the stream as a JSON stream with new line delimiters application/x-json-stream.
- jsonWrite(Object, OutputStream) - Method in class io.avaje.jex.core.json.JacksonJsonService
- jsonWrite(Object, OutputStream) - Method in class io.avaje.jex.core.json.JsonbJsonService
- jsonWrite(Object, OutputStream) - Method in interface io.avaje.jex.spi.JsonService
-
**Writes a Java Object as JSON to an OutputStream**
- jsonWriteStream(Iterator<E>, OutputStream) - Method in interface io.avaje.jex.spi.JsonService
-
Serializes a stream of Java objects into a JSON-Stream format, using the
x-json-streammedia type. - jsonWriteStream(Iterator<T>, OutputStream) - Method in class io.avaje.jex.core.json.JacksonJsonService
- jsonWriteStream(Iterator<T>, OutputStream) - Method in class io.avaje.jex.core.json.JsonbJsonService
L
- lifecycle() - Method in interface io.avaje.jex.Jex
-
Return the application lifecycle support.
- loadResource(String) - Method in interface io.avaje.jex.ClassResourceLoader
-
Return the URL for the given resource or return null if it cannot be found.
- loadResourceAsStream(String) - Method in interface io.avaje.jex.ClassResourceLoader
- location(ResourceLocation) - Method in interface io.avaje.jex.StaticContentConfig
-
Sets the resource location (CLASSPATH or FILE).
- LOOP_DETECTED - Enum constant in enum class io.avaje.jex.http.ErrorCode
M
- matchedPath() - Method in interface io.avaje.jex.Context
-
Return the matched path as a raw expression.
- maxAge() - Method in interface io.avaje.jex.Context.Cookie
-
Return the max age.
- maxAge(Duration) - Method in interface io.avaje.jex.Context.Cookie
-
Set the max age.
- message() - Method in enum class io.avaje.jex.http.ErrorCode
- method() - Method in interface io.avaje.jex.Context
-
Returns the request method.
- METHOD_NOT_ALLOWED - Enum constant in enum class io.avaje.jex.http.ErrorCode
- minSizeForCompression() - Method in class io.avaje.jex.compression.CompressionConfig
- minSizeForCompression(int) - Method in class io.avaje.jex.compression.CompressionConfig
N
- name() - Method in interface io.avaje.jex.Context.Cookie
-
Return the name.
- NETWORK_AUTHENTICATION_REQUIRED - Enum constant in enum class io.avaje.jex.http.ErrorCode
- NOT_EXTENDED - Enum constant in enum class io.avaje.jex.http.ErrorCode
- NOT_FOUND - Enum constant in enum class io.avaje.jex.http.ErrorCode
- NotFoundException - Exception Class in io.avaje.jex.http
-
Thrown when unable to find a route/resource
- NotFoundException(String) - Constructor for exception class io.avaje.jex.http.NotFoundException
O
- of(String, String) - Static method in interface io.avaje.jex.Context.Cookie
-
Return a new cookie given the name and value.
- onShutdown(Runnable) - Method in interface io.avaje.jex.AppLifecycle
-
Register a Runnable to run on shutdown of the server.
- onShutdown(Runnable) - Method in interface io.avaje.jex.Jex.Server
-
Register a function to execute LAST on shutdown after all the normal lifecycle shutdown functions have run.
- onShutdown(Runnable, int) - Method in interface io.avaje.jex.AppLifecycle
-
Register a Runnable to run on shutdown of the server with ordering.
- options(String, ExchangeHandler) - Method in interface io.avaje.jex.Routing
-
Add an OPTIONS handler.
- OPTIONS - Enum constant in enum class io.avaje.jex.Routing.Type
-
HTTP OPTIONS.
- outputStream() - Method in interface io.avaje.jex.spi.SpiContext
-
Return the response outputStream to write content to.
P
- password() - Method in record class io.avaje.jex.security.BasicAuthCredentials
-
Returns the value of the
passwordrecord component. - patch(String, ExchangeHandler) - Method in interface io.avaje.jex.Routing
-
Add a PATCH handler.
- PATCH - Enum constant in enum class io.avaje.jex.Routing.Type
-
HTTP PATCH.
- path() - Method in interface io.avaje.jex.Context.Cookie
-
Return the path.
- path() - Method in interface io.avaje.jex.Context
-
Return the request path.
- path(String) - Method in interface io.avaje.jex.Context.Cookie
-
Set the path.
- path(String, Routing.Group) - Method in interface io.avaje.jex.Routing
-
Add a group of route handlers with a common path prefix.
- pathParam(String) - Method in interface io.avaje.jex.Context
-
Return the path parameter.
- pathParamMap() - Method in interface io.avaje.jex.Context
-
Return all the path parameters as a map.
- performRedirect() - Method in interface io.avaje.jex.spi.SpiContext
-
Perform the redirect as part of Exception handling.
- plugin(JexPlugin) - Method in interface io.avaje.jex.Jex
-
Add Plugin functionality.
- port() - Method in interface io.avaje.jex.Context
-
Return the request port.
- port() - Method in interface io.avaje.jex.Jex.Server
-
Return the port the server is using.
- port() - Method in interface io.avaje.jex.JexConfig
-
Return the port to use.
- port(int) - Method in interface io.avaje.jex.Jex
-
Set the port to use.
- port(int) - Method in interface io.avaje.jex.JexConfig
-
Set the port to use.
- post(String, ExchangeHandler) - Method in interface io.avaje.jex.Routing
-
Add a POST handler.
- POST - Enum constant in enum class io.avaje.jex.Routing.Type
-
Http POST.
- preCompressStaticFiles() - Method in interface io.avaje.jex.JexConfig
-
Return true if static files should be pre compressed.
- preCompressStaticFiles(boolean) - Method in interface io.avaje.jex.JexConfig
-
Set to true to pre compress static files.
- proceed() - Method in interface io.avaje.jex.FilterChain
-
Calls the next filter in the chain, or else the user's exchange handler, if this is the final filter in the chain.
- protocol() - Method in interface io.avaje.jex.Context
-
Return the request protocol.
- put(String, ExchangeHandler) - Method in interface io.avaje.jex.Routing
-
Add a PUT handler.
- PUT - Enum constant in enum class io.avaje.jex.Routing.Type
-
HTTP PUT.
- putMimeTypeMapping(String, String) - Method in interface io.avaje.jex.StaticContentConfig
-
Adds a new MIME type mapping to the configuration.
- putResponseHeader(String, String) - Method in interface io.avaje.jex.StaticContentConfig
-
Adds a new response header to the configuration.
Q
- queryParam(String) - Method in interface io.avaje.jex.Context
-
Return the first query parameter value.
- queryParam(String, String) - Method in interface io.avaje.jex.Context
-
Return the first query parameter value or the default value if it does not exist.
- queryParamMap() - Method in interface io.avaje.jex.Context
-
Return all the query parameters as a map.
- queryParams(String) - Method in interface io.avaje.jex.Context
-
Return all the query parameters for the given parameter name.
- queryString() - Method in interface io.avaje.jex.Context
-
Return the request query string, or null.
R
- redirect(String) - Method in interface io.avaje.jex.Context
-
Redirect to the specified location using 302 status code.
- redirect(String, int) - Method in interface io.avaje.jex.Context
-
Redirect to the location specifying the response status code.
- REDIRECT - Enum constant in enum class io.avaje.jex.http.ErrorCode
- RedirectException - Exception Class in io.avaje.jex.http
-
Thrown when redirecting
- RedirectException(String) - Constructor for exception class io.avaje.jex.http.RedirectException
- register(TemplateRender, String...) - Method in interface io.avaje.jex.Jex
-
Explicitly register a template renderer.
- registerShutdownHook(Runnable) - Method in interface io.avaje.jex.AppLifecycle
-
Register the runnable with the Runtime as a shutdown hook.
- removeCookie(String) - Method in interface io.avaje.jex.Context
-
Remove a cookie by name.
- removeCookie(String, String) - Method in interface io.avaje.jex.Context
-
Remove a cookie by name and path.
- render(Context, String, Map<String, Object>) - Method in interface io.avaje.jex.spi.TemplateRender
-
Render the template and model typically as html to the given context.
- render(String) - Method in interface io.avaje.jex.Context
-
Render a template typically as html.
- render(String, Map<String, Object>) - Method in interface io.avaje.jex.Context
-
Render a template typically as html with the given model.
- renderer(String, TemplateRender) - Method in interface io.avaje.jex.JexConfig
-
Register a template renderer explicitly.
- renderers() - Method in interface io.avaje.jex.JexConfig
-
Return the template renderers registered by extension.
- REQUEST_TIMEOUT - Enum constant in enum class io.avaje.jex.http.ErrorCode
- resource(String) - Method in interface io.avaje.jex.StaticContentConfig
-
Sets the file to serve, or the folder your files are located in.
- resourceLoader(ClassResourceLoader) - Method in interface io.avaje.jex.StaticContentConfig
-
Sets a custom resource loader for loading class/module path resources.
- ResourceLocation - Enum Class in io.avaje.jex
- responseHeader(String) - Method in interface io.avaje.jex.Context
-
Return the response header.
- restart() - Method in interface io.avaje.jex.Jex.Server
- Role - Interface in io.avaje.jex.security
-
Marker interface for roles used in route declarations.
- routeRoles() - Method in interface io.avaje.jex.Context
-
Roles attached to this route
- routing() - Method in interface io.avaje.jex.Jex
-
Return the Routing to configure.
- routing(Routing.HttpService) - Method in interface io.avaje.jex.Jex
-
Add routes and handlers to the routing.
- routing(Collection<Routing.HttpService>) - Method in interface io.avaje.jex.Jex
-
Add many routes and handlers to the routing.
- Routing - Interface in io.avaje.jex
- Routing.Entry - Interface in io.avaje.jex
-
A routing entry.
- Routing.Group - Interface in io.avaje.jex
-
A group of routing entries prefixed by a common path.
- Routing.HttpService - Interface in io.avaje.jex
-
Adds to the Routing.
- Routing.Type - Enum Class in io.avaje.jex
-
The type of route entry.
S
- scheme() - Method in interface io.avaje.jex.Context
-
Return the request scheme.
- secure() - Method in interface io.avaje.jex.Context.Cookie
-
Return the secure attribute of the cookie.
- secure(boolean) - Method in interface io.avaje.jex.Context.Cookie
-
Set the secure attribute of the cookie.
- SERVICE_UNAVAILABLE - Enum constant in enum class io.avaje.jex.http.ErrorCode
- setMode(Routing.Type) - Method in interface io.avaje.jex.spi.SpiContext
-
Set to indicate BEFORE, ExchangeHandler and AFTER modes of the request.
- shutdown() - Method in interface io.avaje.jex.Jex.Server
-
Shutdown the server.
- skipFilePredicate(Predicate<Context>) - Method in interface io.avaje.jex.StaticContentConfig
-
Sets a predicate to filter files based on the request context.
- SpiContext - Interface in io.avaje.jex.spi
-
Extension to Context for processing the request.
- sslContext() - Method in interface io.avaje.jex.JexConfig
-
Return the ssl context if https is enabled.
- sslContext(SSLContext) - Method in interface io.avaje.jex.JexConfig
-
Enable https with the provided SSLContext.
- start() - Static method in interface io.avaje.jex.BootJex
-
Start Jex server using
@Controllerwith avaje-inject, avaje-http, avaje-config. - start() - Method in interface io.avaje.jex.Jex
-
Start the server.
- start(BeanScope) - Static method in interface io.avaje.jex.BootJex
-
Start Jex server using
@Controllerwith avaje-inject, avaje-http, avaje-config. - STARTED - Enum constant in enum class io.avaje.jex.AppLifecycle.Status
- STARTING - Enum constant in enum class io.avaje.jex.AppLifecycle.Status
- StaticContentConfig - Interface in io.avaje.jex
-
Builder for a static resource exchange handler.
- staticResource(StaticContentConfig) - Method in interface io.avaje.jex.Jex
-
Add a static resource route
- staticResource(Consumer<StaticContentConfig>) - Method in interface io.avaje.jex.Jex
-
Add a static resource route using a consumer
- status() - Method in interface io.avaje.jex.AppLifecycle
-
Return the current status.
- status() - Method in interface io.avaje.jex.Context
-
Return the current response status.
- status() - Method in enum class io.avaje.jex.http.ErrorCode
- status(int) - Method in interface io.avaje.jex.Context
-
Set the status code on the response.
- status(AppLifecycle.Status) - Method in interface io.avaje.jex.AppLifecycle
-
Set the current status.
- STOPPED - Enum constant in enum class io.avaje.jex.AppLifecycle.Status
- STOPPING - Enum constant in enum class io.avaje.jex.AppLifecycle.Status
T
- TemplateRender - Interface in io.avaje.jex.spi
-
Template rendering typically of html.
- text(String) - Method in interface io.avaje.jex.Context
-
Write plain text content to the response.
- TEXT_HTML - Static variable in interface io.avaje.jex.spi.SpiContext
- TEXT_HTML_UTF8 - Static variable in interface io.avaje.jex.spi.SpiContext
- TEXT_PLAIN - Static variable in interface io.avaje.jex.spi.SpiContext
- TEXT_PLAIN_UTF8 - Static variable in interface io.avaje.jex.spi.SpiContext
- toString() - Method in interface io.avaje.jex.Context.Cookie
-
Returns content of the cookie as a 'Set-Cookie:' header value specified by RFC6265.
- toString() - Method in record class io.avaje.jex.security.BasicAuthCredentials
-
Returns a string representation of this record class.
- trace(String, ExchangeHandler) - Method in interface io.avaje.jex.Routing
-
Add a TRACE handler.
- TRACE - Enum constant in enum class io.avaje.jex.Routing.Type
-
HTTP TRACE.
U
- UNAUTHORIZED - Enum constant in enum class io.avaje.jex.http.ErrorCode
- url() - Method in interface io.avaje.jex.Context
-
Return the request url.
- userAgent() - Method in interface io.avaje.jex.Context
-
Return the request user agent, or null.
- userName() - Method in record class io.avaje.jex.security.BasicAuthCredentials
-
Returns the value of the
userNamerecord component.
V
- value() - Method in interface io.avaje.jex.Context.Cookie
-
Return the value.
- valueOf(String) - Static method in enum class io.avaje.jex.AppLifecycle.Status
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.avaje.jex.http.ErrorCode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.avaje.jex.ResourceLocation
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.avaje.jex.Routing.Type
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.avaje.jex.AppLifecycle.Status
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.avaje.jex.http.ErrorCode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.avaje.jex.ResourceLocation
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.avaje.jex.Routing.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VARIANT_ALSO_NEGOTIATES - Enum constant in enum class io.avaje.jex.http.ErrorCode
W
- withRoles(Role...) - Method in interface io.avaje.jex.Routing
-
Specify permittedRoles for the last added handler using varargs.
- withRoles(Set<Role>) - Method in interface io.avaje.jex.Routing
-
Specify permittedRoles for the last added handler.
- write(byte[]) - Method in interface io.avaje.jex.Context
-
Write raw bytes to the response.
- write(byte[], int, int) - Method in class io.avaje.jex.compression.CompressedOutputStream
- write(int) - Method in class io.avaje.jex.compression.CompressedOutputStream
- write(InputStream) - Method in interface io.avaje.jex.Context
-
Write raw inputStream to the response.
- write(String) - Method in interface io.avaje.jex.Context
-
Write raw content to the response.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form