org.qi4j.library.http
Class AbstractJettyMixin
java.lang.Object
org.qi4j.library.http.AbstractJettyMixin
- All Implemented Interfaces:
- HttpService, JettyActivation
- Direct Known Subclasses:
- JettyMixin, SecureJettyMixin
public abstract class AbstractJettyMixin
- extends java.lang.Object
- implements HttpService, JettyActivation
Constructor Summary |
AbstractJettyMixin(java.lang.String identity,
org.eclipse.jetty.server.Server jettyServer,
java.lang.Iterable<ServiceReference<javax.servlet.ServletContextListener>> contextListeners,
java.lang.Iterable<ServiceReference<javax.servlet.Servlet>> servlets,
java.lang.Iterable<ServiceReference<javax.servlet.Filter>> filters,
javax.management.MBeanServer mBeanServer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractJettyMixin
public AbstractJettyMixin(java.lang.String identity,
org.eclipse.jetty.server.Server jettyServer,
java.lang.Iterable<ServiceReference<javax.servlet.ServletContextListener>> contextListeners,
java.lang.Iterable<ServiceReference<javax.servlet.Servlet>> servlets,
java.lang.Iterable<ServiceReference<javax.servlet.Filter>> filters,
javax.management.MBeanServer mBeanServer)
configuration
protected abstract JettyConfiguration configuration()
buildConnector
protected org.eclipse.jetty.server.Connector buildConnector()
buildSecurityHandler
protected org.eclipse.jetty.security.SecurityHandler buildSecurityHandler()
servedProtocol
protected abstract Interface.Protocol servedProtocol()
startJetty
public final void startJetty()
throws java.lang.Exception
- Specified by:
startJetty
in interface JettyActivation
- Throws:
java.lang.Exception
stopJetty
public final void stopJetty()
throws java.lang.Exception
- Specified by:
stopJetty
in interface JettyActivation
- Throws:
java.lang.Exception
interfacesServed
public final Interface[] interfacesServed()
- Specified by:
interfacesServed
in interface HttpService
addContextListeners
protected static void addContextListeners(org.eclipse.jetty.servlet.ServletContextHandler root,
java.lang.Iterable<ServiceReference<javax.servlet.ServletContextListener>> contextListeners)
addServlets
protected static void addServlets(org.eclipse.jetty.servlet.ServletContextHandler root,
java.lang.Iterable<ServiceReference<javax.servlet.Servlet>> servlets)
addFilters
protected static void addFilters(org.eclipse.jetty.servlet.ServletContextHandler root,
java.lang.Iterable<ServiceReference<javax.servlet.Filter>> filters)