Class JettyServerControllerFactory
- java.lang.Object
-
- org.ops4j.pax.web.service.jetty.internal.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 Summary
Constructors Constructor Description JettyServerControllerFactory(org.osgi.framework.Bundle paxWebJettyBundle, ClassLoader classLoader)Construct global instance (no more needed) ofServerControllerFactoryfor Jetty.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCustomizer(org.eclipse.jetty.server.HttpConfiguration.Customizer customizer, int ranking)voidaddHandler(org.eclipse.jetty.server.Handler handler, int ranking)org.ops4j.pax.web.service.spi.ServerControllercreateServerController(org.ops4j.pax.web.service.spi.config.Configuration configuration)voidreleaseServerController(org.ops4j.pax.web.service.spi.ServerController controller, org.ops4j.pax.web.service.spi.config.Configuration configuration)voidremoveCustomizer(org.eclipse.jetty.server.HttpConfiguration.Customizer customizer)voidremoveHandler(org.eclipse.jetty.server.Handler handler)
-
-
-
Constructor Detail
-
JettyServerControllerFactory
public JettyServerControllerFactory(org.osgi.framework.Bundle paxWebJettyBundle, ClassLoader classLoader)Construct global instance (no more needed) ofServerControllerFactoryfor 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:
createServerControllerin interfaceorg.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:
releaseServerControllerin interfaceorg.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)
-
-