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 Object
      implements HttpService, JettyActivation

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.qi4j.library.http.JettyActivation

      `JettyActivation.Activator`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractJettyMixin(String identity, org.eclipse.jetty.server.Server jettyServer, Iterable<ServiceReference<javax.servlet.ServletContextListener>> contextListeners, Iterable<ServiceReference<javax.servlet.Servlet>> servlets, Iterable<ServiceReference<javax.servlet.Filter>> filters, MBeanServer mBeanServer)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected org.eclipse.jetty.server.ServerConnector` | `buildConnector(org.eclipse.jetty.server.Server server, org.eclipse.jetty.server.HttpConfiguration httpConfig)`
    `protected org.eclipse.jetty.security.SecurityHandler` | `buildSecurityHandler()`
    `protected abstract JettyConfiguration` | `configuration()`
    `Interface[]` | `interfacesServed()`
    `protected abstract Interface.Protocol` | `servedProtocol()`
    `protected org.eclipse.jetty.server.HttpConfiguration` | `specializeHttp(org.eclipse.jetty.server.HttpConfiguration httpConfig)`
    `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(String identity,
                            org.eclipse.jetty.server.Server jettyServer,
                            Iterable<ServiceReference<javax.servlet.ServletContextListener>> contextListeners,
                            Iterable<ServiceReference<javax.servlet.Servlet>> servlets,
                            Iterable<ServiceReference<javax.servlet.Filter>> filters,
                            MBeanServer mBeanServer)

  - ### Method Detail

    - #### startJetty

          public final void startJetty()
                                throws Exception

      Specified by:
        `startJetty` in interface `JettyActivation`
      Throws:
        `Exception`

    - #### stopJetty

          public final void stopJetty()
                               throws Exception

      Specified by:
        `stopJetty` in interface `JettyActivation`
      Throws:
        `Exception`

    - #### interfacesServed

          public final Interface[] interfacesServed()

      Specified by:
        `interfacesServed` in interface `HttpService`

    - #### configuration

          protected abstract JettyConfiguration configuration()

    - #### specializeHttp

          protected org.eclipse.jetty.server.HttpConfiguration specializeHttp(org.eclipse.jetty.server.HttpConfiguration httpConfig)

    - #### buildConnector

          protected org.eclipse.jetty.server.ServerConnector buildConnector(org.eclipse.jetty.server.Server server,
                                                                org.eclipse.jetty.server.HttpConfiguration httpConfig)

    - #### buildSecurityHandler

          protected org.eclipse.jetty.security.SecurityHandler buildSecurityHandler()

    - #### servedProtocol

          protected abstract Interface.Protocol servedProtocol()