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

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

public class ResolverFilesystem
extends Object
implements ResourceResolver, ResourceResolverLookup

Resolver for local filesystem resources. Use the standard java security-manager to restrict filesystem accesses.

Version:
$Revision: 1513098 $ $Date: 2013-08-12 11:28:33 +0100 (Mon, 12 Aug 2013) $
Author:
$Author: coheigea $

Constructor Summary
ResolverFilesystem()
           
ResolverFilesystem(String uri, String baseURI)
           
 
Method Summary
 ResourceResolverLookup canResolve(String uri, String baseURI)
           
 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

ResolverFilesystem

public ResolverFilesystem()

ResolverFilesystem

public ResolverFilesystem(String uri,
                          String baseURI)
Method Detail

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.