Class ServerInstanceWrapper

java.lang.Object
org.eclipse.jetty.osgi.boot.internal.serverfactory.ServerInstanceWrapper

public class ServerInstanceWrapper extends Object
ServerInstanceWrapper Configures and starts a jetty Server instance.
  • Field Details

    • PROPERTY_THIS_JETTY_XML_FOLDER_URL

      public static final 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:
  • Constructor Details

    • ServerInstanceWrapper

      public ServerInstanceWrapper(String managedServerName)
  • Method Details

    • addContainerTldBundleDiscoverer

      public static void addContainerTldBundleDiscoverer(TldBundleDiscoverer tldBundleDiscoverer)
    • getContainerTldBundleDiscoverers

      public static Collection<TldBundleDiscoverer> getContainerTldBundleDiscoverers()
    • configure

      public static Server configure(Server server, List<URL> jettyConfigurations, Dictionary<String,Object> props) throws Exception
      Throws:
      Exception
    • getManagedServerName

      public String getManagedServerName()
    • getParentClassLoaderForWebapps

      public 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, Dictionary<String,Object> props) throws Exception
      Throws:
      Exception
    • stop

      public void stop()