Class ServerInstanceWrapper


  • public class ServerInstanceWrapper
    extends java.lang.Object
    ServerInstanceWrapper Configures and starts a jetty Server instance.
    • 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
    • Constructor Detail

      • ServerInstanceWrapper

        public ServerInstanceWrapper​(java.lang.String managedServerName)
    • 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()