Class QuickStartGeneratorConfiguration
java.lang.Object
org.eclipse.jetty.ee9.webapp.AbstractConfiguration
org.eclipse.jetty.ee9.quickstart.QuickStartGeneratorConfiguration
- All Implemented Interfaces:
- Configuration
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.ee9.annotations.javaTargetPlatform attribute should be set on the Context with the platform number of the target JVM (eg 8).
- 
Nested Class SummaryNested classes/interfaces inherited from interface ConfigurationConfiguration.Wrapper, Configuration.WrapperFunction
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final booleanprotected intprotected Stringprotected Pathstatic final Stringstatic final StringFields inherited from interface ConfigurationATTR
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanabort(WebAppContext context) voidconfigure(WebAppContext context) Configure WebApp.voiddeconfigure(WebAppContext context) DeConfigure WebApp.voidgenerateQuickStartWebXml(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(WebAppContext context) Set up for configuration.voidsetOriginAttribute(String name) voidsetQuickStartWebXml(Path quickStartWebXml) Methods inherited from class AbstractConfigurationaddDependencies, addDependencies, addDependents, addDependents, cloneConfigure, destroy, expose, getDependencies, getDependents, getServerClasses, getSystemClasses, hide, isEnabledByDefault, postConfigure, protect, protectAndExposeMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConfigurationisAvailable, replaces
- 
Field Details- 
ORIGIN- See Also:
 
- 
DEFAULT_ORIGIN_ATTRIBUTE_NAME- See Also:
 
- 
_abortprotected final boolean _abort
- 
_originAttribute
- 
_countprotected int _count
- 
_quickStartWebXml
 
- 
- 
Constructor Details- 
QuickStartGeneratorConfigurationpublic QuickStartGeneratorConfiguration()
- 
QuickStartGeneratorConfigurationpublic QuickStartGeneratorConfiguration(boolean abort) 
 
- 
- 
Method Details- 
abort- Specified by:
- abortin interface- Configuration
- Overrides:
- abortin class- AbstractConfiguration
- Returns:
- true if configuration should be aborted
 
- 
setOriginAttribute
- 
getOriginAttribute
- 
getQuickStartWebXml
- 
setQuickStartWebXml
- 
generateQuickStartWebXmlpublic void generateQuickStartWebXml(WebAppContext context, OutputStream stream) throws FileNotFoundException, 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
- FileNotFoundException- if unable to find the file
 
- 
origin
- 
preConfigureDescription copied from interface:ConfigurationSet up for configuration.Typically this step discovers configuration resources. Calls to preConfigure may alter the Configurations configured on the WebAppContext, so long as configurations prior to this configuration are not altered. - Specified by:
- preConfigurein interface- Configuration
- Overrides:
- preConfigurein class- AbstractConfiguration
- Parameters:
- context- The context to configure
- Throws:
- Exception- if unable to pre configure
 
- 
configureDescription copied from interface:ConfigurationConfigure WebApp.Typically this step applies the discovered configuration resources to either the WebAppContextor the associatedMetaData.- Specified by:
- configurein interface- Configuration
- Overrides:
- configurein class- AbstractConfiguration
- Parameters:
- context- The context to configure
- Throws:
- Exception- if unable to configure
 
- 
deconfigureDescription copied from interface:ConfigurationDeConfigure WebApp. This method is called to undo all configuration done. This is called to allow the context to work correctly over a stop/start cycle- Specified by:
- deconfigurein interface- Configuration
- Overrides:
- deconfigurein class- AbstractConfiguration
- Parameters:
- context- The context to configure
- Throws:
- Exception- if unable to deconfigure
 
 
-