Package org.eclipse.equinox.http.jetty
Class JettyCustomizer
java.lang.Object
org.eclipse.equinox.http.jetty.JettyCustomizer
Jetty Customizer allows one to customize Jetty contexts and connectors.
This abstract class must be extended by clients which wish to customize the created Jetty contexts or connectors further.
- Since:
- 1.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncustomizeContext
(Object context, Dictionary<String, ?> settings) Called by the framework when the Jetty context has been created and initialized.customizeHttpConnector
(Object connector, Dictionary<String, ?> settings) Called by the framework when the Jetty Http Connector has been created and initialized.customizeHttpsConnector
(Object connector, Dictionary<String, ?> settings) Called by the framework when the Jetty Https Connector has been created and initialized.
-
Constructor Details
-
JettyCustomizer
public JettyCustomizer()
-
-
Method Details
-
customizeContext
Called by the framework when the Jetty context has been created and initialized.Implementors may perform additional configuration of the Jetty context. However, they must be aware that changing certain central functionalities of the context such as class loading are already configured by the framework. Changing those may cause breakage and thus must be avoided.
- Parameters:
context
- the Jetty context; in case of Jetty 7 the context is of typeorg.eclipse.jetty.servlet.ServletContextHandler
settings
- the settings as passed toJettyConfigurator.startServer(String, Dictionary)
- Returns:
- context the customized context; in case of Jetty 7 the context is of
type
org.eclipse.jetty.servlet.ServletContextHandler
-
customizeHttpConnector
Called by the framework when the Jetty Http Connector has been created and initialized.Implementors may perform additional configuration of the Jetty Connector.
- Parameters:
connector
- the Jetty connector; in case of Jetty 7 the context is of typeorg.eclipse.jetty.server.Connector
settings
- the settings as passed toJettyConfigurator.startServer(String, Dictionary)
- Returns:
- connector the customized connector; in case of Jetty 6 the connector
is of type
org.eclipse.jetty.server.Connector
-
customizeHttpsConnector
Called by the framework when the Jetty Https Connector has been created and initialized.Implementors may perform additional configuration of the Jetty Connector.
- Parameters:
connector
- the Jetty connector; in case of Jetty 7 the connector is of typeoorg.eclipse.jetty.server.Connector
settings
- the settings as passed toJettyConfigurator.startServer(String, Dictionary)
- Returns:
- connector the customized connector; in case of Jetty 7 the connector
is of type
org.eclipse.jetty.server.Connector
-