Package org.ow2.authzforce.core.pdp.api
Interface XmlUtils.XmlnsFilteringParser
-
- All Known Implementing Classes:
XmlUtils.NoXmlnsFilteringParser
,XmlUtils.SAXBasedXmlnsFilteringParser
- Enclosing class:
- XmlUtils
public static interface XmlUtils.XmlnsFilteringParser
(Namespace-filtering) XML-to-JAXB parser
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,String>
getNamespacePrefixUriMap()
Provides namespace prefix-URI mappings found during last call toparse(InputSource)
, if namespace prefix-URI collecting is supported.Object
parse(URL url)
Unmarshal XML data from the specified URL and return the resulting content tree.Object
parse(InputSource source)
Unmarshal XML data from the specified SAX InputSource and return the resulting content tree.
-
-
-
Method Detail
-
parse
Object parse(InputSource source) throws javax.xml.bind.JAXBException, IllegalArgumentException
Unmarshal XML data from the specified SAX InputSource and return the resulting content tree.- Parameters:
source
- the input source to unmarshal XML data from- Returns:
- the newly created root object of the java content tree
- Throws:
javax.xml.bind.JAXBException
- If any unexpected errors occur while unmarshallingIllegalArgumentException
- ifsource
is null
-
parse
Object parse(URL url) throws javax.xml.bind.JAXBException, IllegalArgumentException
Unmarshal XML data from the specified URL and return the resulting content tree.- Parameters:
url
- the URL to unmarshal XML data from- Returns:
- the newly created root object of the java content tree
- Throws:
javax.xml.bind.JAXBException
- If any unexpected errors occur while unmarshallingIllegalArgumentException
- ifurl
is null or invalid
-
getNamespacePrefixUriMap
Map<String,String> getNamespacePrefixUriMap()
Provides namespace prefix-URI mappings found during last call toparse(InputSource)
, if namespace prefix-URI collecting is supported. Such mappings may then be used for namespace-aware XPath evaluation (e.g. XACML xpathExpression values)- Returns:
- namespace prefix-URI mappings; empty if
parse(InputSource)
not called yet, or namespace prefix-URI collecting is not supported
-
-