Module org.eclipse.jetty.quickstart
Package org.eclipse.jetty.quickstart
Class QuickStartConfiguration
- java.lang.Object
-
- org.eclipse.jetty.webapp.AbstractConfiguration
-
- org.eclipse.jetty.quickstart.QuickStartConfiguration
-
- All Implemented Interfaces:
org.eclipse.jetty.webapp.Configuration
public class QuickStartConfiguration extends org.eclipse.jetty.webapp.AbstractConfigurationQuickStartConfigurationRe-inflate a deployable webapp from a saved effective-web.xml which combines all pre-parsed web xml descriptors and annotations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuickStartConfiguration.Mode
-
Field Summary
Fields Modifier and Type Field Description static java.util.Set<java.lang.Class<? extends org.eclipse.jetty.webapp.Configuration>>__replacedConfigurationsstatic java.lang.StringGENERATE_ORIGINstatic java.lang.StringORIGIN_ATTRIBUTEstatic java.lang.StringQUICKSTART_WEB_XML
-
Constructor Summary
Constructors Constructor Description QuickStartConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure(QuickStartGeneratorConfiguration generator, org.eclipse.jetty.webapp.WebAppContext context)voidconfigure(org.eclipse.jetty.webapp.WebAppContext context)QuickStartConfiguration.ModegetMode()org.eclipse.jetty.util.resource.ResourcegetQuickStartWebXml(org.eclipse.jetty.webapp.WebAppContext context)Get the quickstart-web.xml file as a Resource.voidpreConfigure(org.eclipse.jetty.webapp.WebAppContext context)protected voidquickStart(org.eclipse.jetty.webapp.WebAppContext context, org.eclipse.jetty.util.resource.Resource quickStartWebXml)voidsetMode(QuickStartConfiguration.Mode mode)-
Methods inherited from class org.eclipse.jetty.webapp.AbstractConfiguration
abort, addDependencies, addDependencies, addDependents, addDependents, cloneConfigure, deconfigure, destroy, expose, getDependencies, getDependents, getServerClasses, getSystemClasses, hide, isDisabledByDefault, postConfigure, protect, protectAndExpose
-
-
-
-
Field Detail
-
__replacedConfigurations
public static final java.util.Set<java.lang.Class<? extends org.eclipse.jetty.webapp.Configuration>> __replacedConfigurations
-
ORIGIN_ATTRIBUTE
public static final java.lang.String ORIGIN_ATTRIBUTE
- See Also:
- Constant Field Values
-
GENERATE_ORIGIN
public static final java.lang.String GENERATE_ORIGIN
- See Also:
- Constant Field Values
-
QUICKSTART_WEB_XML
public static final java.lang.String QUICKSTART_WEB_XML
- See Also:
- Constant Field Values
-
-
Method Detail
-
setMode
public void setMode(QuickStartConfiguration.Mode mode)
-
getMode
public QuickStartConfiguration.Mode getMode()
-
preConfigure
public void preConfigure(org.eclipse.jetty.webapp.WebAppContext context) throws java.lang.Exception- Specified by:
preConfigurein interfaceorg.eclipse.jetty.webapp.Configuration- Overrides:
preConfigurein classorg.eclipse.jetty.webapp.AbstractConfiguration- Throws:
java.lang.Exception- See Also:
AbstractConfiguration.preConfigure(org.eclipse.jetty.webapp.WebAppContext)
-
configure
protected void configure(QuickStartGeneratorConfiguration generator, org.eclipse.jetty.webapp.WebAppContext context) throws java.io.IOException
- Throws:
java.io.IOException
-
configure
public void configure(org.eclipse.jetty.webapp.WebAppContext context) throws java.lang.Exception- Specified by:
configurein interfaceorg.eclipse.jetty.webapp.Configuration- Overrides:
configurein classorg.eclipse.jetty.webapp.AbstractConfiguration- Throws:
java.lang.Exception- See Also:
AbstractConfiguration.configure(org.eclipse.jetty.webapp.WebAppContext)
-
quickStart
protected void quickStart(org.eclipse.jetty.webapp.WebAppContext context, org.eclipse.jetty.util.resource.Resource quickStartWebXml) throws java.lang.Exception- Throws:
java.lang.Exception
-
getQuickStartWebXml
public org.eclipse.jetty.util.resource.Resource getQuickStartWebXml(org.eclipse.jetty.webapp.WebAppContext context) throws java.lang.ExceptionGet the quickstart-web.xml file as a Resource.- Parameters:
context- the web app context- Returns:
- the Resource for the quickstart-web.xml
- Throws:
java.lang.Exception- if unable to find the quickstart xml
-
-