- java.lang.Object
-
- org.eclipse.jetty.webapp.AbstractConfiguration
-
- org.eclipse.jetty.webapp.WebXmlConfiguration
-
- All Implemented Interfaces:
Configuration
public class WebXmlConfiguration extends AbstractConfiguration
Configure by parsing default web.xml and web.xml
-
-
Field Summary
-
Fields inherited from interface org.eclipse.jetty.webapp.Configuration
ATTR
-
-
Constructor Summary
Constructors Constructor Description WebXmlConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(WebAppContext context)Process web-default.xml, web.xml, override-web.xmlvoiddeconfigure(WebAppContext context)DeConfigure WebApp.protected org.eclipse.jetty.util.resource.ResourcefindWebXml(WebAppContext context)voidpreConfigure(WebAppContext context)Set up for configuration.-
Methods inherited from class org.eclipse.jetty.webapp.AbstractConfiguration
abort, addDependencies, addDependencies, addDependents, addDependents, cloneConfigure, destroy, expose, getDependencies, getDependents, getServerClasses, getSystemClasses, hide, isEnabledByDefault, postConfigure, protect, protectAndExpose
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.webapp.Configuration
isAvailable, replaces
-
-
-
-
Method Detail
-
preConfigure
public void preConfigure(WebAppContext context) throws java.lang.Exception
Description 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 interfaceConfiguration- Overrides:
preConfigurein classAbstractConfiguration- Parameters:
context- The context to configure- Throws:
java.lang.Exception- if unable to pre configure
-
configure
public void configure(WebAppContext context) throws java.lang.Exception
Process web-default.xml, web.xml, override-web.xml- Specified by:
configurein interfaceConfiguration- Overrides:
configurein classAbstractConfiguration- Parameters:
context- The context to configure- Throws:
java.lang.Exception- if unable to configure
-
findWebXml
protected org.eclipse.jetty.util.resource.Resource findWebXml(WebAppContext context) throws java.io.IOException, java.net.MalformedURLException
- Throws:
java.io.IOExceptionjava.net.MalformedURLException
-
deconfigure
public void deconfigure(WebAppContext context) throws java.lang.Exception
Description 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 interfaceConfiguration- Overrides:
deconfigurein classAbstractConfiguration- Parameters:
context- The context to configure- Throws:
java.lang.Exception- if unable to deconfigure
-
-