- 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 from path in classpath as response body.
- enableSinglePageMode(String, String, Location) - 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.
- enableWebJars() - Method in class io.javalin.Javalin
-
Configure instance to serve WebJars.
- 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
-
- ErrorHandler - Interface in io.javalin.websocket
-
- errorMapper - Variable in class io.javalin.Javalin
-
- event(JavalinEvent, EventListener) - Method in class io.javalin.Javalin
-
Adds a lifecycle event listener.
- EventListener - Interface in io.javalin
-
- eventManager - Variable in class io.javalin.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
-
- exceptionMapper - Variable in class io.javalin.Javalin
-
- Extension - Interface in io.javalin
-
An extension is a modular way of adding functionality to a Javalin instance.
- 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.
- pathMatcher - Variable in class io.javalin.Javalin
-
- port - Variable in class io.javalin.Javalin
-
- 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 - Variable in class io.javalin.Javalin
-
- 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.