org.eclipse.jetty.osgi.boot.internal.serverfactory
Class DefaultJettyAtJettyHomeHelper

java.lang.Object
  extended by org.eclipse.jetty.osgi.boot.internal.serverfactory.DefaultJettyAtJettyHomeHelper

public class DefaultJettyAtJettyHomeHelper
extends Object

Called by the JettyBootstrapActivator during the starting of the bundle. If the system property 'jetty.home' is defined and points to a folder, then setup the corresponding jetty server and starts it.


Field Summary
static String SYS_PROP_JETTY_ETC_FILES
          contains a comma separated list of pathes to the etc/jetty-*.xml files used to configure jetty.
static String SYS_PROP_JETTY_HOME
          Usual system property used as the hostname for a typical jetty configuration.
static String SYS_PROP_JETTY_HOME_BUNDLE
          System property to point to a bundle that embeds a jetty configuration and that jetty configuration should be the default jetty server.
static String SYS_PROP_JETTY_HOST
          Usual system property used as the hostname for a typical jetty configuration.
static String SYS_PROP_JETTY_PORT
          Usual system property used as the port for http for a typical jetty configuration.
static String SYS_PROP_JETTY_PORT_SSL
          Usual system property used as the port for https for a typical jetty configuration.
 
Constructor Summary
DefaultJettyAtJettyHomeHelper()
           
 
Method Summary
static void startJettyAtJettyHome(org.osgi.framework.BundleContext bundleContext)
          Called by the JettyBootStrapActivator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYS_PROP_JETTY_ETC_FILES

public static final String SYS_PROP_JETTY_ETC_FILES
contains a comma separated list of pathes to the etc/jetty-*.xml files used to configure jetty. By default the value is 'etc/jetty.xml' when the path is relative the file is resolved relatively to jettyhome.

See Also:
Constant Field Values

SYS_PROP_JETTY_HOME

public static final String SYS_PROP_JETTY_HOME
Usual system property used as the hostname for a typical jetty configuration.

See Also:
Constant Field Values

SYS_PROP_JETTY_HOME_BUNDLE

public static final String SYS_PROP_JETTY_HOME_BUNDLE
System property to point to a bundle that embeds a jetty configuration and that jetty configuration should be the default jetty server. First we look for jetty.home. If we don't find it then we look for this property.

See Also:
Constant Field Values

SYS_PROP_JETTY_HOST

public static final String SYS_PROP_JETTY_HOST
Usual system property used as the hostname for a typical jetty configuration.

See Also:
Constant Field Values

SYS_PROP_JETTY_PORT

public static final String SYS_PROP_JETTY_PORT
Usual system property used as the port for http for a typical jetty configuration.

See Also:
Constant Field Values

SYS_PROP_JETTY_PORT_SSL

public static final String SYS_PROP_JETTY_PORT_SSL
Usual system property used as the port for https for a typical jetty configuration.

See Also:
Constant Field Values
Constructor Detail

DefaultJettyAtJettyHomeHelper

public DefaultJettyAtJettyHomeHelper()
Method Detail

startJettyAtJettyHome

public static void startJettyAtJettyHome(org.osgi.framework.BundleContext bundleContext)
Called by the JettyBootStrapActivator. If the system property jetty.home is defined and points to a folder, deploys the corresponding jetty server.

If the system property jetty.home.bundle is defined and points to a bundle. Look for the configuration of jetty inside that bundle and deploys the corresponding bundle.

In both cases reads the system property 'jetty.etc.config.urls' to locate the configuration files for the deployed jetty. It is a comma spearate list of URLs or relative paths inside the bundle or folder to the config files. If underfined it defaults to 'etc/jetty.xml'.

In both cases the system properties jetty.host, jetty.port and jetty.port.ssl are passed to the configuration files that might use them as part of their properties.



Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.