Class WebXmlParser
java.lang.Object
org.apache.tomcat.util.descriptor.web.WebXmlParser
-
Constructor Summary
ConstructorDescriptionWebXmlParser
(boolean namespaceAware, boolean validation, boolean blockExternal) -
Method Summary
Modifier and TypeMethodDescriptionboolean
parseWebXml
(URL url, WebXml dest, boolean fragment) Parse a web descriptor at a location.boolean
parseWebXml
(InputSource source, WebXml dest, boolean fragment) void
setClassLoader
(ClassLoader classLoader) Sets the ClassLoader to be used for creating descriptor objects.
-
Constructor Details
-
WebXmlParser
public WebXmlParser(boolean namespaceAware, boolean validation, boolean blockExternal)
-
-
Method Details
-
parseWebXml
Parse a web descriptor at a location.- Parameters:
url
- the location; if null no load will be attempteddest
- the instance to be populated by the parse operationfragment
- indicate if the descriptor is a web-app or web-fragment- Returns:
- true if the descriptor was successfully parsed
- Throws:
IOException
- if there was a problem reading from the URL
-
parseWebXml
-
setClassLoader
Sets the ClassLoader to be used for creating descriptor objects.- Parameters:
classLoader
- the ClassLoader to be used for creating descriptor objects
-