public class GatewayMicroService extends Object
Constructor and Description |
---|
GatewayMicroService()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addApiAuthFilter(org.eclipse.jetty.servlet.ServletContextHandler apiManServer) |
protected void |
addModulesToJetty(org.eclipse.jetty.server.handler.ContextHandlerCollection handlers)
Configure the web application(s).
|
protected void |
addSecurityHandler(org.eclipse.jetty.servlet.ServletContextHandler apiManServer) |
protected void |
configure()
Configure the gateway options.
|
protected void |
configureConnectorFactory()
The connector factory.
|
protected void |
configureGlobalVars()
Configure some global variables in the system properties.
|
protected void |
configureMetrics()
Configure the metrics system.
|
protected void |
configurePluginRegistry()
The plugin registry.
|
protected void |
configurePolicyFactory()
The policy factory component.
|
protected void |
configureRegistry()
The registry.
|
protected org.eclipse.jetty.security.SecurityHandler |
createSecurityHandler()
Creates a basic auth security handler.
|
void |
join() |
protected void |
registerCacheStoreComponent()
The cache store component.
|
protected void |
registerComponents()
Register the components.
|
protected void |
registerPolicyFailureFactoryComponent()
The policy failure factory component.
|
protected void |
registerRateLimiterComponent()
The rate limiter component.
|
protected void |
registerSharedStateComponent()
The shared state component.
|
int |
serverPort() |
void |
start()
Start/run the server.
|
void |
stop()
Stop the server.
|
protected void configure()
protected void configureGlobalVars()
protected void registerComponents()
protected void registerPolicyFailureFactoryComponent()
protected void registerRateLimiterComponent()
protected void registerSharedStateComponent()
protected void registerCacheStoreComponent()
protected void configurePolicyFactory()
protected void configureConnectorFactory()
protected void configurePluginRegistry()
protected void configureRegistry()
protected void configureMetrics()
public void start() throws Exception
Exception
- when any exception occurspublic void stop() throws Exception
Exception
- when any exception occurspublic int serverPort()
protected void addModulesToJetty(org.eclipse.jetty.server.handler.ContextHandlerCollection handlers) throws Exception
handlers
- Exception
protected void addSecurityHandler(org.eclipse.jetty.servlet.ServletContextHandler apiManServer)
apiManServer
- protected void addApiAuthFilter(org.eclipse.jetty.servlet.ServletContextHandler apiManServer)
apiManServer
- protected org.eclipse.jetty.security.SecurityHandler createSecurityHandler()
public void join() throws InterruptedException
InterruptedException
- when interruptedCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.