org.apache.xml.security.utils.resolver.implementations
Class ResolverXPointer

java.lang.Object
  extended by org.apache.xml.security.utils.resolver.ResourceResolverSpi
      extended by 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: raul $

Field Summary
 
Fields inherited from class org.apache.xml.security.utils.resolver.ResourceResolverSpi
_properties
 
Constructor Summary
ResolverXPointer()
           
 
Method Summary
 boolean engineCanResolve(org.w3c.dom.Attr uri, java.lang.String BaseURI)
          This method helps the ResourceResolver to decide whether a ResourceResolverSpi is able to perform the requested action.
 boolean engineIsThreadSafe()
          Tells if the implementation does can be reused by several threads safely.
 XMLSignatureInput engineResolve(org.w3c.dom.Attr uri, java.lang.String BaseURI)
          This is the workhorse method used to resolve resources.
 
Methods inherited from class org.apache.xml.security.utils.resolver.ResourceResolverSpi
engineAddProperies, engineGetProperty, engineGetPropertyKeys, engineSetProperty, fixURI, understandsProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolverXPointer

public ResolverXPointer()
Method Detail

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 implemantation does not have any member, or there is member change betwen engineCanResolve & engineResolve invocations. Or it mantians all member info in ThreadLocal methods.

Overrides:
engineIsThreadSafe in class ResourceResolverSpi

engineResolve

public XMLSignatureInput engineResolve(org.w3c.dom.Attr uri,
                                       java.lang.String BaseURI)
                                throws ResourceResolverException
Description copied from class: ResourceResolverSpi
This is the workhorse method used to resolve resources.

Specified by:
engineResolve in class ResourceResolverSpi
Returns:
the resource wrapped arround a XMLSignatureInput
Throws:
ResourceResolverException

engineCanResolve

public boolean engineCanResolve(org.w3c.dom.Attr uri,
                                java.lang.String BaseURI)
Description copied from class: ResourceResolverSpi
This method helps the ResourceResolver to decide whether a ResourceResolverSpi is able to perform the requested action.

Specified by:
engineCanResolve in class ResourceResolverSpi
Returns:
true if the engine can resolve the uri


Copyright © 2000-2014 The Apache Software Foundation. All Rights Reserved.