public enum JettyHttpServerFactory extends Enum<JettyHttpServerFactory> implements com.cisco.oss.foundation.http.server.HttpServerFactory, JettyHttpServerFactoryExtensions
| Enum Constant and Description |
|---|
INSTANCE
implementing singleton using enum
|
| Modifier and Type | Method and Description |
|---|---|
void |
setErrorHandler(String serviceName,
org.eclipse.jetty.server.handler.ErrorHandler errorHandler) |
void |
startHttpServer(String serviceName,
com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets)
start a new http server
|
void |
startHttpServer(String serviceName,
com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets,
List<EventListener> eventListeners) |
void |
startHttpServer(String serviceName,
com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets,
com.google.common.collect.ListMultimap<String,javax.servlet.Filter> filters)
start a new http server
|
void |
startHttpServer(String serviceName,
com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets,
com.google.common.collect.ListMultimap<String,javax.servlet.Filter> filters,
List<EventListener> eventListeners) |
void |
startHttpServer(String serviceName,
com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets,
com.google.common.collect.ListMultimap<String,javax.servlet.Filter> filterMap,
List<EventListener> eventListeners,
Map<String,String> initParams) |
void |
startHttpServer(String serviceName,
com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets,
com.google.common.collect.ListMultimap<String,javax.servlet.Filter> filters,
List<EventListener> eventListeners,
Map<String,String> initParams,
String keyStorePath,
String keyStorePassword,
String trustStorePath,
String trustStorePassword) |
void |
startHttpServer(String serviceName,
com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets,
com.google.common.collect.ListMultimap<String,javax.servlet.Filter> filters,
List<EventListener> eventListeners,
String keyStorePath,
String keyStorePassword,
String trustStorePath,
String trustStorePassword) |
void |
startHttpServer(String serviceName,
com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets,
com.google.common.collect.ListMultimap<String,javax.servlet.Filter> filters,
String keyStorePath,
String keyStorePassword)
start a new http server
|
void |
startHttpServer(String serviceName,
com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets,
com.google.common.collect.ListMultimap<String,javax.servlet.Filter> filters,
String keyStorePath,
String keyStorePassword,
String trustStorePath,
String trustStorePassword)
start a new http server
|
void |
startHttpServer(String serviceName,
com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets,
Map<String,String> initParams) |
void |
startHttpServer(String serviceName,
com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets,
String keyStorePath,
String keyStorePassword)
start a new http server
|
void |
startHttpServer(String serviceName,
com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets,
String keyStorePath,
String keyStorePassword,
String trustStorePath,
String trustStorePassword)
start a new http server
|
void |
stopHttpServer(String serviceName)
stop the http server
|
static JettyHttpServerFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JettyHttpServerFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JettyHttpServerFactory INSTANCE
public static JettyHttpServerFactory[] values()
for (JettyHttpServerFactory c : JettyHttpServerFactory.values()) System.out.println(c);
public static JettyHttpServerFactory valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void startHttpServer(String serviceName, com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets)
startHttpServer in interface com.cisco.oss.foundation.http.server.HttpServerFactoryserviceName - - the http logical service nameservlets - - a mapping between servlet path and servlet instance. This mapping uses the google collections ListMultimap.
ArrayListMultimap<String,Servlet> servletMap = ArrayListMultimap.create()public void startHttpServer(String serviceName, com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets, Map<String,String> initParams)
startHttpServer in interface com.cisco.oss.foundation.http.server.HttpServerFactorypublic void startHttpServer(String serviceName, com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets, com.google.common.collect.ListMultimap<String,javax.servlet.Filter> filterMap, List<EventListener> eventListeners, Map<String,String> initParams)
startHttpServer in interface com.cisco.oss.foundation.http.server.HttpServerFactorypublic void startHttpServer(String serviceName, com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets, List<EventListener> eventListeners)
startHttpServer in interface com.cisco.oss.foundation.http.server.HttpServerFactorypublic void startHttpServer(String serviceName, com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets, com.google.common.collect.ListMultimap<String,javax.servlet.Filter> filters)
startHttpServer in interface com.cisco.oss.foundation.http.server.HttpServerFactoryserviceName - - the http logical service nameservlets - - a mapping between servlet path and servlet instance. This mapping uses the google collections ListMultimap.
ArrayListMultimap<String,Servlet> servletMap = ArrayListMultimap.create()filters - - a mapping between filter path and filter instance. This mapping uses the google collections ListMultimap.
ArrayListMultimap<String,Filter> filterMap = ArrayListMultimap.create()public void startHttpServer(String serviceName, com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets, com.google.common.collect.ListMultimap<String,javax.servlet.Filter> filters, List<EventListener> eventListeners)
startHttpServer in interface com.cisco.oss.foundation.http.server.HttpServerFactorypublic void startHttpServer(String serviceName, com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets, com.google.common.collect.ListMultimap<String,javax.servlet.Filter> filters, String keyStorePath, String keyStorePassword)
startHttpServer in interface com.cisco.oss.foundation.http.server.HttpServerFactoryserviceName - - the http logical service nameservlets - - a mapping between servlet path and servlet instance. This mapping uses the google collections ListMultimap.
ArrayListMultimap<String,Servlet> servletMap = ArrayListMultimap.create()filters - - a mapping between filter path and filter instance. This mapping uses the google collections ListMultimap.
ArrayListMultimap<String,Filter> filterMap = ArrayListMultimap.create()keyStorePath - - a path to the keystore filekeyStorePassword - - the keystore passwordpublic void startHttpServer(String serviceName, com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets, String keyStorePath, String keyStorePassword)
startHttpServer in interface com.cisco.oss.foundation.http.server.HttpServerFactoryserviceName - - the http logical service nameservlets - - a mapping between servlet path and servlet instance. This mapping uses the google collections ListMultimap.
ArrayListMultimap<String,Servlet> servletMap = ArrayListMultimap.create()keyStorePath - - a path to the keystore filekeyStorePassword - - the keystore passwordpublic void startHttpServer(String serviceName, com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets, com.google.common.collect.ListMultimap<String,javax.servlet.Filter> filters, String keyStorePath, String keyStorePassword, String trustStorePath, String trustStorePassword)
startHttpServer in interface com.cisco.oss.foundation.http.server.HttpServerFactoryserviceName - - the http logical service nameservlets - - a mapping between servlet path and servlet instance. This mapping uses the google collections ListMultimap.
ArrayListMultimap<String,Servlet> servletMap = ArrayListMultimap.create()filters - - a mapping between filter path and filter instance. This mapping uses the google collections ListMultimap.
ArrayListMultimap<String,Filter> filterMap = ArrayListMultimap.create()keyStorePath - - a path to the keystore filekeyStorePassword - - the keystore passwordtrustStorePath - - the trust store file pathtrustStorePassword - - the trust store passwordpublic void startHttpServer(String serviceName, com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets, com.google.common.collect.ListMultimap<String,javax.servlet.Filter> filters, List<EventListener> eventListeners, String keyStorePath, String keyStorePassword, String trustStorePath, String trustStorePassword)
startHttpServer in interface com.cisco.oss.foundation.http.server.HttpServerFactorypublic void startHttpServer(String serviceName, com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets, com.google.common.collect.ListMultimap<String,javax.servlet.Filter> filters, List<EventListener> eventListeners, Map<String,String> initParams, String keyStorePath, String keyStorePassword, String trustStorePath, String trustStorePassword)
startHttpServer in interface com.cisco.oss.foundation.http.server.HttpServerFactorypublic void startHttpServer(String serviceName, com.google.common.collect.ListMultimap<String,javax.servlet.Servlet> servlets, String keyStorePath, String keyStorePassword, String trustStorePath, String trustStorePassword)
startHttpServer in interface com.cisco.oss.foundation.http.server.HttpServerFactoryserviceName - - the http logical service nameservlets - - a mapping between servlet path and servlet instance. This mapping uses the google collections ListMultimap.
ArrayListMultimap<String,Servlet> servletMap = ArrayListMultimap.create()keyStorePath - - a path to the keystore filekeyStorePassword - - the keystore passwordtrustStorePath - - the trust store file pathtrustStorePassword - - the trust store passwordpublic void stopHttpServer(String serviceName)
stopHttpServer in interface com.cisco.oss.foundation.http.server.HttpServerFactoryserviceName - - the http logical service namepublic void setErrorHandler(String serviceName, org.eclipse.jetty.server.handler.ErrorHandler errorHandler)
setErrorHandler in interface JettyHttpServerFactoryExtensionsCopyright © 2016 Cisco. All rights reserved.