Package | Description |
---|---|
io.jooby |
Modifier and Type | Class and Description |
---|---|
class |
Jooby
Welcome to Jooby!
|
Modifier and Type | Method and Description |
---|---|
Router |
Router.after(Route.After after)
Add an after route decorator to the route pipeline.
|
default Router |
Router.attribute(String key,
Object value)
Set an application attribute.
|
Router |
Router.before(Route.Before before)
Add a before route decorator to the route pipeline.
|
Router |
Router.decoder(MediaType contentType,
MessageDecoder decoder)
Register a decoder for the given content type.
|
Router |
Router.decorator(Route.Decorator decorator)
Add a route decorator to the route pipeline.
|
Router |
Router.dispatch(Executor executor,
Runnable body)
Dispatch route pipeline to the given executor.
|
Router |
Router.dispatch(Runnable body)
Dispatch route pipeline to the
getWorker() worker thread pool. |
Router |
Router.encoder(MediaType contentType,
MessageEncoder encoder)
Register a route response encoder.
|
Router |
Router.encoder(MessageEncoder encoder)
Register a route response encoder.
|
default Router |
Router.error(Class<? extends Throwable> type,
ErrorHandler handler)
Add a custom error handler that matches the given exception type.
|
Router |
Router.error(ErrorHandler handler)
Add a custom error handler.
|
default Router |
Router.error(Predicate<StatusCode> predicate,
ErrorHandler handler)
Add a custom error handler that matches the given predicate.
|
default Router |
Router.error(StatusCode statusCode,
ErrorHandler handler)
Add a custom error handler that matches the given status code.
|
Router |
Router.errorCode(Class<? extends Throwable> type,
StatusCode statusCode)
Map an exception type to a status code.
|
Router |
Router.executor(String name,
Executor executor)
Put an executor into the application registry.
|
Router |
ForwardingContext.getRouter() |
Router |
Context.getRouter()
Get the HTTP router (usually this represent an instance of
Jooby . |
Router |
Router.mvc(Class router)
Import all route method from the given controller class.
|
<T> Router |
Router.mvc(Class<T> router,
javax.inject.Provider<T> provider)
Import all route method from the given controller class.
|
Router |
Router.mvc(Object router)
Import all route methods from given controller instance.
|
Router |
Router.path(String pattern,
Runnable body)
Group one or more routes under a common path prefix.
|
Router |
Router.responseHandler(ResponseHandler factory)
Add a response handler factory.
|
Router |
Router.route(Runnable body)
Group one or more routes.
|
Router |
Router.setContextPath(String contextPath)
Set application context path.
|
Router |
Router.setDefaultWorker(Executor worker)
Set the default worker thread pool.
|
Router |
Router.setFlashCookie(String name)
Set flash cookie name.
|
Router |
Router.setRouterOptions(RouterOptions options)
Set router options.
|
Router |
Router.setSessionOptions(SessionOptions options)
Set session options.
|
Router |
Router.setWorker(Executor worker)
Set a worker thread pool.
|
Router |
Router.use(Predicate<Context> predicate,
Router router)
Import routes from given router.
|
Router |
Router.use(Router router)
Import all routes from the given router.
|
Router |
Router.use(String path,
Router router)
Import all routes from the given router and prefix them with the given path.
|
Modifier and Type | Method and Description |
---|---|
Router |
Router.use(Predicate<Context> predicate,
Router router)
Import routes from given router.
|
Jooby |
Jooby.use(Predicate<Context> predicate,
Router router) |
Router |
Router.use(Router router)
Import all routes from the given router.
|
Jooby |
Jooby.use(Router router) |
Router |
Router.use(String path,
Router router)
Import all routes from the given router and prefix them with the given path.
|
Jooby |
Jooby.use(String path,
Router router) |
Copyright © 2019. All rights reserved.