Skip navigation links
A B C D E F G H I J M O P R S T W 

A

accessManager(AccessManager) - Method in class io.javalin.Javalin
Sets the access manager for the instance.
AccessManager - Interface in io.javalin.security
The access manager is a way of implementing per-endpoint security management.
addEndpoints() - Method in interface io.javalin.apibuilder.EndpointGroup
 
after(String, Handler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds an AFTER request handler for the specified path to the Javalin instance.
after(Handler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a AFTER request handler for the current path to the Javalin instance.
after(String, Handler) - Method in class io.javalin.Javalin
Adds an AFTER request handler for the specified path to the instance.
after(Handler) - Method in class io.javalin.Javalin
Adds an AFTER request handler for all routes in the instance.
ApiBuilder - Class in io.javalin.apibuilder
Static methods for route declarations in Javalin
ApiBuilder() - Constructor for class io.javalin.apibuilder.ApiBuilder
 

B

before(String, Handler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a BEFORE request handler for the specified path to the Javalin instance.
before(Handler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a BEFORE request handler for the current path to the Javalin instance.
before(String, Handler) - Method in class io.javalin.Javalin
Adds a BEFORE request handler for the specified path to the instance.
before(Handler) - Method in class io.javalin.Javalin
Adds a BEFORE request handler for all routes in the instance.
BinaryMessageHandler - Interface in io.javalin.websocket
 

C

clearStaticJavalin() - Static method in class io.javalin.apibuilder.ApiBuilder
 
CloseHandler - Interface in io.javalin.websocket
 
connect(String, Handler) - Method in class io.javalin.Javalin
Adds a CONNECT request handler for the specified path to the instance.
connect(String, Handler, Set<Role>) - Method in class io.javalin.Javalin
Adds a CONNECT request handler with the given roles for the specified path to the instance.
ConnectHandler - Interface in io.javalin.websocket
 
contextPath(String) - Method in class io.javalin.Javalin
Configure instance to run on specified context path (common prefix).
create() - Static method in class io.javalin.Javalin
Creates an instance of the application for further configuration.
crud(String, CrudHandler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a CrudHandler handler to the specified path to the instance.
crud(String, CrudHandler, Set<Role>) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a CrudHandler handler to the specified path with the given roles to the instance.

D

defaultContentType(String) - Method in class io.javalin.Javalin
Configure instance to use the specified content-type as a default value for all responses.
delete(String, Handler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a DELETE request handler for the specified path to the Javalin instance.
delete(String, Handler, Set<Role>) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a DELETE request handler with the given roles for the specified path to the instance.
delete(Handler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a DELETE request handler for the current path to the Javalin instance.
delete(Handler, Set<Role>) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a DELETE request handler with the given roles for the current path to the instance.
delete(String, Handler) - Method in class io.javalin.Javalin
Adds a DELETE request handler for the specified path to the instance.
delete(String, Handler, Set<Role>) - Method in class io.javalin.Javalin
Adds a DELETE request handler with the given roles for the specified path to the instance.
disableDynamicGzip() - Method in class io.javalin.Javalin
Configure instance to not gzip dynamic responses.
disableRequestCache() - Method in class io.javalin.Javalin
Configure instance to not cache any requests.
disableStartupBanner() - Method in class io.javalin.Javalin
Configure instance to not show banner in logs.
dontIgnoreTrailingSlashes() - Method in class io.javalin.Javalin
Configure instance to treat '/test/' and '/test' as different URLs.

E

enableAutogeneratedEtags() - Method in class io.javalin.Javalin
Configure instance to automatically add ETags for GET requests.
enableCaseSensitiveUrls() - Method in class io.javalin.Javalin
Configure the instance to not use lower-case paths for path matching and parsing.
enableCorsForAllOrigins() - Method in class io.javalin.Javalin
Configure instance to accept cross origin requests for all origins.
enableCorsForOrigin(String...) - Method in class io.javalin.Javalin
Configure instance to accept cross origin requests for specified origins.
enableDebugLogging() - Method in class io.javalin.Javalin
Configure instance to log debug information for each request.
enableRouteOverview(String) - Method in class io.javalin.Javalin
Configure instance to display a visual overview of all its mapped routes on the specified path.
enableRouteOverview(String, Set<Role>) - Method in class io.javalin.Javalin
Configure instance to display a visual overview of all its mapped routes on the specified path with the specified roles The method must be called before Javalin.start().
enableSinglePageMode(String, String) - Method in class io.javalin.Javalin
Any request that would normally result in a 404 for the path and its subpaths instead results in a 200 with the file-content as response body
enableStaticFiles(String) - Method in class io.javalin.Javalin
Configure instance to serve static files from path in classpath.
enableStaticFiles(String, Location) - Method in class io.javalin.Javalin
Configure instance to serve static files from path in the specified location.
EndpointGroup - Interface in io.javalin.apibuilder
 
error(int, ErrorHandler) - Method in class io.javalin.Javalin
Adds an error mapper to the instance.
ErrorHandler - Interface in io.javalin
A handler for use with Javalin.error(int, ErrorHandler).
ErrorHandler - Interface in io.javalin.websocket
 
event(JavalinEvent, EventListener) - Method in class io.javalin.Javalin
Adds a lifecycle event listener.
EventListener - Interface in io.javalin
exception(Class<T>, ExceptionHandler<? super T>) - Method in class io.javalin.Javalin
Adds an exception mapper to the instance.
ExceptionHandler<T extends java.lang.Exception> - Interface in io.javalin

F

FileRenderer - Interface in io.javalin.rendering
Interface for creating renderers to be used with Context.render(java.lang.String, java.util.Map<java.lang.String, ? extends java.lang.Object>).

G

get(String, Handler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a GET request handler for the specified path to the Javalin instance.
get(String, Handler, Set<Role>) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a GET request handler with the given roles for the specified path to the instance.
get(Handler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a GET request handler for the current path to the Javalin instance.
get(Handler, Set<Role>) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a GET request handler with the given roles for the current path to the instance.
get(String, Handler) - Method in class io.javalin.Javalin
Adds a GET request handler for the specified path to the instance.
get(String, Handler, Set<Role>) - Method in class io.javalin.Javalin
Adds a GET request handler with the given roles for the specified path to the instance.
getHandlerMetaInfo() - Method in class io.javalin.Javalin
Gets the list of HandlerMetaInfo-objects

H

handle(Context) - Method in interface io.javalin.ErrorHandler
 
handle(T, Context) - Method in interface io.javalin.ExceptionHandler
 
handle(Context) - Method in interface io.javalin.Handler
 
handle(Context, Float) - Method in interface io.javalin.RequestLogger
 
handle(WsSession, Byte[], int, int) - Method in interface io.javalin.websocket.BinaryMessageHandler
 
handle(WsSession, int, String) - Method in interface io.javalin.websocket.CloseHandler
 
handle(WsSession) - Method in interface io.javalin.websocket.ConnectHandler
 
handle(WsSession, Throwable) - Method in interface io.javalin.websocket.ErrorHandler
 
handle(WsSession, String) - Method in interface io.javalin.websocket.MessageHandler
 
handleEvent() - Method in interface io.javalin.EventListener
 
Handler - Interface in io.javalin
Main interface for endpoint actions.
head(String, Handler) - Method in class io.javalin.Javalin
Adds a HEAD request handler for the specified path to the instance.
head(String, Handler, Set<Role>) - Method in class io.javalin.Javalin
Adds a HEAD request handler with the given roles for the specified path to the instance.

I

io.javalin - package io.javalin
 
io.javalin.apibuilder - package io.javalin.apibuilder
 
io.javalin.rendering - package io.javalin.rendering
 
io.javalin.security - package io.javalin.security
 
io.javalin.websocket - package io.javalin.websocket
 

J

Javalin - Class in io.javalin
 
Javalin() - Constructor for class io.javalin.Javalin
 

M

manage(Handler, Context, Set<Role>) - Method in interface io.javalin.security.AccessManager
 
maxBodySizeForRequestCache(long) - Method in class io.javalin.Javalin
Configure instance to stop caching requests larger than the specified body size.
MessageHandler - Interface in io.javalin.websocket
 

O

onClose(CloseHandler) - Method in class io.javalin.websocket.WsHandler
Add a CloseHandler to the WsHandler.
onConnect(ConnectHandler) - Method in class io.javalin.websocket.WsHandler
Add a ConnectHandler to the WsHandler.
onError(ErrorHandler) - Method in class io.javalin.websocket.WsHandler
Add a errorHandler to the WsHandler.
onMessage(MessageHandler) - Method in class io.javalin.websocket.WsHandler
Add a MessageHandler to the WsHandler.
onMessage(BinaryMessageHandler) - Method in class io.javalin.websocket.WsHandler
Add a BinaryMessageHandler to the WsHandler.
options(String, Handler) - Method in class io.javalin.Javalin
Adds a OPTIONS request handler for the specified path to the instance.
options(String, Handler, Set<Role>) - Method in class io.javalin.Javalin
Adds a OPTIONS request handler with the given roles for the specified path to the instance.

P

patch(String, Handler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a PATCH request handler for the specified path to the Javalin instance.
patch(String, Handler, Set<Role>) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a PATCH request handler with the given roles for the specified path to the instance.
patch(Handler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a PATCH request handler for the current path to the Javalin instance.
patch(Handler, Set<Role>) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a PATCH request handler with the given roles for the current path to the instance.
patch(String, Handler) - Method in class io.javalin.Javalin
Adds a PATCH request handler for the specified path to the instance.
patch(String, Handler, Set<Role>) - Method in class io.javalin.Javalin
Adds a PATCH request handler with the given roles for the specified path to the instance.
path(String, EndpointGroup) - Static method in class io.javalin.apibuilder.ApiBuilder
Prefixes all handlers defined in its scope with the specified path.
port() - Method in class io.javalin.Javalin
Get which port instance is running on Mostly useful if you start the instance with port(0) (random port)
port(int) - Method in class io.javalin.Javalin
Configure instance to run on specified port.
post(String, Handler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a POST request handler for the specified path to the Javalin instance.
post(String, Handler, Set<Role>) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a POST request handler with the given roles for the specified path to the instance.
post(Handler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a POST request handler for the current path to the Javalin instance.
post(Handler, Set<Role>) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a POST request handler with the given roles for the current path to the instance.
post(String, Handler) - Method in class io.javalin.Javalin
Adds a POST request handler for the specified path to the instance.
post(String, Handler, Set<Role>) - Method in class io.javalin.Javalin
Adds a POST request handler with the given roles for the specified path to the instance.
prefer405over404() - Method in class io.javalin.Javalin
Configure the instance to return 405 (Method Not Allowed) instead of 404 (Not Found) whenever a request method doesn't exists but there are handlers for other methods on the same requested path.
put(String, Handler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a PUT request handler for the specified path to the Javalin instance.
put(String, Handler, Set<Role>) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a PUT request handler with the given roles for the specified path to the instance.
put(Handler) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a PUT request handler for the current path to the Javalin instance.
put(Handler, Set<Role>) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a PUT request handler with the given roles for the current path to the instance.
put(String, Handler) - Method in class io.javalin.Javalin
Adds a PUT request handler for the specified path to the instance.
put(String, Handler, Set<Role>) - Method in class io.javalin.Javalin
Adds a PUT request handler with the given roles for the specified path to the instance.

R

render(String, Map<String, Object>) - Method in interface io.javalin.rendering.FileRenderer
 
requestLogger(RequestLogger) - Method in class io.javalin.Javalin
Configure instance use specified request-logger The method must be called before Javalin.start().
RequestLogger - Interface in io.javalin
Interface for logging requests.
Role - Interface in io.javalin.security
Empty interface for roles used in AccessManager.
routes(EndpointGroup) - Method in class io.javalin.Javalin
Creates a temporary static instance in the scope of the endpointGroup.

S

server(Supplier<Server>) - Method in class io.javalin.Javalin
Configure instance to use a custom jetty Server.
setStaticJavalin(Javalin) - Static method in class io.javalin.apibuilder.ApiBuilder
 
start(int) - Method in class io.javalin.Javalin
Synchronously starts the application instance on the specified port.
start() - Method in class io.javalin.Javalin
Synchronously starts the application instance.
stop() - Method in class io.javalin.Javalin
Synchronously stops the application instance.

T

trace(String, Handler) - Method in class io.javalin.Javalin
Adds a TRACE request handler for the specified path to the instance.
trace(String, Handler, Set<Role>) - Method in class io.javalin.Javalin
Adds a TRACE request handler with the given roles for the specified path to the instance.

W

ws(String, Consumer<WsHandler>) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a WebSocket handler on the specified path.
ws(Consumer<WsHandler>) - Static method in class io.javalin.apibuilder.ApiBuilder
Adds a WebSocket handler on the current path.
ws(String, Consumer<WsHandler>) - Method in class io.javalin.Javalin
Adds a WebSocket handler on the specified path.
WsHandler - Class in io.javalin.websocket
 
WsHandler() - Constructor for class io.javalin.websocket.WsHandler
 
A B C D E F G H I J M O P R S T W 
Skip navigation links

Copyright © 2018. All Rights Reserved.