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 |
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.domain(String domain,
Router subrouter)
Enabled routes for specific domain.
|
Router |
Jooby.domain(String domain,
Router subrouter) |
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.mount(Predicate<Context> predicate,
Router router)
Import routes from given router.
|
Router |
Router.mount(Router router)
Import all routes from the given router.
|
Router |
Router.mount(String path,
Router router)
Import all routes from the given router and prefix them with the given path.
|
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.responseHandler(ResponseHandler factory)
Add a response handler factory.
|
Router |
Router.setContextAsService(boolean contextAsService)
If enabled, allows to retrieve the
Context object associated with the current
request via the service registry while the request is being processed. |
Router |
Router.setContextPath(String contextPath)
Set application context path.
|
Router |
Router.setCurrentUser(Function<Context,Object> provider)
Provides a way to set the current user from a
Context . |
Router |
Router.setDefaultWorker(Executor worker)
Set the default worker thread pool.
|
Router |
Router.setFlashCookie(Cookie flashCookie)
Sets a cookie used as a template to generate the flash cookie, allowing
to customize the cookie name and other cookie parameters.
|
Router |
Router.setFlashCookie(String name)
Deprecated.
Use
setFlashCookie(Cookie) instead. |
Router |
Router.setHiddenMethod(Function<Context,Optional<String>> provider)
Provides a way to override the current HTTP method using lookup strategy.
|
Router |
Router.setHiddenMethod(String parameterName)
Provides a way to override the current HTTP method.
|
Router |
Jooby.setLocales(List<Locale> locales)
Sets the supported locales.
|
Router |
Jooby.setLocales(Locale... locales)
Sets the supported locales.
|
Router |
Router.setRouterOptions(RouterOption... options)
Set router options.
|
Router |
Router.setSessionStore(SessionStore store)
Set session store.
|
Router |
Router.setTrustProxy(boolean trustProxy)
When true handles X-Forwarded-* headers by updating the values on the current context to
match what was sent in the header(s).
|
Router |
Router.setWorker(Executor worker)
Set a worker thread pool.
|
default Router |
Router.use(Predicate<Context> predicate,
Router router)
Deprecated.
|
default Router |
Router.use(Router router)
Deprecated.
Use
mount(Router) |
default Router |
Router.use(String path,
Router router)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Router |
Router.domain(String domain,
Router subrouter)
Enabled routes for specific domain.
|
Router |
Jooby.domain(String domain,
Router subrouter) |
Router |
Router.mount(Predicate<Context> predicate,
Router router)
Import routes from given router.
|
Jooby |
Jooby.mount(Predicate<Context> predicate,
Router subrouter) |
Router |
Router.mount(Router router)
Import all routes from the given router.
|
Jooby |
Jooby.mount(Router router) |
Router |
Router.mount(String path,
Router router)
Import all routes from the given router and prefix them with the given path.
|
Jooby |
Jooby.mount(String path,
Router router) |
default Router |
Router.use(Predicate<Context> predicate,
Router router)
Deprecated.
|
default Router |
Router.use(Router router)
Deprecated.
Use
mount(Router) |
default Router |
Router.use(String path,
Router router)
Deprecated.
|
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.domain(String domain,
Router subrouter) |
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.mount(Predicate<Context> predicate,
Router subrouter) |
Router |
RouterImpl.mount(Router router) |
Router |
RouterImpl.mount(String path,
Router router) |
Router |
RouterImpl.mvc(Class router) |
<T> Router |
RouterImpl.mvc(Class<T> router,
javax.inject.Provider<T> provider) |
Router |
RouterImpl.mvc(Object router) |
Router |
RouterImpl.responseHandler(ResponseHandler handler) |
Router |
RouterImpl.setContextAsService(boolean contextAsService) |
Router |
RouterImpl.setContextPath(String basePath) |
Router |
RouterImpl.setCurrentUser(Function<Context,Object> provider) |
Router |
RouterImpl.setDefaultWorker(Executor worker) |
Router |
RouterImpl.setFlashCookie(Cookie flashCookie) |
Router |
RouterImpl.setFlashCookie(String name) |
Router |
RouterImpl.setHiddenMethod(Function<Context,Optional<String>> provider) |
Router |
RouterImpl.setHiddenMethod(String parameterName) |
Router |
RouterImpl.setRouterOptions(RouterOption... options) |
Router |
RouterImpl.setSessionStore(SessionStore sessionStore) |
Router |
RouterImpl.setTrustProxy(boolean trustProxy) |
Router |
RouterImpl.setWorker(Executor worker) |
Router |
RouterImpl.start(Jooby app) |
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.domain(String domain,
Router subrouter) |
Router |
RouterImpl.mount(Predicate<Context> predicate,
Router subrouter) |
Router |
RouterImpl.mount(Router router) |
Router |
RouterImpl.mount(String path,
Router router) |
Copyright © 2022. All rights reserved.