public abstract class JettyCustomizer extends Object
This abstract class must be extended by clients which wish to customize the created Jetty contexts or connectors further.
Constructor and Description |
---|
JettyCustomizer() |
Modifier and Type | Method and Description |
---|---|
Object |
customizeContext(Object context,
Dictionary<String,?> settings)
Called by the framework when the Jetty context has been created
and initialized.
|
Object |
customizeHttpConnector(Object connector,
Dictionary<String,?> settings)
Called by the framework when the Jetty Http Connector has been created
and initialized.
|
Object |
customizeHttpsConnector(Object connector,
Dictionary<String,?> settings)
Called by the framework when the Jetty Https Connector has been created
and initialized.
|
public Object customizeContext(Object context, Dictionary<String,?> settings)
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.
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)
org.eclipse.jetty.servlet.ServletContextHandler
public Object customizeHttpConnector(Object connector, Dictionary<String,?> settings)
Implementors may perform additional configuration of the Jetty Connector.
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)
org.eclipse.jetty.server.Connector
public Object customizeHttpsConnector(Object connector, Dictionary<String,?> settings)
Implementors may perform additional configuration of the Jetty Connector.
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)
org.eclipse.jetty.server.Connector
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.