org.apache.xml.security.utils.resolver.implementations
Class ResolverXPointer
java.lang.Object
org.apache.xml.security.utils.resolver.ResourceResolverSpi
org.apache.xml.security.utils.resolver.implementations.ResolverXPointer
public class ResolverXPointer
- extends ResourceResolverSpi
Handles barename XPointer Reference URIs.
To retain comments while selecting an element by an identifier ID,
use the following full XPointer: URI='#xpointer(id('ID'))'.
To retain comments while selecting the entire document,
use the following full XPointer: URI='#xpointer(/)'.
This XPointer contains a simple XPath expression that includes
the root node, which the second to last step above replaces with all
nodes of the parse tree (all descendants, plus all attributes,
plus all namespaces nodes).
- Author:
- $Author: coheigea $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResolverXPointer
public ResolverXPointer()
engineIsThreadSafe
public boolean engineIsThreadSafe()
- Description copied from class:
ResourceResolverSpi
- Tells if the implementation does can be reused by several threads safely.
It normally means that the implementation does not have any member, or there is
member change between engineCanResolve & engineResolve invocations. Or it maintains all
member info in ThreadLocal methods.
- Overrides:
engineIsThreadSafe
in class ResourceResolverSpi
engineResolveURI
public XMLSignatureInput engineResolveURI(ResourceResolverContext context)
throws ResourceResolverException
- Description copied from class:
ResourceResolverSpi
- This is the workhorse method used to resolve resources.
- Overrides:
engineResolveURI
in class ResourceResolverSpi
- Parameters:
context
- Context to use to resolve resources.
- Returns:
- the resource wrapped around a XMLSignatureInput
- Throws:
ResourceResolverException
engineCanResolveURI
public boolean engineCanResolveURI(ResourceResolverContext context)
- Description copied from class:
ResourceResolverSpi
- This method helps the
ResourceResolver
to decide whether a
ResourceResolverSpi
is able to perform the requested action.
New clients should override this method, and not override #engineCanResolve(Attr, String)
- Overrides:
engineCanResolveURI
in class ResourceResolverSpi
- Parameters:
context
- Context in which to do resolution.
- Returns:
- true if the engine can resolve the uri
Copyright © 2000–2013 The Apache Software Foundation. All rights reserved.