public final class NamedPlugin extends Object implements Plugin
HttpInterceptor.Chain, HttpInterceptor.ContextPASS_THROUGH| Modifier and Type | Method and Description |
|---|---|
Map<String,HttpHandler> |
adminInterfaceHandlers() |
boolean |
enabled()
Returns true if the plugin is enabled, false if disabled.
|
Eventual<LiveHttpResponse> |
intercept(LiveHttpRequest request,
HttpInterceptor.Chain chain) |
String |
name() |
static NamedPlugin |
namedPlugin(String name,
Plugin plugin) |
Plugin |
originalPlugin() |
void |
setEnabled(boolean enabled)
Enables or disables the plugin.
|
void |
styxStarting() |
void |
styxStopping() |
public static NamedPlugin namedPlugin(String name, Plugin plugin)
public Plugin originalPlugin()
public String name()
public void setEnabled(boolean enabled)
enabled - true to enable, false to disablepublic boolean enabled()
public void styxStarting()
styxStarting in interface StyxLifecycleListenerpublic void styxStopping()
styxStopping in interface StyxLifecycleListenerpublic Map<String,HttpHandler> adminInterfaceHandlers()
adminInterfaceHandlers in interface Pluginpublic Eventual<LiveHttpResponse> intercept(LiveHttpRequest request, HttpInterceptor.Chain chain)
intercept in interface HttpInterceptorCopyright © 2013–2020 Hotels.com. All rights reserved.