Class MavenWebAppContext

    • Constructor Detail

      • MavenWebAppContext

        public MavenWebAppContext()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • setContainerIncludeJarPattern

        public void setContainerIncludeJarPattern​(java.lang.String pattern)
      • getContainerIncludeJarPattern

        public java.lang.String getContainerIncludeJarPattern()
      • getWebInfIncludeJarPattern

        public java.lang.String getWebInfIncludeJarPattern()
      • setWebInfIncludeJarPattern

        public void setWebInfIncludeJarPattern​(java.lang.String pattern)
      • getClassPathFiles

        public java.util.List<java.io.File> getClassPathFiles()
      • setJettyEnvXml

        public void setJettyEnvXml​(java.lang.String jettyEnvXml)
      • getJettyEnvXml

        public java.lang.String getJettyEnvXml()
      • setClasses

        public void setClasses​(java.io.File dir)
      • getClasses

        public java.io.File getClasses()
      • setWebInfLib

        public void setWebInfLib​(java.util.List<java.io.File> jars)
      • setTestClasses

        public void setTestClasses​(java.io.File dir)
      • getTestClasses

        public java.io.File getTestClasses()
      • setOverlays

        public void setOverlays​(java.util.List<Overlay> overlays)
        Ordered list of wars to overlay on top of the current project. The list may contain an overlay that represents the current project.
        Parameters:
        overlays - the list of overlays
      • setOriginAttribute

        public void setOriginAttribute​(java.lang.String name)
        Set the name of the attribute that is used in each generated xml element to indicate the source of the xml element (eg annotation, web.xml etc).
        Parameters:
        name - the name of the attribute to use.
      • getOriginAttribute

        public java.lang.String getOriginAttribute()
        Returns:
        the originAttribute
      • getOverlays

        public java.util.List<Overlay> getOverlays()
      • setBaseAppFirst

        public void setBaseAppFirst​(boolean value)
      • getBaseAppFirst

        public boolean getBaseAppFirst()
      • setResourceBases

        public void setResourceBases​(java.lang.String[] resourceBases)
        This method is provided as a convenience for jetty maven plugin configuration
        Parameters:
        resourceBases - Array of resources strings to set as a ResourceCollection. Each resource string may be a comma separated list of resources
      • getWebInfLib

        public java.util.List<java.io.File> getWebInfLib()
      • getWebInfClasses

        public java.util.List<java.io.File> getWebInfClasses()
      • doStart

        public void doStart()
                     throws java.lang.Exception
        Description copied from class: ContainerLifeCycle
        Starts the managed lifecycle beans in the order they were added.
        Overrides:
        doStart in class WebAppContext
        Throws:
        AbstractLifeCycle.StopException - If thrown, the lifecycle will immediately be stopped.
        java.lang.Exception - If there was a problem starting. Will cause a transition to FAILED state
      • doStop

        public void doStop()
                    throws java.lang.Exception
        Description copied from class: ContainerLifeCycle
        Stops the managed lifecycle beans in the reverse order they were added.
        Overrides:
        doStop in class ServletContextHandler
        Throws:
        java.lang.Exception - If there was a problem stopping. Will cause a transition to FAILED state
      • getResource

        public Resource getResource​(java.lang.String pathInContext)
                             throws java.net.MalformedURLException
        Description copied from class: ContextHandler
        Attempt to get a Resource from the Context.
        Overrides:
        getResource in class WebAppContext
        Parameters:
        pathInContext - the path within the base resource to attempt to get
        Returns:
        the resource, or null if not available.
        Throws:
        java.net.MalformedURLException - if unable to form a Resource from the provided path
      • getResourcePaths

        public java.util.Set<java.lang.String> getResourcePaths​(java.lang.String path)
        Overrides:
        getResourcePaths in class ContextHandler
      • addPattern

        public java.lang.String addPattern​(java.lang.String s,
                                           java.lang.String pattern)
      • initCDI

        public void initCDI()