Package | Description |
---|---|
org.jooby |
do more, more easily
|
Modifier and Type | Class and Description |
---|---|
class |
Jooby
jooby
|
Modifier and Type | Method and Description |
---|---|
default Router |
Router.err(Class<? extends Throwable> type,
Err.Handler handler)
Setup a custom error handler.The error handler will be executed if the current exception is an
instance of given type type.
|
Router |
Router.err(Err.Handler err)
Setup a route error handler.
|
default Router |
Router.err(int statusCode,
Err.Handler handler)
Setup a route error handler.
|
default Router |
Router.err(Predicate<Status> predicate,
Err.Handler handler)
Setup a route error handler.
|
default Router |
Router.err(Status code,
Err.Handler handler)
Setup a route error handler.
|
Router |
Router.map(Route.Mapper<?> mapper)
Apply the mapper to all the functional routes.
|
Router |
Env.router()
Application router.
|
Router |
Router.use(Jooby app)
Import content from provide application (routes, parsers/renderers, start/stop callbacks, ...
|
Router |
Router.use(String path,
Jooby app)
Import content from provide application (routes, parsers/renderers, start/stop callbacks, ...
|
Modifier and Type | Method and Description |
---|---|
Env |
Env.Builder.build(com.typesafe.config.Config config,
Router router,
Locale locale)
Build a new environment from a
Config object. |
Copyright © 2020. All rights reserved.