Class QuickStartDescriptorGenerator

java.lang.Object
org.eclipse.jetty.quickstart.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).

  • Field Details

    • LOG

      private static final Logger LOG
    • ORIGIN

      public static final String ORIGIN
      See Also:
    • DEFAULT_QUICKSTART_DESCRIPTOR_NAME

      public static final String DEFAULT_QUICKSTART_DESCRIPTOR_NAME
      See Also:
    • DEFAULT_ORIGIN_ATTRIBUTE_NAME

      public static final String DEFAULT_ORIGIN_ATTRIBUTE_NAME
      See Also:
    • _webApp

      protected WebAppContext _webApp
    • _extraXML

      protected String _extraXML
    • _originAttribute

      protected String _originAttribute
    • _generateOrigin

      protected boolean _generateOrigin
    • _count

      protected int _count
  • Constructor Details

    • QuickStartDescriptorGenerator

      public QuickStartDescriptorGenerator(WebAppContext w, String extraXML, String originAttribute, boolean generateOrigin)
      Parameters:
      w - the source WebAppContext
      extraXML - any extra xml snippet to append
      originAttribute - param value to use for the context param origin attribute
      generateOrigin - true to generate the origin attribute
  • Method Details