org.opensaml.xml.parse
Class ClasspathResolver
java.lang.Object
org.opensaml.xml.parse.ClasspathResolver
- All Implemented Interfaces:
- LSResourceResolver, EntityResolver
public class ClasspathResolver
- extends Object
- implements EntityResolver, LSResourceResolver
A entity resolver that resolves an entity's location within the classpath.
Entity URIs must begin with the prefix classpath:
and be followed by either an
absolute or relative classpath. Relative classpaths are relative to this class.
This resolver will not attempt to resolve any other URIs.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASSPATH_URI_SCHEME
public static final String CLASSPATH_URI_SCHEME
- UR scheme for classpath locations.
- See Also:
- Constant Field Values
ClasspathResolver
public ClasspathResolver()
resolveEntity
public InputSource resolveEntity(String publicId,
String systemId)
throws SAXException,
IOException
-
- Specified by:
resolveEntity
in interface EntityResolver
- Throws:
SAXException
IOException
resolveResource
public LSInput resolveResource(String type,
String namespaceURI,
String publicId,
String systemId,
String baseURI)
-
- Specified by:
resolveResource
in interface LSResourceResolver
resolver
protected InputStream resolver(String publicId,
String systemId)
- Resolves an id against the classpath. System ID is tried first, then public ID.
- Parameters:
publicId
- resources public IDsystemId
- resources system ID
- Returns:
- resolved resource or null
Copyright © 2006-2011 Internet2. All Rights Reserved.