public class JettyJerseyServer extends JettyServletServer
Modifier and Type | Field and Description |
---|---|
protected static String |
JERSEY_CLASSNAMES_PARAM |
protected static String |
JERSEY_PACKAGES_PARAM |
protected static org.openecomp.policy.common.logging.flexlogger.Logger |
logger |
protected ArrayList<String> |
packages |
protected HashMap<String,org.eclipse.jetty.servlet.ServletHolder> |
servlets |
connector, context, contextPath, host, jettyServer, jettyThread, name, password, port, startCondition, user
factory
Constructor and Description |
---|
JettyJerseyServer(String name,
String host,
int port,
String contextPath) |
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
|
protected org.eclipse.jetty.servlet.ServletHolder |
getServlet(String servletPath) |
String |
toString() |
getHost, getName, getPassword, getPort, getUser, isAlive, run, setBasicAuthentication, shutdown, start, stop, waitedStart
protected static final String JERSEY_PACKAGES_PARAM
protected static final String JERSEY_CLASSNAMES_PARAM
protected static org.openecomp.policy.common.logging.flexlogger.Logger logger
public JettyJerseyServer(String name, String host, int port, String contextPath) throws IllegalArgumentException
IllegalArgumentException
protected org.eclipse.jetty.servlet.ServletHolder getServlet(String servletPath) throws IllegalArgumentException
IllegalArgumentException
public void addServletPackage(String servletPath, String restPackage) throws IllegalArgumentException, IllegalStateException
HttpServletServer
public void addServletClass(String servletPath, String restClass) throws IllegalArgumentException, IllegalStateException
HttpServletServer
public String toString()
toString
in class JettyServletServer
Copyright © 2018. All rights reserved.