Class ServerInstanceWrapper
java.lang.Object
org.eclipse.jetty.osgi.boot.internal.serverfactory.ServerInstanceWrapper
ServerInstanceWrapper
Configures and starts a jetty Server instance.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The value of this property points to the parent director of the jetty.xml configuration file currently executed. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addContainerTldBundleDiscoverer
(TldBundleDiscoverer tldBundleDiscoverer) static Server
static Collection<TldBundleDiscoverer>
The classloader that should be the parent classloader for each webapp deployed on this server.void
start
(Server server, Dictionary<String, Object> props) void
stop()
-
Field Details
-
PROPERTY_THIS_JETTY_XML_FOLDER_URL
The value of this property points to the parent director of the jetty.xml configuration file currently executed. Everything is passed as a URL to support the case where the bundle is zipped.- See Also:
-
-
Constructor Details
-
ServerInstanceWrapper
-
-
Method Details
-
addContainerTldBundleDiscoverer
-
getContainerTldBundleDiscoverers
-
configure
public static Server configure(Server server, List<URL> jettyConfigurations, Dictionary<String, Object> props) throws Exception- Throws:
Exception
-
getManagedServerName
-
getParentClassLoaderForWebapps
The classloader that should be the parent classloader for each webapp deployed on this server.- Returns:
- the classloader
-
getDeploymentManager
- Returns:
- The deployment manager registered on this server.
-
getServer
- Returns:
- The app provider registered on this server.
-
getContextHandlerCollection
- Returns:
- The collection of context handlers
-
start
- Throws:
Exception
-
stop
public void stop()
-