Class JettyServerControllerFactory

  • All Implemented Interfaces:
    org.ops4j.pax.web.service.spi.ServerControllerFactory

    public class JettyServerControllerFactory
    extends Object
    implements org.ops4j.pax.web.service.spi.ServerControllerFactory
    • Constructor Detail

      • JettyServerControllerFactory

        public JettyServerControllerFactory​(org.osgi.framework.Bundle paxWebJettyBundle,
                                            ClassLoader classLoader)
        Construct global instance (no more needed) of ServerControllerFactory for Jetty.
        Parameters:
        paxWebJettyBundle - bundle that instantiated this factory. Not required (e.g., in tests)
        classLoader - used to detect server capabilities which can be enabled if some classes are present on the classpath - at runtime (not in tests), this should be the classloader of the bundle
    • Method Detail

      • createServerController

        public org.ops4j.pax.web.service.spi.ServerController createServerController​(org.ops4j.pax.web.service.spi.config.Configuration configuration)
        Specified by:
        createServerController in interface org.ops4j.pax.web.service.spi.ServerControllerFactory
      • releaseServerController

        public void releaseServerController​(org.ops4j.pax.web.service.spi.ServerController controller,
                                            org.ops4j.pax.web.service.spi.config.Configuration configuration)
        Specified by:
        releaseServerController in interface org.ops4j.pax.web.service.spi.ServerControllerFactory
      • addHandler

        public void addHandler​(org.eclipse.jetty.server.Handler handler,
                               int ranking)
      • removeHandler

        public void removeHandler​(org.eclipse.jetty.server.Handler handler)
      • addCustomizer

        public void addCustomizer​(org.eclipse.jetty.server.HttpConfiguration.Customizer customizer,
                                  int ranking)
      • removeCustomizer

        public void removeCustomizer​(org.eclipse.jetty.server.HttpConfiguration.Customizer customizer)