public class WebServer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
externalServicePort |
| Constructor and Description |
|---|
WebServer(ProxyConfiguration config,
AuthenticationService authenticationService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRestResources(String basePath,
String javaPackages,
String attribute,
Object attributeValue) |
void |
addServlet(String basePath,
org.eclipse.jetty.servlet.ServletHolder servletHolder) |
void |
addServlet(String basePath,
org.eclipse.jetty.servlet.ServletHolder servletHolder,
List<org.apache.commons.lang3.tuple.Pair<String,Object>> attributes) |
void |
addServlet(String basePath,
org.eclipse.jetty.servlet.ServletHolder servletHolder,
List<org.apache.commons.lang3.tuple.Pair<String,Object>> attributes,
boolean requireAuthentication) |
int |
getExternalServicePort() |
Optional<Integer> |
getListenPortHTTP() |
Optional<Integer> |
getListenPortHTTPS() |
URI |
getServiceUri() |
boolean |
isStarted() |
void |
start() |
void |
stop() |
public WebServer(ProxyConfiguration config, AuthenticationService authenticationService) throws IOException
IOExceptionpublic URI getServiceUri()
public void addServlet(String basePath, org.eclipse.jetty.servlet.ServletHolder servletHolder)
public void addServlet(String basePath, org.eclipse.jetty.servlet.ServletHolder servletHolder, List<org.apache.commons.lang3.tuple.Pair<String,Object>> attributes)
public void addServlet(String basePath, org.eclipse.jetty.servlet.ServletHolder servletHolder, List<org.apache.commons.lang3.tuple.Pair<String,Object>> attributes, boolean requireAuthentication)
public void addRestResources(String basePath, String javaPackages, String attribute, Object attributeValue)
public int getExternalServicePort()
public boolean isStarted()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.