Uses of Class
io.jooby.Jooby
-
Uses of Jooby in io.jooby
Modifier and TypeMethodDescriptionJooby.after
(Route.After after) Jooby.before
(Route.Before before) Jooby.converter
(ValueConverter converter) static Jooby
Jooby.createApp
(String[] args, ExecutionMode executionMode, Supplier<Jooby> provider) Setup default environment, logging (logback or log4j2) and run application.Jooby.decoder
(MediaType contentType, MessageDecoder decoder) Jooby.encoder
(MediaType contentType, MessageEncoder encoder) Jooby.encoder
(MessageEncoder encoder) Jooby.error
(ErrorHandler handler) Jooby.errorCode
(Class<? extends Throwable> type, StatusCode statusCode) Install extension module.Set server to use.Jooby.install
(SneakyThrows.Supplier<Jooby> factory) Installs/imports a full application into this one.Jooby.install
(String path, SneakyThrows.Supplier<Jooby> factory) Installs/imports a full application into this one.<T> 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.onStarting
(SneakyThrows.Runnable body) Event fired before starting router and web-server.Jooby.onStop
(AutoCloseable body) Stop event is fire at application shutdown time.Callback method that indicates application was successfully started it and listening for connections.Set application registry.Jooby.resultHandler
(ResultHandler handler) Jooby.setContextAsService
(boolean contextAsService) Jooby.setContextPath
(String basePath) Jooby.setCurrentUser
(Function<Context, Object> provider) Jooby.setDefaultWorker
(Executor worker) Jooby.setEnvironment
(Environment environment) Set application environment.Jooby.setExecutionMode
(ExecutionMode mode) Set application execution mode.Jooby.setFlashCookie
(Cookie flashCookie) Jooby.setHiddenMethod
(String parameterName) Jooby.setHiddenMethod
(Function<Context, Optional<String>> provider) Jooby.setLateInit
(boolean lateInit) Force all module to be initialized lazily at application startup time (not at creation/instantiation time).Set application name.Jooby.setRouterOptions
(RouterOption... options) Jooby.setServerOptions
(ServerOptions serverOptions) Set server options.Jooby.setSessionStore
(SessionStore store) Jooby.setStartupSummary
(List<StartupSummary> startupSummary) Controls the level of information logged during startup.Set application temporary directory.Jooby.setTrustProxy
(boolean trustProxy) Jooby.setVersion
(String version) Set application version.Call back method that indicates application was deploy it in the given server.Jooby.stop()
Stop application, fire the stop event to cleanup resources.Modifier and TypeMethodDescriptionvoid
Install, configure additional features to a Jooby application.void
void
void
Start an application.Modifier and TypeMethodDescriptionstatic Jooby
Jooby.createApp
(String[] args, ExecutionMode executionMode, Supplier<Jooby> provider) Setup default environment, logging (logback or log4j2) and run application.Jooby.install
(SneakyThrows.Supplier<Jooby> factory) Installs/imports a full application into this one.Jooby.install
(String path, SneakyThrows.Supplier<Jooby> factory) Installs/imports a full application into this one.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
Setup default environment, logging (logback or log4j2) and run application.static void
Setup default environment, logging (logback or log4j2) and run application.