Class AbstractWebAppProvider

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.osgi.boot.AbstractWebAppProvider
All Implemented Interfaces:
AppProvider, LifeCycle
Direct Known Subclasses:
BundleWebAppProvider, ServiceWebAppProvider

public abstract class AbstractWebAppProvider extends AbstractLifeCycle implements AppProvider
AbstractWebAppProvider

Base class for Jetty DeploymentManager Providers that are capable of deploying a webapp, either from a bundle or an OSGi service.

  • Constructor Details

  • Method Details

    • isParentLoaderPriority

      public boolean isParentLoaderPriority()
      Get the parentLoaderPriority.
      Returns:
      the parentLoaderPriority
    • setParentLoaderPriority

      public void setParentLoaderPriority(boolean parentLoaderPriority)
      Set the parentLoaderPriority.
      Parameters:
      parentLoaderPriority - the parentLoaderPriority to set
    • getDefaultsDescriptor

      public String getDefaultsDescriptor()
      Get the defaultsDescriptor.
      Returns:
      the defaultsDescriptor
    • setDefaultsDescriptor

      public void setDefaultsDescriptor(String defaultsDescriptor)
      Set the defaultsDescriptor.
      Parameters:
      defaultsDescriptor - the defaultsDescriptor to set
    • isExtract

      public boolean isExtract()
    • setExtract

      public void setExtract(boolean extract)
    • setTldBundles

      public void setTldBundles(String tldBundles)
      Parameters:
      tldBundles - Comma separated list of bundles that contain tld jars that should be setup on the jetty instances created here.
    • getTldBundles

      public String getTldBundles()
      Returns:
      The list of bundles that contain tld jars that should be setup on the jetty instances created here.
    • setServerInstanceWrapper

      public void setServerInstanceWrapper(ServerInstanceWrapper wrapper)
    • getServerInstanceWrapper

      public ServerInstanceWrapper getServerInstanceWrapper()
    • getDeploymentManager

      public DeploymentManager getDeploymentManager()
    • setDeploymentManager

      public void setDeploymentManager(DeploymentManager deploymentManager)
      Description copied from interface: AppProvider
      Set the Deployment Manager
      Specified by:
      setDeploymentManager in interface AppProvider
      Parameters:
      deploymentManager - the deployment manager
    • createContextHandler

      public ContextHandler createContextHandler(App app) throws Exception
      Description copied from interface: AppProvider
      Create a ContextHandler for an App
      Specified by:
      createContextHandler in interface AppProvider
      Parameters:
      app - The App
      Returns:
      A ContextHandler
      Throws:
      IOException - if unable to create context
      Exception - if unable to create context
    • getOriginId

      public static String getOriginId(org.osgi.framework.Bundle contributor, String path)