Top Description Fields Constructors Methods
org.eclipse.jetty.ee10.webapp

public Class JettyWebXmlConfiguration

extends AbstractConfiguration
Class Inheritance
Imports
java.io.IOException, java.util.Map, org.eclipse.jetty.util.resource.Resource, .Resources, org.eclipse.jetty.xml.XmlConfiguration, org.slf4j.Logger, .LoggerFactory

JettyWebConfiguration. Looks for XmlConfiguration files in WEB-INF. Searches in order for the first of jetty8-web.xml, jetty-web.xml or web-jetty.xml

Field Summary

Modifier and TypeField and Description
public static final String
private static final Logger
public static final String
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
configure(WebAppContext
The context to configure
context
)

Overrides org.eclipse.jetty.ee10.webapp.AbstractConfiguration.configure.

Implements org.eclipse.jetty.ee10.webapp.Configuration.configure.

Configure Apply web-jetty.xml configuration
private void
setupXmlConfiguration(WebAppContext context, XmlConfiguration
The configuration object.
jettyConfig
,
Resource
the WEB-INF location
webInf
)

Configures some well-known properties before the XmlConfiguration reads the configuration.

Inherited from org.eclipse.jetty.ee10.webapp.AbstractConfiguration:
abortdeconfiguredestroygetDependenciesgetDependentsgetServerClassesgetSystemClassesisEnabledByDefaultpostConfigurepreConfigure

Field Detail

JETTY_WEB_XMLback to summary
public static final String JETTY_WEB_XML
LOGback to summary
private static final Logger LOG
PROPERTY_WEB_INFback to summary
public static final String PROPERTY_WEB_INF
PROPERTY_WEB_INF_URIback to summary
public static final String PROPERTY_WEB_INF_URI
XML_CONFIGURATIONback to summary
public static final String XML_CONFIGURATION

Constructor Detail

JettyWebXmlConfigurationback to summary
public JettyWebXmlConfiguration()

Method Detail

configureback to summary
public void configure(WebAppContext context) throws Exception

Overrides org.eclipse.jetty.ee10.webapp.AbstractConfiguration.configure.

Implements org.eclipse.jetty.ee10.webapp.Configuration.configure.

Configure Apply web-jetty.xml configuration

Parameters
context:WebAppContext

Doc from org.eclipse.jetty.ee10.webapp.Configuration.configure.

The context to configure

Annotations
@Override
Exceptions
Exception:

Doc from org.eclipse.jetty.ee10.webapp.Configuration.configure.

if unable to configure

See Also
Configuration#configure(WebAppContext)
setupXmlConfigurationback to summary
private void setupXmlConfiguration(WebAppContext context, XmlConfiguration jettyConfig, Resource webInf) throws IOException

Configures some well-known properties before the XmlConfiguration reads the configuration.

Parameters
jettyConfig:XmlConfiguration

The configuration object.

webInf:Resource

the WEB-INF location