public class DefaultJettyAtJettyHomeHelper
extends java.lang.Object
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.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_JETTY_ETC_FILES
Set of config files to apply to a jetty Server instance if none are supplied by SYS_PROP_JETTY_ETC_FILES
|
static java.lang.String |
DEFAULT_JETTYHOME
Default location within bundle of a jetty home dir.
|
static java.lang.String |
JETTY_ETC_FILES
contains a comma separated list of pathes to the etc/jetty-*.xml files
used to configure jetty.
|
| Constructor and Description |
|---|
DefaultJettyAtJettyHomeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
resolvePropertyValue(java.lang.String value)
recursively substitute the ${sysprop} by their actual system property.
|
static void |
startJettyAtJettyHome(org.osgi.framework.BundleContext bundleContext)
Called by the JettyBootStrapActivator.
|
public static final java.lang.String JETTY_ETC_FILES
public static final java.lang.String DEFAULT_JETTY_ETC_FILES
public static final java.lang.String DEFAULT_JETTYHOME
public static void startJettyAtJettyHome(org.osgi.framework.BundleContext bundleContext)
throws java.lang.Exception
If the system property jetty.home.bundle is defined and points to a bundle, look for the configuration of jetty inside that 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 separated list of URLs or relative paths inside the bundle or folder to the config files. If undefined it defaults to 'etc/jetty.xml'. In the case of the jetty.home.bundle, if no etc/jetty.xml file is found in the bundle, it will look for /jettyhome/etc/jetty-osgi-default.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.
java.lang.Exceptionpublic static java.lang.String resolvePropertyValue(java.lang.String value)
value - Copyright © 2013 FuseSource, Corp.. All Rights Reserved.