Class QuickStartDescriptorGenerator


  • public class QuickStartDescriptorGenerator
    extends Object
    QuickStartDescriptorGenerator

    Generate an effective web.xml from a WebAppContext, including all components from web.xml, web-fragment.xmls annotations etc.

    If generating quickstart for a different java platform than the current running platform, then the org.eclipse.jetty.annotations.javaTargetPlatform attribute should be set on the Context with the platform number of the target JVM (eg 8).

    • Constructor Detail

      • QuickStartDescriptorGenerator

        public QuickStartDescriptorGenerator​(WebAppContext w,
                                             String extraXML,
                                             String originAttribute,
                                             boolean generateOrigin)
        Parameters:
        w - the source WebAppContext
        extraXML - any extra xml snippet to append
    • Method Detail

      • origin

        public Map<String,​String> origin​(MetaData md,
                                               String name)
        Find the origin (web.xml, fragment, annotation etc) of a web artifact from MetaData.
        Parameters:
        md - the metadata
        name - the name
        Returns:
        the origin map