public class URIDereferencerImpl extends Object implements URIDereferencer
URIDereferencer implementation that supports
dereferencing external URIs using the URLConnection and
same-document URIs supporting XPointer expressions.| Constructor and Description |
|---|
URIDereferencerImpl()
Creates a new instance of this
URIDereferencerImpl. |
| Modifier and Type | Method and Description |
|---|---|
Data |
dereference(URIReference uriReference,
XMLCryptoContext context)
Dereferences the specified
URIReference and returns the
dereferenced data. |
protected Data |
dereferenceExternalURI(URI uri,
XMLCryptoContext context)
Dereferences an external URI.
|
protected Data |
dereferenceInternalURI(URI uri,
Node here,
XMLCryptoContext context)
Derefences an internal (same document or reference) URI.
|
static boolean |
isSameDocumentFullXPointer(String uriString)
This method checks if a URI fragment is a full XPointer.
|
public URIDereferencerImpl()
URIDereferencerImpl.public Data dereference(URIReference uriReference, XMLCryptoContext context) throws URIReferenceException
javax.xml.crypto.URIDereferencerURIReference and returns the
dereferenced data.dereference in interface URIDereferenceruriReference - the URIReferencecontext - an XMLCryptoContext that may contain additional useful
information for dereferencing the URI. This implementation should
dereference the specified URIReference against the
context's baseURI parameter, if specified.URIReferenceException - if an exception occurs while dereferencing the specified
uriReferenceURIDereferencer.dereference(javax.xml.crypto.URIReference,
javax.xml.crypto.XMLCryptoContext)protected Data dereferenceInternalURI(URI uri, Node here, XMLCryptoContext context) throws URIReferenceException
uri - The uri to be dereferenced.here - The here node.context - An XMLCryptoContext that may contain additional useful
information for dereferencing the URI. This implementation should
dereference the specified URIReference against the
context's baseURI parameter, if specified.URIReferenceException - if an exception occurs while dereferencing the specified
uriReferenceprotected Data dereferenceExternalURI(URI uri, XMLCryptoContext context) throws URIReferenceException
uri - The uri to be dereferenced.context - An XMLCryptoContext that may contain additional useful
information for dereferencing the URI. This implementation should
dereference the specified URIReference against the
context's baseURI parameter, if specified.URIReferenceException - if an exception occurs while dereferencing the specified
uriReferencepublic static boolean isSameDocumentFullXPointer(String uriString) throws URIReferenceException
uriString - a String that represents a URI reference.URIReferenceException© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC