org.qi4j.library.http
Class AbstractJettyMixin

java.lang.Object
  extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.library.http.JettyActivation
JettyActivation.Activator
 
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)
           
 
Method Summary
protected static void addContextListeners(org.eclipse.jetty.servlet.ServletContextHandler root, java.lang.Iterable<ServiceReference<javax.servlet.ServletContextListener>> contextListeners)
           
protected static void addFilters(org.eclipse.jetty.servlet.ServletContextHandler root, java.lang.Iterable<ServiceReference<javax.servlet.Filter>> filters)
           
protected static void addServlets(org.eclipse.jetty.servlet.ServletContextHandler root, java.lang.Iterable<ServiceReference<javax.servlet.Servlet>> servlets)
           
protected  org.eclipse.jetty.server.Connector buildConnector()
           
protected  org.eclipse.jetty.security.SecurityHandler buildSecurityHandler()
           
protected abstract  JettyConfiguration configuration()
           
 Interface[] interfacesServed()
           
protected abstract  Interface.Protocol servedProtocol()
           
 void startJetty()
           
 void stopJetty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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)