org.apache.xml.security.stax.impl.resourceResolvers
Class ResolverXPointer

java.lang.Object
  extended by org.apache.xml.security.stax.impl.resourceResolvers.ResolverXPointer
All Implemented Interfaces:
ResourceResolver, ResourceResolverLookup

public class ResolverXPointer
extends Object
implements ResourceResolver, ResourceResolverLookup

Resolver for xpointer references in the same document. Supported xpointers are '#xpointer(/)' and '#xpointer(id('ID'))'

Version:
$Revision: 1395267 $ $Date: 2012-10-07 11:02:46 +0100 (Sun, 07 Oct 2012) $
Author:
$Author: giger $

Constructor Summary
ResolverXPointer()
           
ResolverXPointer(String uri)
           
 
Method Summary
 ResourceResolverLookup canResolve(String uri, String baseURI)
           
 String getId()
           
 InputStream getInputStreamFromExternalReference()
           
 boolean isRootNodeOccured()
           
 boolean isSameDocumentReference()
           
 boolean matches(XMLSecStartElement xmlSecStartElement)
           
 ResourceResolver newInstance(String uri, String baseURI)
           
 void setRootNodeOccured(boolean rootNodeOccured)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolverXPointer

public ResolverXPointer()

ResolverXPointer

public ResolverXPointer(String uri)
Method Detail

getId

public String getId()

isRootNodeOccured

public boolean isRootNodeOccured()

setRootNodeOccured

public void setRootNodeOccured(boolean rootNodeOccured)

canResolve

public ResourceResolverLookup canResolve(String uri,
                                         String baseURI)
Specified by:
canResolve in interface ResourceResolverLookup

newInstance

public ResourceResolver newInstance(String uri,
                                    String baseURI)
Specified by:
newInstance in interface ResourceResolverLookup

isSameDocumentReference

public boolean isSameDocumentReference()
Specified by:
isSameDocumentReference in interface ResourceResolver

matches

public boolean matches(XMLSecStartElement xmlSecStartElement)
Specified by:
matches in interface ResourceResolver

getInputStreamFromExternalReference

public InputStream getInputStreamFromExternalReference()
                                                throws XMLSecurityException
Specified by:
getInputStreamFromExternalReference in interface ResourceResolver
Throws:
XMLSecurityException


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.