Index

A B C D E F G H I J M N O P Q R S T U V W 
All Classes|All Packages

A

accessManager - Variable in class io.avaje.jex.Jex.Inner
 
accessManager(AccessManager) - Method in class io.avaje.jex.Jex
Set the AccessManager.
AccessManager - Interface in io.avaje.jex
Provide access check for routes that have permitted roles assigned to them.
add(ErrorHandling) - Method in interface io.avaje.jex.ErrorHandling.Service
Add to the error handling.
add(Routing) - Method in interface io.avaje.jex.Routing.Service
Add to the routing.
add(Routing.Service) - Method in interface io.avaje.jex.Routing
Add the routes provided by the Routing Service.
addAll(Collection<Routing.Service>) - Method in interface io.avaje.jex.Routing
Add all the routes provided by the Routing Services.
addClasspath(String) - Method in interface io.avaje.jex.StaticFileConfig
 
addClasspath(String, String) - Method in interface io.avaje.jex.StaticFileConfig
 
addExternal(String) - Method in interface io.avaje.jex.StaticFileConfig
 
addExternal(String, String) - Method in interface io.avaje.jex.StaticFileConfig
 
addGroup() - Method in interface io.avaje.jex.Routing.Group
Add the group of entries with a common prefix.
after(Handler) - Method in interface io.avaje.jex.Routing
Add an after filter for all requests.
after(String, Handler) - Method in interface io.avaje.jex.Routing
Add a after filter for the given path.
after(String, SpiContext) - Method in interface io.avaje.jex.spi.SpiRoutes
Execute all appropriate after filters for the given request URI.
AFTER - io.avaje.jex.Routing.Type
After filter.
all() - Method in interface io.avaje.jex.Routing
Return all the registered handlers.
APPLICATION_JSON - Static variable in interface io.avaje.jex.spi.SpiContext
 
APPLICATION_X_JSON_STREAM - Static variable in interface io.avaje.jex.spi.SpiContext
 
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.
attributeMap() - Method in interface io.avaje.jex.Context
Gets a map with all the attribute keys and values on the request.

B

BadGatewayResponse - Exception in io.avaje.jex.http
 
BadGatewayResponse() - Constructor for exception io.avaje.jex.http.BadGatewayResponse
 
BadGatewayResponse(String) - Constructor for exception io.avaje.jex.http.BadGatewayResponse
 
BadRequestResponse - Exception in io.avaje.jex.http
 
BadRequestResponse() - Constructor for exception io.avaje.jex.http.BadRequestResponse
 
BadRequestResponse(String) - Constructor for exception io.avaje.jex.http.BadRequestResponse
 
before(Handler) - Method in interface io.avaje.jex.Routing
Add a before filter for all requests.
before(String, Handler) - Method in interface io.avaje.jex.Routing
Add a before filter for the given path.
before(String, SpiContext) - Method in interface io.avaje.jex.spi.SpiRoutes
Execute all appropriate before filters for the given request URI.
BEFORE - io.avaje.jex.Routing.Type
Before filter.
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.

C

CLASSPATH - io.avaje.jex.StaticFileSource.Location
 
configure(Consumer<Jex>) - Method in class io.avaje.jex.Jex
Configure via a lambda taking the jex instance.
ConflictResponse - Exception in io.avaje.jex.http
 
ConflictResponse() - Constructor for exception io.avaje.jex.http.ConflictResponse
 
ConflictResponse(String) - Constructor for exception io.avaje.jex.http.ConflictResponse
 
content() - Method in interface io.avaje.jex.UploadedFile
Return the file content as InputStream.
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() - Method in interface io.avaje.jex.UploadedFile
Return the content type for this part.
contentType(String) - Method in interface io.avaje.jex.Context
Set the response content type.
context(String) - Method in class io.avaje.jex.Jex
Set the context path.
Context - Interface in io.avaje.jex
Provides access to functions for handling the request and response.
contextHandler - Variable in class io.avaje.jex.Jex.Jetty
 
contextPath - Variable in class io.avaje.jex.Jex.Inner
 
contextPath() - Method in interface io.avaje.jex.Context
Return the request context path.
cookie(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 class io.avaje.jex.Jex
Create Jex to configure with routes etc before starting.

D

defaultExtensions() - Method in interface io.avaje.jex.TemplateRender
Return the extensions this template renders for by default.
delete() - Method in interface io.avaje.jex.UploadedFile
 
delete(Handler) - Method in interface io.avaje.jex.Routing
Add a DELETE handler for "/".
delete(String, Handler) - Method in interface io.avaje.jex.Routing
Add a DELETE handler.
DELETE - io.avaje.jex.Routing.Type
HTTP DELETE.

E

equals(Object) - Method in class io.avaje.jex.StaticFileSource
 
error(int, Handler) - Method in interface io.avaje.jex.ErrorHandling
Adds an error mapper to the instance.
error(int, String, Handler) - Method in interface io.avaje.jex.ErrorHandling
Adds an error mapper for the specified content-type to the instance.
errorHandling() - Method in class io.avaje.jex.Jex
Return the Error handler to add error handlers.
errorHandling(ErrorHandling.Service) - Method in class io.avaje.jex.Jex
Configure error handlers.
ErrorHandling - Interface in io.avaje.jex
 
ErrorHandling.Service - Interface in io.avaje.jex
Adds to the Routing.
exception(Class<T>, ExceptionHandler<T>) - Method in interface io.avaje.jex.ErrorHandling
Register an exception handler for the given exception type.
exception(Class<T>, ExceptionHandler<T>) - Method in class io.avaje.jex.Jex
Add an exception handler for the given exception type.
ExceptionHandler<T extends Exception> - Interface in io.avaje.jex
 
EXTERNAL - io.avaje.jex.StaticFileSource.Location
 

F

fileName() - Method in interface io.avaje.jex.UploadedFile
Return the submitted file name.
find(Class<T>) - Method in interface io.avaje.jex.ErrorHandling
Return a registered exception handler given the exception type or null if one is not found.
ForbiddenResponse - Exception in io.avaje.jex.http
 
ForbiddenResponse() - Constructor for exception io.avaje.jex.http.ForbiddenResponse
 
ForbiddenResponse(String) - Constructor for exception io.avaje.jex.http.ForbiddenResponse
 
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.
fullUrl() - Method in interface io.avaje.jex.Context
Return the full request url, including query string (if present)

G

GatewayTimeoutResponse - Exception in io.avaje.jex.http
 
GatewayTimeoutResponse() - Constructor for exception io.avaje.jex.http.GatewayTimeoutResponse
 
GatewayTimeoutResponse(String) - Constructor for exception io.avaje.jex.http.GatewayTimeoutResponse
 
get(Handler) - Method in interface io.avaje.jex.Routing
Add a GET handler for "/".
get(String, Handler) - Method in interface io.avaje.jex.Routing
Add a GET handler.
GET - io.avaje.jex.Routing.Type
Http GET.
getDetails() - Method in exception io.avaje.jex.http.HttpResponseException
 
getHandler() - Method in interface io.avaje.jex.Routing.Entry
Return the handler.
getLocation() - Method in class io.avaje.jex.StaticFileSource
 
getPath() - Method in interface io.avaje.jex.Routing.Entry
Return the full path of the entry.
getPath() - Method in class io.avaje.jex.StaticFileSource
 
getRoles() - Method in interface io.avaje.jex.Routing.Entry
Return the roles.
getSegmentCount() - Method in interface io.avaje.jex.spi.SpiRoutes.Entry
Return the segment count.
getSources() - Method in interface io.avaje.jex.StaticFileConfig
 
getStatus() - Method in exception io.avaje.jex.http.HttpResponseException
 
getType() - Method in interface io.avaje.jex.Routing.Entry
Return the type of entry.
getUrlPathPrefix() - Method in class io.avaje.jex.StaticFileSource
 
GoneResponse - Exception in io.avaje.jex.http
 
GoneResponse() - Constructor for exception io.avaje.jex.http.GoneResponse
 
GoneResponse(String) - Constructor for exception io.avaje.jex.http.GoneResponse
 

H

handle(Context) - Method in interface io.avaje.jex.Handler
 
handle(Context) - Method in interface io.avaje.jex.spi.SpiRoutes.Entry
Handle the request.
handle(T, Context) - Method in interface io.avaje.jex.ExceptionHandler
 
Handler - Interface in io.avaje.jex
 
hashCode() - Method in class io.avaje.jex.StaticFileSource
 
head(Handler) - Method in interface io.avaje.jex.Routing
Add a HEAD handler for "/".
head(String, Handler) - Method in interface io.avaje.jex.Routing
Add a HEAD handler.
HEAD - 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.
host - Variable in class io.avaje.jex.Jex.Inner
 
host() - Method in interface io.avaje.jex.Context
Returns the request host, or null.
html(String) - Method in interface io.avaje.jex.Context
Write html content to the response.
HttpResponseException - Exception in io.avaje.jex.http
 
HttpResponseException(int, String) - Constructor for exception io.avaje.jex.http.HttpResponseException
 
HttpResponseException(int, String, Map<String, String>) - Constructor for exception io.avaje.jex.http.HttpResponseException
 

I

ignoreTrailingSlashes - Variable in class io.avaje.jex.Jex.Inner
 
includesWildcard() - Method in interface io.avaje.jex.spi.SpiRoutes.Entry
Return true if one of the segments is the wildcard match.
inner - Variable in class io.avaje.jex.Jex
 
Inner() - Constructor for class io.avaje.jex.Jex.Inner
 
inputStream() - Method in interface io.avaje.jex.spi.SpiContext
Return the request inputStream to read content from.
InternalServerErrorResponse - Exception in io.avaje.jex.http
 
InternalServerErrorResponse() - Constructor for exception io.avaje.jex.http.InternalServerErrorResponse
 
InternalServerErrorResponse(String) - Constructor for exception io.avaje.jex.http.InternalServerErrorResponse
 
io.avaje.jex - module io.avaje.jex
 
io.avaje.jex - package io.avaje.jex
 
io.avaje.jex.http - package io.avaje.jex.http
 
io.avaje.jex.spi - package io.avaje.jex.spi
 
ip() - Method in interface io.avaje.jex.Context
Returns the request IP.
isMultipart() - Method in interface io.avaje.jex.Context
Returns true if request is multipart.
isMultipartFormData() - Method in interface io.avaje.jex.Context
Returns true if request is multipart/form-data.

J

jetty - Variable in class io.avaje.jex.Jex
 
Jetty() - Constructor for class io.avaje.jex.Jex.Jetty
 
Jex - Class in io.avaje.jex
Create configure and start Jex.
Jex.Inner - Class in io.avaje.jex
 
Jex.Jetty - Class in io.avaje.jex
Jetty specific configuration options.
Jex.Server - Interface in io.avaje.jex
The running server.
json(Object) - Method in interface io.avaje.jex.Context
Set the response body as JSON for the given bean.
jsonRead(Class<T>, SpiContext) - Method in interface io.avaje.jex.spi.JsonService
Read the request body as a bean and return the bean.
jsonService - Variable in class io.avaje.jex.Jex.Inner
 
jsonService(JsonService) - Method in class io.avaje.jex.Jex
Set the JsonService.
JsonService - Interface in io.avaje.jex.spi
Service used to convert request/response bodies to beans.
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, SpiContext) - Method in interface io.avaje.jex.spi.JsonService
Write the bean as JSON response content.
jsonWriteStream(Iterator<E>, SpiContext) - Method in interface io.avaje.jex.spi.JsonService
Write the beans as x-json-stream JSON with new line delimiter.

M

manage(Handler, Context, Set<Role>) - Method in interface io.avaje.jex.AccessManager
Check that the current user has one of the required roles.
match(Routing.Type, String) - Method in interface io.avaje.jex.spi.SpiRoutes
Find the matching handler entry given the type and request URI.
matchedPath() - Method in interface io.avaje.jex.Context
Return the matched path as a raw expression.
matches(String) - Method in interface io.avaje.jex.spi.SpiRoutes.Entry
Return true if it matches the request URI.
matchPath() - Method in interface io.avaje.jex.spi.SpiRoutes.Entry
Return the raw path expression.
maxThreads - Variable in class io.avaje.jex.Jex.Jetty
Set maxThreads when using default QueuedThreadPool.
method() - Method in interface io.avaje.jex.Context
Returns the request method.
MethodNotAllowedResponse - Exception in io.avaje.jex.http
 
MethodNotAllowedResponse(String) - Constructor for exception io.avaje.jex.http.MethodNotAllowedResponse
 
MethodNotAllowedResponse(String, Map<String, String>) - Constructor for exception io.avaje.jex.http.MethodNotAllowedResponse
 
multipartConfig - Variable in class io.avaje.jex.Jex.Inner
 
multipartFileThreshold - Variable in class io.avaje.jex.Jex.Inner
 

N

name() - Method in interface io.avaje.jex.UploadedFile
Return the name of the part.
NotFoundResponse - Exception in io.avaje.jex.http
 
NotFoundResponse() - Constructor for exception io.avaje.jex.http.NotFoundResponse
 
NotFoundResponse(String) - Constructor for exception io.avaje.jex.http.NotFoundResponse
 

O

outputStream() - Method in interface io.avaje.jex.spi.SpiContext
Return the response outputStream to write content to.

P

Params(Map<String, String>, List<String>) - Constructor for class io.avaje.jex.spi.SpiRoutes.Params
Create with path parameters and splat/wildcard parameters.
patch(Handler) - Method in interface io.avaje.jex.Routing
Add a PATCH handler for "/".
patch(String, Handler) - Method in interface io.avaje.jex.Routing
Add a PATCH handler.
PATCH - io.avaje.jex.Routing.Type
HTTP PATCH.
path() - Method in interface io.avaje.jex.Context
Return the request 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.
pathParams - Variable in class io.avaje.jex.spi.SpiRoutes.Params
The path parameters.
pathParams(String) - Method in interface io.avaje.jex.spi.SpiRoutes.Entry
Return the path parameter map given the uri.
port - Variable in class io.avaje.jex.Jex.Inner
 
port() - Method in interface io.avaje.jex.Context
Return the request port.
port(int) - Method in class io.avaje.jex.Jex
Set the port to use.
post(Handler) - Method in interface io.avaje.jex.Routing
Add a POST handler for "/".
post(String, Handler) - Method in interface io.avaje.jex.Routing
Add a POST handler.
POST - io.avaje.jex.Routing.Type
Http POST.
preCompressStaticFiles - Variable in class io.avaje.jex.Jex.Inner
 
prefer405 - Variable in class io.avaje.jex.Jex.Inner
 
protocol() - Method in interface io.avaje.jex.Context
Return the request protocol.
put(Handler) - Method in interface io.avaje.jex.Routing
Add a PUT handler for "/".
put(String, Handler) - Method in interface io.avaje.jex.Routing
Add a PUT handler.
PUT - io.avaje.jex.Routing.Type
HTTP PUT.

Q

queryParam(String) - Method in interface io.avaje.jex.Context
Return the first query parameter value.
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.
RedirectResponse - Exception in io.avaje.jex.http
 
RedirectResponse() - Constructor for exception io.avaje.jex.http.RedirectResponse
Redirect with 302 http status code.
RedirectResponse(int) - Constructor for exception io.avaje.jex.http.RedirectResponse
Redirect with the given http status code.
RedirectResponse(String) - Constructor for exception io.avaje.jex.http.RedirectResponse
Redirect with the given message.
register(TemplateRender, String...) - Method in class io.avaje.jex.Jex
Explicitly register a template renderer.
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.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.
renderers - Variable in class io.avaje.jex.Jex.Inner
 
req() - Method in interface io.avaje.jex.Context
Return the underlying http servlet request.
res() - Method in interface io.avaje.jex.Context
Return the underlying http servlet response.
Role - Interface in io.avaje.jex
 
routing() - Method in class io.avaje.jex.Jex
Return the Routing to configure.
routing(Routing.Service) - Method in class io.avaje.jex.Jex
Add routes and handlers to the routing.
routing(Collection<Routing.Service>) - Method in class 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.Service - Interface in io.avaje.jex
Adds to the Routing.
Routing.Type - Enum in io.avaje.jex
The type of route entry.

S

scheme() - Method in interface io.avaje.jex.Context
Return the request scheme.
security - Variable in class io.avaje.jex.Jex.Jetty
 
server - Variable in class io.avaje.jex.Jex.Jetty
 
ServiceUnavailableResponse - Exception in io.avaje.jex.http
 
ServiceUnavailableResponse() - Constructor for exception io.avaje.jex.http.ServiceUnavailableResponse
 
ServiceUnavailableResponse(String) - Constructor for exception io.avaje.jex.http.ServiceUnavailableResponse
 
sessionAttribute(String) - Method in interface io.avaje.jex.Context
Gets specified attribute from the user session, or null.
sessionAttribute(String, Object) - Method in interface io.avaje.jex.Context
Sets an attribute for the user session.
sessionAttributeMap() - Method in interface io.avaje.jex.Context
Return a map of all the attributes in the user session.
sessionHandler - Variable in class io.avaje.jex.Jex.Jetty
 
sessions - Variable in class io.avaje.jex.Jex.Jetty
 
setMode(Routing.Type) - Method in interface io.avaje.jex.spi.SpiContext
Set to indicate BEFORE, Handler and AFTER modes of the request.
shutdown() - Method in interface io.avaje.jex.Jex.Server
Shutdown the server.
size() - Method in interface io.avaje.jex.UploadedFile
Return the size.
SpiContext - Interface in io.avaje.jex.spi
Extension to Context for processing the request.
SpiRoutes - Interface in io.avaje.jex.spi
Route matching and filter handling.
SpiRoutes.Entry - Interface in io.avaje.jex.spi
A route entry.
SpiRoutes.Params - Class in io.avaje.jex.spi
Path and splat/wildcard parameters.
SpiStartServer - Interface in io.avaje.jex.spi
Start the server.
splat(int) - Method in interface io.avaje.jex.Context
Return the splat path value for the given position.
splats - Variable in class io.avaje.jex.spi.SpiRoutes.Params
The path splat parameters.
splats() - Method in interface io.avaje.jex.Context
Return all the splat values.
start() - Method in class io.avaje.jex.Jex
Start the server.
start(Jex) - Method in interface io.avaje.jex.spi.SpiStartServer
Return the started server.
StaticFileConfig - Interface in io.avaje.jex
 
staticFiles() - Method in class io.avaje.jex.Jex
Return the static file configuration.
StaticFileSource - Class in io.avaje.jex
 
StaticFileSource(String, String, StaticFileSource.Location) - Constructor for class io.avaje.jex.StaticFileSource
 
StaticFileSource.Location - Enum in io.avaje.jex
 
status() - Method in interface io.avaje.jex.Context
Return the current response status.
status(int) - Method in interface io.avaje.jex.Context
Set the status code on the response.

T

TemplateRender - Interface in io.avaje.jex
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_PLAIN - Static variable in interface io.avaje.jex.spi.SpiContext
 
toString() - Method in class io.avaje.jex.StaticFileSource
 
trace(Handler) - Method in interface io.avaje.jex.Routing
Add a TRACE handler for "/".
trace(String, Handler) - Method in interface io.avaje.jex.Routing
Add a TRACE handler.
TRACE - io.avaje.jex.Routing.Type
HTTP TRACE.

U

UnauthorizedResponse - Exception in io.avaje.jex.http
 
UnauthorizedResponse() - Constructor for exception io.avaje.jex.http.UnauthorizedResponse
 
UnauthorizedResponse(String) - Constructor for exception io.avaje.jex.http.UnauthorizedResponse
 
uploadedFile(String) - Method in interface io.avaje.jex.Context
Return the first UploadedFile for the specified name or null.
UploadedFile - Interface in io.avaje.jex
An uploaded file.
uploadedFiles() - Method in interface io.avaje.jex.Context
Return a list of all UploadedFiles.
uploadedFiles(String) - Method in interface io.avaje.jex.Context
Return a list of UploadedFiles for the specified name, or empty list.
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.

V

valueOf(String) - Static method in enum io.avaje.jex.Routing.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.avaje.jex.StaticFileSource.Location
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.avaje.jex.Routing.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.avaje.jex.StaticFileSource.Location
Returns an array containing the constants of this enum type, in the order they are declared.
virtualThreads - Variable in class io.avaje.jex.Jex.Jetty
Set true to use Loom virtual threads for ThreadPool.

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(String) - Method in interface io.avaje.jex.Context
Write raw content to the response.
A B C D E F G H I J M N O P Q R S T U V W 
All Classes|All Packages