Package org.eclipse.jetty.webapp
Class JettyWebXmlConfiguration
java.lang.Object
org.eclipse.jetty.webapp.AbstractConfiguration
org.eclipse.jetty.webapp.JettyWebXmlConfiguration
- All Implemented Interfaces:
Configuration
JettyWebConfiguration.
Looks for XmlConfiguration files in WEB-INF. Searches in order for the first of jetty6-web.xml, jetty-web.xml or web-jetty.xml
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.webapp.Configuration
Configuration.ClassList, Configuration.Wrapper, Configuration.WrapperFunction
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
private static final Logger
static final String
Deprecated.static final String
static final String
static final String
Fields inherited from interface org.eclipse.jetty.webapp.Configuration
ATTR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(WebAppContext context) Configure Apply web-jetty.xml configurationprivate void
setupXmlConfiguration
(WebAppContext context, XmlConfiguration jettyConfig, Resource webInf) Configures some well-known properties before the XmlConfiguration reads the configuration.Methods inherited from class org.eclipse.jetty.webapp.AbstractConfiguration
cloneConfigure, deconfigure, destroy, postConfigure, preConfigure
-
Field Details
-
LOG
-
PROPERTY_THIS_WEB_INF_URL
Deprecated.The value of this property points to the WEB-INF directory of the web-app currently installed. it is passed as a property to the jetty-web.xml file- See Also:
-
PROPERTY_WEB_INF_URI
- See Also:
-
PROPERTY_WEB_INF
- See Also:
-
XML_CONFIGURATION
- See Also:
-
JETTY_WEB_XML
- See Also:
-
-
Constructor Details
-
JettyWebXmlConfiguration
public JettyWebXmlConfiguration()
-
-
Method Details
-
configure
Configure Apply web-jetty.xml configuration- Specified by:
configure
in interfaceConfiguration
- Overrides:
configure
in classAbstractConfiguration
- Parameters:
context
- The context to configure- Throws:
Exception
- if unable to configure- See Also:
-
setupXmlConfiguration
private void setupXmlConfiguration(WebAppContext context, XmlConfiguration jettyConfig, Resource webInf) throws IOException Configures some well-known properties before the XmlConfiguration reads the configuration.- Parameters:
jettyConfig
- The configuration object.webInf
- the WEB-INF location- Throws:
IOException
-