Eclipse Platform
Release 3.6

org.eclipse.equinox.http.jetty
Class JettyCustomizer

java.lang.Object
  extended by 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 Summary
JettyCustomizer()
           
 
Method Summary
 Object customizeContext(Object context, Dictionary settings)
          Called by the framework when the Jetty context has been created and initialized.
 Object customizeHttpConnector(Object connector, Dictionary settings)
          Called by the framework when the Jetty Http Connector has been created and initialized.
 Object customizeHttpsConnector(Object connector, Dictionary settings)
          Called by the framework when the Jetty Https Connector has been created and initialized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyCustomizer

public JettyCustomizer()
Method Detail

customizeContext

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

customizeHttpConnector

public Object customizeHttpConnector(Object connector,
                                     Dictionary 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 6 the context is of type org.mortbay.jetty.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.mortbay.jetty.Connector

customizeHttpsConnector

public Object customizeHttpsConnector(Object connector,
                                      Dictionary 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 6 the connector is of type org.mortbay.jetty.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.mortbay.jetty.Connector

Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.