Package | Description |
---|---|
io.jooby |
Modifier and Type | Method and Description |
---|---|
Jooby |
Jooby.after(Route.After after) |
Jooby |
Jooby.attribute(String key,
Object value) |
Jooby |
Jooby.before(Route.Before before) |
Jooby |
Jooby.decorator(Route.Decorator decorator) |
Jooby |
Jooby.dispatch(Executor executor,
Runnable action) |
Jooby |
Jooby.dispatch(Runnable body) |
Jooby |
Jooby.error(ErrorHandler handler) |
Jooby |
Jooby.errorCode(Class<? extends Throwable> type,
StatusCode statusCode) |
Jooby |
Jooby.install(Extension extension)
Install extension module.
|
Jooby |
Jooby.mvc(Class router) |
<T> Jooby |
Jooby.mvc(Class<T> router,
javax.inject.Provider<T> provider) |
Jooby |
Jooby.mvc(Object router) |
Jooby |
Jooby.onStart(Throwing.Runnable body)
Start event is fire once all components has been initialized, for example router and web-server
are up and running, extension installed, etc...
|
Jooby |
Jooby.onStop(AutoCloseable body)
Stop event is fire at application shutdown time.
|
Jooby |
Jooby.parser(MediaType contentType,
Parser parser) |
Jooby |
Jooby.path(String pattern,
Runnable action) |
Jooby |
Jooby.ready(Server server)
Callback method that indicates application was successfully started it and it is ready
listening for connections.
|
Jooby |
Jooby.registry(Registry registry)
Set application registry.
|
Jooby |
Jooby.renderer(MediaType contentType,
Renderer renderer) |
Jooby |
Jooby.renderer(Renderer renderer) |
<R> Jooby |
Jooby.resource(ResourceKey<R> key,
R resource) |
Jooby |
Jooby.responseHandler(ResponseHandler handler) |
Jooby |
Jooby.route(Runnable action) |
Jooby |
Jooby.setContextPath(String basePath) |
Jooby |
Jooby.setDefaultWorker(Executor worker) |
Jooby |
Jooby.setEnvironment(Environment environment)
Set application environment.
|
Jooby |
Jooby.setExecutionMode(ExecutionMode mode)
Set application execution mode.
|
Jooby |
Jooby.setRouterOptions(RouterOptions options) |
Jooby |
Jooby.setServerOptions(ServerOptions serverOptions)
Set server options.
|
Jooby |
Jooby.setTmpdir(Path tmpdir)
Set application temporary directory.
|
Jooby |
Jooby.setWorker(Executor worker) |
Jooby |
Jooby.start(Server server)
Call back method that indicates application was deploy it in the given server.
|
Jooby |
Jooby.stop()
Stop application, fire the stop event to cleanup resources.
|
Jooby |
Jooby.use(Predicate<Context> predicate,
Router router) |
Jooby |
Jooby.use(Router router) |
Jooby |
Jooby.use(String path,
Router router) |
Modifier and Type | Method and Description |
---|---|
void |
Extension.install(Jooby application)
Install, configure additional features to a Jooby application.
|
Server |
Server.start(Jooby application)
Start an application.
|
Modifier and Type | Method and Description |
---|---|
static void |
Jooby.runApp(String[] args,
Class<? extends Jooby> applicationType)
Setup default environment, logging (logback or log4j2) and run application.
|
static void |
Jooby.runApp(String[] args,
Consumer<Jooby> consumer)
Setup default environment, logging (logback or log4j2) and run application.
|
static void |
Jooby.runApp(String[] args,
ExecutionMode executionMode,
Class<? extends Jooby> applicationType)
Setup default environment, logging (logback or log4j2) and run application.
|
static void |
Jooby.runApp(String[] args,
ExecutionMode executionMode,
Consumer<Jooby> consumer)
Setup default environment, logging (logback or log4j2) and run application.
|
static void |
Jooby.runApp(String[] args,
ExecutionMode executionMode,
Supplier<Jooby> provider)
Setup default environment, logging (logback or log4j2) and run application.
|
static void |
Jooby.runApp(String[] args,
Supplier<Jooby> provider)
Setup default environment, logging (logback or log4j2) and run application.
|
Copyright © 2019. All rights reserved.