Class JettyWebAppContext

    • Field Detail

      • MINIMUM_CONFIGURATION_CLASSES

        public static final java.lang.String[] MINIMUM_CONFIGURATION_CLASSES
      • DEFAULT_CONFIGURATION_CLASSES

        public static final java.lang.String[] DEFAULT_CONFIGURATION_CLASSES
      • QUICKSTART_CONFIGURATION_CLASSES

        public static final java.lang.String[] QUICKSTART_CONFIGURATION_CLASSES
    • Constructor Detail

      • JettyWebAppContext

        public JettyWebAppContext()
                           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
      • getOriginAttribute

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

        public void setOriginAttribute​(java.lang.String originAttribute)
        Parameters:
        originAttribute - the originAttribute to set
      • isGenerateOrigin

        public boolean isGenerateOrigin()
        Returns:
        the generateOrigin
      • setGenerateOrigin

        public void setGenerateOrigin​(boolean generateOrigin)
        Parameters:
        generateOrigin - the generateOrigin to set
      • getOverlays

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

        public void setBaseAppFirst​(boolean value)
      • getBaseAppFirst

        public boolean getBaseAppFirst()
      • setQuickStartWebDescriptor

        public void setQuickStartWebDescriptor​(java.lang.String quickStartWebXml)
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setQuickStartWebDescriptor

        protected void setQuickStartWebDescriptor​(Resource quickStartWebXml)
      • getQuickStartWebDescriptor

        public Resource getQuickStartWebDescriptor()
      • 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
        See Also:
        Resource
      • getWebInfLib

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

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

        public void setGenerateQuickStart​(boolean quickStart)
      • isGenerateQuickStart

        public boolean isGenerateQuickStart()
      • startWebapp

        protected void startWebapp()
                            throws java.lang.Exception
        Overrides:
        startWebapp in class WebAppContext
        Throws:
        java.lang.Exception
      • stopWebapp

        protected void stopWebapp()
                           throws java.lang.Exception
        Overrides:
        stopWebapp in class WebAppContext
        Throws:
        java.lang.Exception
      • loadConfigurations

        protected void loadConfigurations()
                                   throws java.lang.Exception
        Overrides:
        loadConfigurations in class WebAppContext
        Throws:
        java.lang.Exception
      • getResource

        public Resource getResource​(java.lang.String uriInContext)
                             throws java.net.MalformedURLException
        Overrides:
        getResource in class WebAppContext
        Throws:
        java.net.MalformedURLException
      • 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()