Class QuickStartGeneratorConfiguration
java.lang.Object
org.eclipse.jetty.ee10.webapp.AbstractConfiguration
org.eclipse.jetty.ee10.quickstart.QuickStartGeneratorConfiguration
- All Implemented Interfaces:
org.eclipse.jetty.ee10.webapp.Configuration
public class QuickStartGeneratorConfiguration
extends org.eclipse.jetty.ee10.webapp.AbstractConfiguration
QuickStartGeneratorConfiguration
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.ee10.annotations.javaTargetPlatform attribute should be set on the Context with the platform number of the target JVM (eg 8).
-
Nested Class Summary
Nested 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 TypeMethodDescriptionbooleanabort(org.eclipse.jetty.ee10.webapp.WebAppContext context) voidconfigure(org.eclipse.jetty.ee10.webapp.WebAppContext context) voiddeconfigure(org.eclipse.jetty.ee10.webapp.WebAppContext context) voidgenerateQuickStartWebXml(org.eclipse.jetty.ee10.webapp.WebAppContext context, OutputStream stream) Perform the generation of the xml fileGet the originAttribute.Find the origin (web.xml, fragment, annotation etc) of a web artifact from MetaData.voidpreConfigure(org.eclipse.jetty.ee10.webapp.WebAppContext context) voidsetOriginAttribute(String name) voidsetQuickStartWebXml(Path quickStartWebXml) Methods inherited from class org.eclipse.jetty.ee10.webapp.AbstractConfiguration
destroy, getDependencies, getDependents, getHiddenClasses, getProtectedClasses, isEnabledByDefault, postConfigureMethods 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
-
ORIGIN
- See Also:
-
DEFAULT_ORIGIN_ATTRIBUTE_NAME
- See Also:
-
_abort
protected final boolean _abort -
_originAttribute
-
_count
protected int _count -
_quickStartWebXml
-
-
Constructor Details
-
QuickStartGeneratorConfiguration
public QuickStartGeneratorConfiguration() -
QuickStartGeneratorConfiguration
public QuickStartGeneratorConfiguration(boolean abort)
-
-
Method Details
-
abort
public boolean abort(org.eclipse.jetty.ee10.webapp.WebAppContext context) - Specified by:
abortin interfaceorg.eclipse.jetty.ee10.webapp.Configuration- Overrides:
abortin classorg.eclipse.jetty.ee10.webapp.AbstractConfiguration
-
setOriginAttribute
-
getOriginAttribute
-
getQuickStartWebXml
-
setQuickStartWebXml
-
generateQuickStartWebXml
public void generateQuickStartWebXml(org.eclipse.jetty.ee10.webapp.WebAppContext context, OutputStream stream) throws IOException Perform the generation of the xml file- Parameters:
stream- the stream to generate the quickstart-web.xml to- Throws:
IOException- if unable to generate the quickstart-web.xml
-
origin
-
preConfigure
-
configure
-
deconfigure
-