Class AbstractWebAppProvider

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

public abstract class AbstractWebAppProvider extends org.eclipse.jetty.util.component.AbstractLifeCycle implements org.eclipse.jetty.deploy.AppProvider
AbstractWebAppProvider

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

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    OSGiApp Represents a deployable webapp.

    Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

    org.eclipse.jetty.util.component.LifeCycle.Listener
  • Field Summary

    Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    FAILED, STARTED, STARTING, STOPPED, STOPPING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jetty.server.handler.ContextHandler
    createContextHandler(org.eclipse.jetty.deploy.App app)
     
    Get the defaultsDescriptor.
    org.eclipse.jetty.deploy.DeploymentManager
     
    static String
    getOriginId(org.osgi.framework.Bundle contributor, String path)
     
     
     
    boolean
     
    boolean
    Get the parentLoaderPriority.
    void
    setDefaultsDescriptor(String defaultsDescriptor)
    Set the defaultsDescriptor.
    void
    setDeploymentManager(org.eclipse.jetty.deploy.DeploymentManager deploymentManager)
     
    void
    setExtract(boolean extract)
     
    void
    setParentLoaderPriority(boolean parentLoaderPriority)
    Set the parentLoaderPriority.
    void
     
    void
    setTldBundles(String tldBundles)
     

    Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    addEventListener, doStart, doStop, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle

    addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
  • 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 org.eclipse.jetty.deploy.DeploymentManager getDeploymentManager()
    • setDeploymentManager

      public void setDeploymentManager(org.eclipse.jetty.deploy.DeploymentManager deploymentManager)
      Specified by:
      setDeploymentManager in interface org.eclipse.jetty.deploy.AppProvider
    • createContextHandler

      public org.eclipse.jetty.server.handler.ContextHandler createContextHandler(org.eclipse.jetty.deploy.App app) throws Exception
      Specified by:
      createContextHandler in interface org.eclipse.jetty.deploy.AppProvider
      Throws:
      Exception
    • getOriginId

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