Package | Description |
---|---|
io.jooby | |
io.jooby.internal |
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.converter(BeanConverter converter) |
Jooby |
Jooby.converter(ValueConverter converter) |
static Jooby |
Jooby.createApp(String[] args,
ExecutionMode executionMode,
Class<? extends Jooby> applicationType)
Setup default environment, logging (logback or log4j2) and run application.
|
static Jooby |
Jooby.createApp(String[] args,
ExecutionMode executionMode,
Supplier<Jooby> provider)
Setup default environment, logging (logback or log4j2) and run application.
|
Jooby |
Jooby.decoder(MediaType contentType,
MessageDecoder decoder) |
Jooby |
Jooby.decorator(Route.Decorator decorator) |
Jooby |
Jooby.dispatch(Executor executor,
Runnable action) |
Jooby |
Jooby.dispatch(Runnable body) |
Jooby |
Jooby.encoder(MediaType contentType,
MessageEncoder encoder) |
Jooby |
Jooby.encoder(MessageEncoder encoder) |
Jooby |
Jooby.error(ErrorHandler handler) |
Jooby |
Jooby.errorCode(Class<? extends Throwable> type,
StatusCode statusCode) |
Jooby |
Jooby.executor(String name,
Executor executor) |
Jooby |
Jooby.install(Extension extension)
Install extension module.
|
Jooby |
Jooby.mount(Predicate<Context> predicate,
Router subrouter) |
Jooby |
Jooby.mount(Router router) |
Jooby |
Jooby.mount(String path,
Router router) |
Jooby |
Jooby.mvc(Class router) |
<T> Jooby |
Jooby.mvc(Class<T> router,
javax.inject.Provider<T> provider) |
Jooby |
Jooby.mvc(Object router) |
Jooby |
Jooby.onStarted(SneakyThrows.Runnable body)
Event is fire once all components has been initialized, for example router and web-server
are up and running, extension installed, etc...
|
Jooby |
Jooby.onStarting(SneakyThrows.Runnable body)
Event fired before starting router and web-server.
|
Jooby |
Jooby.onStop(AutoCloseable body)
Stop event is fire at application shutdown time.
|
Jooby |
Jooby.ready(Server server)
Callback method that indicates application was successfully started it and listening for
connections.
|
Jooby |
Jooby.registry(Registry registry)
Set application registry.
|
Jooby |
Jooby.responseHandler(ResponseHandler handler) |
Jooby |
Jooby.setContextAsService(boolean contextAsService) |
Jooby |
Jooby.setContextPath(String basePath) |
Jooby |
Jooby.setCurrentUser(Function<Context,Object> provider) |
Jooby |
Jooby.setDefaultWorker(Executor worker) |
Jooby |
Jooby.setEnvironment(Environment environment)
Set application environment.
|
Jooby |
Jooby.setExecutionMode(ExecutionMode mode)
Set application execution mode.
|
Jooby |
Jooby.setFlashCookie(String name) |
Jooby |
Jooby.setHiddenMethod(Function<Context,Optional<String>> provider) |
Jooby |
Jooby.setHiddenMethod(String parameterName) |
Jooby |
Jooby.setLateInit(boolean lateInit)
Force all module to be initialized lazily at application startup time (not at
creation/instantiation time).
|
Jooby |
Jooby.setName(String name)
Set application name.
|
Jooby |
Jooby.setRouterOptions(RouterOption... options) |
Jooby |
Jooby.setServerOptions(ServerOptions serverOptions)
Set server options.
|
Jooby |
Jooby.setSessionStore(SessionStore store) |
Jooby |
Jooby.setTmpdir(Path tmpdir)
Set application temporary directory.
|
Jooby |
Jooby.setTrustProxy(boolean trustProxy) |
Jooby |
Jooby.setVersion(String version)
Set application version.
|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
GracefulShutdown.install(Jooby application) |
void |
OpenAPIModule.install(Jooby application) |
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 Jooby |
Jooby.createApp(String[] args,
ExecutionMode executionMode,
Class<? extends Jooby> applicationType)
Setup default environment, logging (logback or log4j2) and run application.
|
static Jooby |
Jooby.createApp(String[] args,
ExecutionMode executionMode,
Supplier<Jooby> provider)
Setup default environment, logging (logback or log4j2) and run application.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Router |
RouterImpl.start(Jooby app) |
Copyright © 2020. All rights reserved.