Class JettyCustomizer

java.lang.Object
org.eclipse.equinox.http.jetty.JettyCustomizer

public abstract class JettyCustomizer extends Object
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 Details

    • JettyCustomizer

      public JettyCustomizer()
  • Method Details

    • customizeContext

      public Object customizeContext(Object context, Dictionary<String,?> settings)
      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 type org.eclipse.jetty.servlet.ServletContextHandler
      settings - the settings as passed to JettyConfigurator.startServer(String, Dictionary)
      Returns:
      context the customized context; in case of Jetty 7 the context is of type org.eclipse.jetty.servlet.ServletContextHandler
    • customizeHttpConnector

      public Object customizeHttpConnector(Object connector, Dictionary<String,?> settings)
      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 type org.eclipse.jetty.server.Connector
      settings - the settings as passed to JettyConfigurator.startServer(String, Dictionary)
      Returns:
      connector the customized connector; in case of Jetty 6 the connector is of type org.eclipse.jetty.server.Connector
    • customizeHttpsConnector

      public Object customizeHttpsConnector(Object connector, Dictionary<String,?> settings)
      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 type oorg.eclipse.jetty.server.Connector
      settings - the settings as passed to JettyConfigurator.startServer(String, Dictionary)
      Returns:
      connector the customized connector; in case of Jetty 7 the connector is of type org.eclipse.jetty.server.Connector