Class ServerInstanceWrapper
- java.lang.Object
-
- org.eclipse.jetty.osgi.boot.internal.serverfactory.ServerInstanceWrapper
-
public class ServerInstanceWrapper extends java.lang.Object
ServerInstanceWrapper Configures and starts a jetty Server instance.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROPERTY_THIS_JETTY_XML_FOLDER_URL
The value of this property points to the parent director of the jetty.xml configuration file currently executed.
-
Constructor Summary
Constructors Constructor Description ServerInstanceWrapper(java.lang.String managedServerName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addContainerTldBundleDiscoverer(TldBundleDiscoverer tldBundleDiscoverer)
static Server
configure(Server server, java.util.List<java.net.URL> jettyConfigurations, java.util.Dictionary<java.lang.String,java.lang.Object> props)
static java.util.Collection<TldBundleDiscoverer>
getContainerTldBundleDiscoverers()
ContextHandlerCollection
getContextHandlerCollection()
DeploymentManager
getDeploymentManager()
java.lang.String
getManagedServerName()
java.lang.ClassLoader
getParentClassLoaderForWebapps()
The classloader that should be the parent classloader for each webapp deployed on this server.Server
getServer()
void
start(Server server, java.util.Dictionary<java.lang.String,java.lang.Object> props)
void
stop()
-
-
-
Field Detail
-
PROPERTY_THIS_JETTY_XML_FOLDER_URL
public static final java.lang.String 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:
- Constant Field Values
-
-
Method Detail
-
addContainerTldBundleDiscoverer
public static void addContainerTldBundleDiscoverer(TldBundleDiscoverer tldBundleDiscoverer)
-
getContainerTldBundleDiscoverers
public static java.util.Collection<TldBundleDiscoverer> getContainerTldBundleDiscoverers()
-
configure
public static Server configure(Server server, java.util.List<java.net.URL> jettyConfigurations, java.util.Dictionary<java.lang.String,java.lang.Object> props) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getManagedServerName
public java.lang.String getManagedServerName()
-
getParentClassLoaderForWebapps
public java.lang.ClassLoader getParentClassLoaderForWebapps()
The classloader that should be the parent classloader for each webapp deployed on this server.- Returns:
- the classloader
-
getDeploymentManager
public DeploymentManager getDeploymentManager()
- Returns:
- The deployment manager registered on this server.
-
getServer
public Server getServer()
- Returns:
- The app provider registered on this server.
-
getContextHandlerCollection
public ContextHandlerCollection getContextHandlerCollection()
- Returns:
- The collection of context handlers
-
start
public void start(Server server, java.util.Dictionary<java.lang.String,java.lang.Object> props) throws java.lang.Exception
- Throws:
java.lang.Exception
-
stop
public void stop()
-
-