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, getHiddenClasses, getProtectedClasses, 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
getServerClasses, getSystemClasses, 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
-
configure
protected void configure(QuickStartGeneratorConfiguration generator, org.eclipse.jetty.ee10.webapp.WebAppContext context) throws IOException - Throws:
IOException
-
configure
-
postConfigure
-
deconfigure
-
quickStart
-
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
-