Package | Description |
---|---|
io.jooby | |
io.jooby.internal |
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.converter(BeanConverter converter)
Add a custom bean value converter.
|
Router |
Jooby.converter(BeanConverter converter) |
Router |
Router.converter(ValueConverter converter)
Add a custom string value converter.
|
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 |
Jooby.getRouter()
The underlying router.
|
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(RouterOption... options)
Set router options.
|
Router |
Router.setSessionStore(SessionStore store)
Set session store.
|
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) |
Modifier and Type | Class and Description |
---|---|
class |
RouterImpl |
Modifier and Type | Method and Description |
---|---|
Router |
RouterImpl.after(Route.After after) |
Router |
RouterImpl.before(Route.Before before) |
Router |
RouterImpl.converter(BeanConverter converter) |
Router |
RouterImpl.converter(ValueConverter converter) |
Router |
RouterImpl.decoder(MediaType contentType,
MessageDecoder decoder) |
Router |
RouterImpl.decorator(Route.Decorator decorator) |
Router |
RouterImpl.dispatch(Executor executor,
Runnable action) |
Router |
RouterImpl.dispatch(Runnable body) |
Router |
RouterImpl.encoder(MediaType contentType,
MessageEncoder encoder) |
Router |
RouterImpl.encoder(MessageEncoder encoder) |
Router |
RouterImpl.error(ErrorHandler handler) |
Router |
RouterImpl.errorCode(Class<? extends Throwable> type,
StatusCode statusCode) |
Router |
RouterImpl.executor(String name,
Executor executor) |
Router |
RouterImpl.mvc(Class router) |
<T> Router |
RouterImpl.mvc(Class<T> router,
javax.inject.Provider<T> provider) |
Router |
RouterImpl.mvc(Object router) |
Router |
RouterImpl.path(String pattern,
Runnable action) |
Router |
RouterImpl.responseHandler(ResponseHandler handler) |
Router |
RouterImpl.route(Runnable action) |
Router |
RouterImpl.setContextPath(String basePath) |
Router |
RouterImpl.setDefaultWorker(Executor worker) |
Router |
RouterImpl.setFlashCookie(String name) |
Router |
RouterImpl.setRouterOptions(RouterOption... options) |
Router |
RouterImpl.setSessionStore(SessionStore sessionStore) |
Router |
RouterImpl.setWorker(Executor worker) |
Router |
RouterImpl.start(Jooby owner) |
Router |
RouterImpl.use(Predicate<Context> predicate,
Router router) |
Router |
RouterImpl.use(Router router) |
Router |
RouterImpl.use(String path,
Router router) |
Modifier and Type | Method and Description |
---|---|
static <T> T |
ValueConverters.convert(ValueNode value,
Class type,
Router router) |
static <T> T |
ValueConverters.convert(ValueNode value,
Type type,
Router router) |
Router |
RouterImpl.use(Predicate<Context> predicate,
Router router) |
Router |
RouterImpl.use(Router router) |
Router |
RouterImpl.use(String path,
Router router) |
Copyright © 2020. All rights reserved.