public class WebXml
extends java.lang.Object
| Constructor and Description |
|---|
WebXml(org.w3c.dom.Document document) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
endpointsServiceClasses()
Find endpoint service classes defined in the web.xml.
|
static WebXml |
parse(java.io.File webXml)
Create a instance of WebXml from a file.
|
public static WebXml parse(java.io.File webXml) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
java.io.IOExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationExceptionpublic java.util.List<java.lang.String> endpointsServiceClasses()
EndpointsServlet.
Does NOT handle the case of multiple mappings to the same servlet-class,
it will only return the result to first one that defines the "services" init-param
Does NOT validate that the servlet has a corresponding servlet-mapping