public interface WebXmlContainer<T extends <any>> extends JBossDeploymentStructureContainer<T>
web.xml
.PRIMARY_JBOSS_DEPLOYMENT_DESCRIPTOR_PATH, SECONDARY_JBOSS_DEPLOYMENT_DESCRIPTOR_PATH
Modifier and Type | Method and Description |
---|---|
default T |
addContextParam(String name,
String... values)
Add a context parameter.
|
default T |
addFaviconExceptionHandler()
Add the default Thorntail
favicon.ico handler. |
default Servlet |
addServlet(String servletName,
String servletClass)
Add a servlet.
|
default WebXmlAsset |
findWebXmlAsset()
Locate or create a
web.xml asset. |
default String |
getContextParamValue(String name)
Retrieve the context parameter value.
|
default Servlet |
servlet(String servletClass)
Retrieve a servlet by class.
|
addModule, addModule, excludeModule, excludeModule, getDescriptorAsset
default T addContextParam(String name, String... values)
name
- The name of the context parameter.values
- The values for the context parameter.default String getContextParamValue(String name)
name
- The name of the context parameter.default T addFaviconExceptionHandler() throws IOException
favicon.ico
handler.IOException
default Servlet addServlet(String servletName, String servletClass)
servletName
- The name of the servlet.servletClass
- The class of the servlet.default Servlet servlet(String servletClass)
servletClass
- The servlet class.default WebXmlAsset findWebXmlAsset()
web.xml
asset.web.xml
.Copyright © 2019 JBoss by Red Hat. All rights reserved.