public class ManagerApiMicroService extends Object
| Constructor and Description |
|---|
ManagerApiMicroService()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAuthFilter(org.eclipse.jetty.servlet.ServletContextHandler apiManServer) |
protected void |
addModulesToJetty(org.eclipse.jetty.server.handler.HandlerCollection handlers)
Configure the web application(s).
|
protected void |
addSecurityHandler(org.eclipse.jetty.servlet.ServletContextHandler apiManServer) |
protected org.eclipse.jetty.security.SecurityHandler |
createSecurityHandler()
Creates a basic auth security handler.
|
protected org.eclipse.jetty.util.resource.Resource |
getConfigResource(String path) |
protected org.eclipse.jetty.util.resource.Resource |
getTranslationsResource(String path) |
void |
join() |
int |
serverPort() |
void |
start()
Start/run the server.
|
void |
stop()
Stop the server.
|
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.HandlerCollection handlers)
throws Exception
handlers - Exceptionprotected org.eclipse.jetty.util.resource.Resource getTranslationsResource(String path)
protected org.eclipse.jetty.util.resource.Resource getConfigResource(String path)
protected void addSecurityHandler(org.eclipse.jetty.servlet.ServletContextHandler apiManServer)
throws Exception
apiManServer - Exceptionprotected void addAuthFilter(org.eclipse.jetty.servlet.ServletContextHandler apiManServer)
apiManServer - protected org.eclipse.jetty.security.SecurityHandler createSecurityHandler()
throws Exception
Exceptionpublic void join()
throws InterruptedException
InterruptedException - when interruptedCopyright © 2017 JBoss, a division of Red Hat. All rights reserved.