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 ClassesNested classes/interfaces inherited from class org.eclipse.jetty.ee10.webapp.AbstractConfiguration
org.eclipse.jetty.ee10.webapp.AbstractConfiguration.Builder -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigure(QuickStartGeneratorConfiguration generator, org.eclipse.jetty.ee10.webapp.WebAppContext context) voidconfigure(org.eclipse.jetty.ee10.webapp.WebAppContext context) static voidconfigureMode(org.eclipse.jetty.server.Server server, String mode) Configure the server for the quickstart mode.voiddeconfigure(org.eclipse.jetty.ee10.webapp.WebAppContext context) static PathgetQuickStartWebXml(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'sWebAppContext.getWebInf()).voidpostConfigure(org.eclipse.jetty.ee10.webapp.WebAppContext context) voidpreConfigure(org.eclipse.jetty.ee10.webapp.WebAppContext context) protected voidquickStart(org.eclipse.jetty.ee10.webapp.WebAppContext context) Methods inherited from class org.eclipse.jetty.ee10.webapp.AbstractConfiguration
abort, destroy, getDependencies, getDependents, getServerClasses, getSystemClasses, isEnabledByDefaultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jetty.ee10.webapp.Configuration
isAvailable, replaces
-
Field Details
-
__replacedConfigurations
-
ORIGIN_ATTRIBUTE
- See Also:
-
QUICKSTART_WEB_XML
- See Also:
-
MODE
- See Also:
-
-
Constructor Details
-
QuickStartConfiguration
public QuickStartConfiguration()
-
-
Method Details
-
configureMode
Configure the server for the quickstart mode.In practise this means calling
server.setDryRun(true)for GENERATE mode- Parameters:
server- The server to configuremode- The quickstart mode- See Also:
-
preConfigure
- Specified by:
preConfigurein interfaceorg.eclipse.jetty.ee10.webapp.Configuration- Overrides:
preConfigurein classorg.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
- Specified by:
configurein interfaceorg.eclipse.jetty.ee10.webapp.Configuration- Overrides:
configurein classorg.eclipse.jetty.ee10.webapp.AbstractConfiguration- Throws:
Exception
-
postConfigure
- Specified by:
postConfigurein interfaceorg.eclipse.jetty.ee10.webapp.Configuration- Overrides:
postConfigurein classorg.eclipse.jetty.ee10.webapp.AbstractConfiguration- Throws:
Exception
-
deconfigure
- Specified by:
deconfigurein interfaceorg.eclipse.jetty.ee10.webapp.Configuration- Overrides:
deconfigurein classorg.eclipse.jetty.ee10.webapp.AbstractConfiguration- Throws:
Exception
-
quickStart
- 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'sWebAppContext.getWebInf()).- Parameters:
context- the web app context- Returns:
- the Path for the quickstart-web.xml
- Throws:
IOException- if unable to build the quickstart xml
-