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

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

public class ResolverSameDocument
extends Object
implements ResourceResolver, ResourceResolverLookup

Resolver for references in the same document.

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

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

Constructor Detail

ResolverSameDocument

public ResolverSameDocument()

ResolverSameDocument

public ResolverSameDocument(String uri)
Method Detail

getId

public String getId()

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.