Class QuickStartConfiguration

java.lang.Object
org.eclipse.jetty.ee10.webapp.AbstractConfiguration
org.eclipse.jetty.ee10.quickstart.QuickStartConfiguration
All Implemented Interfaces:
org.eclipse.jetty.ee10.webapp.Configuration

public class QuickStartConfiguration extends org.eclipse.jetty.ee10.webapp.AbstractConfiguration
QuickStartConfiguration

Prepare for quickstart generation, or usage.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     

    Nested classes/interfaces inherited from class org.eclipse.jetty.ee10.webapp.AbstractConfiguration

    org.eclipse.jetty.ee10.webapp.AbstractConfiguration.Builder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Set<Class<? extends org.eclipse.jetty.ee10.webapp.Configuration>>
     
    static final String
     
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    configure(QuickStartGeneratorConfiguration generator, org.eclipse.jetty.ee10.webapp.WebAppContext context)
     
    void
    configure(org.eclipse.jetty.ee10.webapp.WebAppContext context)
     
    static void
    configureMode(org.eclipse.jetty.server.Server server, String mode)
    Configure the server for the quickstart mode.
    void
    deconfigure(org.eclipse.jetty.ee10.webapp.WebAppContext context)
     
    static Path
    getQuickStartWebXml(org.eclipse.jetty.ee10.webapp.WebAppContext context)
    Get the quickstart-web.xml Path from the webapp (from attributes if present, or built from the context's WebAppContext.getWebInf()).
    void
    postConfigure(org.eclipse.jetty.ee10.webapp.WebAppContext context)
     
    void
    preConfigure(org.eclipse.jetty.ee10.webapp.WebAppContext context)
     
    protected void
    quickStart(org.eclipse.jetty.ee10.webapp.WebAppContext context)
     

    Methods inherited from class org.eclipse.jetty.ee10.webapp.AbstractConfiguration

    abort, destroy, getDependencies, getDependents, getServerClasses, getSystemClasses, isEnabledByDefault

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.eclipse.jetty.ee10.webapp.Configuration

    isAvailable, replaces
  • Field Details

  • Constructor Details

    • QuickStartConfiguration

      public QuickStartConfiguration()
  • Method Details

    • configureMode

      public static void configureMode(org.eclipse.jetty.server.Server server, String mode)
      Configure the server for the quickstart mode.

      In practise this means calling server.setDryRun(true) for GENERATE mode

      Parameters:
      server - The server to configure
      mode - The quickstart mode
      See Also:
      • Server.setDryRun(boolean)
    • preConfigure

      public void preConfigure(org.eclipse.jetty.ee10.webapp.WebAppContext context) throws Exception
      Specified by:
      preConfigure in interface org.eclipse.jetty.ee10.webapp.Configuration
      Overrides:
      preConfigure in class org.eclipse.jetty.ee10.webapp.AbstractConfiguration
      Throws:
      Exception
    • configure

      protected void configure(QuickStartGeneratorConfiguration generator, org.eclipse.jetty.ee10.webapp.WebAppContext context) throws IOException
      Throws:
      IOException
    • configure

      public void configure(org.eclipse.jetty.ee10.webapp.WebAppContext context) throws Exception
      Specified by:
      configure in interface org.eclipse.jetty.ee10.webapp.Configuration
      Overrides:
      configure in class org.eclipse.jetty.ee10.webapp.AbstractConfiguration
      Throws:
      Exception
    • postConfigure

      public void postConfigure(org.eclipse.jetty.ee10.webapp.WebAppContext context) throws Exception
      Specified by:
      postConfigure in interface org.eclipse.jetty.ee10.webapp.Configuration
      Overrides:
      postConfigure in class org.eclipse.jetty.ee10.webapp.AbstractConfiguration
      Throws:
      Exception
    • deconfigure

      public void deconfigure(org.eclipse.jetty.ee10.webapp.WebAppContext context) throws Exception
      Specified by:
      deconfigure in interface org.eclipse.jetty.ee10.webapp.Configuration
      Overrides:
      deconfigure in class org.eclipse.jetty.ee10.webapp.AbstractConfiguration
      Throws:
      Exception
    • quickStart

      protected void quickStart(org.eclipse.jetty.ee10.webapp.WebAppContext context) throws Exception
      Throws:
      Exception
    • getQuickStartWebXml

      public static Path getQuickStartWebXml(org.eclipse.jetty.ee10.webapp.WebAppContext context) throws IOException
      Get the quickstart-web.xml Path from the webapp (from attributes if present, or built from the context's WebAppContext.getWebInf()).
      Parameters:
      context - the web app context
      Returns:
      the Path for the quickstart-web.xml
      Throws:
      IOException - if unable to build the quickstart xml