public class WebXmlParser extends Object
Constructor and Description |
---|
WebXmlParser(boolean namespaceAware,
boolean validation,
boolean blockExternal) |
Modifier and Type | Method and Description |
---|---|
boolean |
parseWebXml(InputSource source,
WebXml dest,
boolean fragment) |
boolean |
parseWebXml(URL url,
WebXml dest,
boolean fragment)
Parse a web descriptor at a location.
|
void |
setClassLoader(ClassLoader classLoader)
Sets the ClassLoader to be used for creating descriptor objects.
|
public WebXmlParser(boolean namespaceAware, boolean validation, boolean blockExternal)
public boolean parseWebXml(URL url, WebXml dest, boolean fragment) throws IOException
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-fragmentIOException
- if there was a problem reading from the URLpublic boolean parseWebXml(InputSource source, WebXml dest, boolean fragment)
public void setClassLoader(ClassLoader classLoader)
classLoader
- the ClassLoader to be used for creating descriptor objectsCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.