-
- All Implemented Interfaces:
public final class PluginConfig
-
-
Field Summary
Fields Modifier and Type Field Description private final PluginManager
pluginManager
-
Constructor Summary
Constructors Constructor Description PluginConfig()
-
Method Summary
Modifier and Type Method Description final PluginManager
getPluginManager()
final Unit
register(Plugin plugin)
final Unit
enableHttpAllowedMethodsOnRoutes()
final Unit
enableDevLogging()
final Unit
enableGlobalHeaders(Supplier<GlobalHeaderConfig> globalHeaderConfig)
final Unit
enableRouteOverview(String path, RouteRole roles)
final Unit
enableRedirectToLowercasePaths()
final Unit
enableBasicAuth(String username, String password)
final Unit
enableSslRedirects()
final Unit
enableCors(Consumer<CorsContainer> userConfig)
-
-
Method Detail
-
getPluginManager
final PluginManager getPluginManager()
-
enableHttpAllowedMethodsOnRoutes
final Unit enableHttpAllowedMethodsOnRoutes()
-
enableDevLogging
final Unit enableDevLogging()
-
enableGlobalHeaders
final Unit enableGlobalHeaders(Supplier<GlobalHeaderConfig> globalHeaderConfig)
-
enableRouteOverview
final Unit enableRouteOverview(String path, RouteRole roles)
-
enableRedirectToLowercasePaths
final Unit enableRedirectToLowercasePaths()
-
enableBasicAuth
final Unit enableBasicAuth(String username, String password)
-
enableSslRedirects
final Unit enableSslRedirects()
-
enableCors
final Unit enableCors(Consumer<CorsContainer> userConfig)
-
-
-
-