public interface HttpServletServer
extends org.openecomp.policy.drools.properties.Startable
Modifier and Type | Field and Description |
---|---|
static HttpServletServerFactory |
factory
factory for managing and tracking DMAAP sources
|
Modifier and Type | Method and Description |
---|---|
void |
addServletClass(String servletPath,
String restClass)
adds a JAX-RS servlet class to serve REST requests
|
void |
addServletPackage(String servletPath,
String restPackage)
adds a package containing JAX-RS classes to serve REST requests
|
int |
getPort() |
void |
setBasicAuthentication(String user,
String password,
String relativeUriPath)
enables basic authentication with user and password on the the relative path relativeUriPath
|
boolean |
waitedStart(long maxWaitTime)
blocking start of the http server
|
static final HttpServletServerFactory factory
int getPort()
void setBasicAuthentication(String user, String password, String relativeUriPath)
user
- password
- relativeUriPath
- void addServletClass(String servletPath, String restClass) throws IllegalArgumentException, IllegalStateException
servletPath
- restClass
- IllegalArgumentException
IllegalStateException
void addServletPackage(String servletPath, String restPackage) throws IllegalArgumentException, IllegalStateException
servletPath
- restPackage
- IllegalArgumentException
IllegalStateException
boolean waitedStart(long maxWaitTime) throws IllegalArgumentException
maxWaitTime
- max time to wait for the start to take placeIllegalArgumentException
- if arguments are invalidCopyright © 2018. All rights reserved.