org.n52.security.common.xml
Class ClasspathLSResourceResolver
java.lang.Object
org.n52.security.common.xml.ClasspathEntityResolver
org.n52.security.common.xml.ClasspathLSResourceResolver
- All Implemented Interfaces:
- LSResourceResolver, EntityResolver
public class ClasspathLSResourceResolver
- extends ClasspathEntityResolver
- implements LSResourceResolver
Resolves resources based on the entity mapping file.
In contrast to the quite mode of the EnityResolver, the quite mode of a resource resolver,
only ensures, that unknown xsd mappings are never resolved,
this means that a xsd validator will never contain warnings about non resloved xsd files.
So be carefull with the quite mode of the resource resolver.
- Version:
- $Revision: $
- Author:
- Marko Reiprecht
Created on 23.03.2008
- See Also:
ClasspathEntityResolver
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClasspathLSResourceResolver
public ClasspathLSResourceResolver()
ClasspathLSResourceResolver
public ClasspathLSResourceResolver(boolean quite)
- Parameters:
quite
- the quite mode.
ClasspathLSResourceResolver
public ClasspathLSResourceResolver(boolean quite,
ClassLoader loader)
- Parameters:
quite
- the quite mode.loader
- the classloader to use, if null this.getClass().getClassLoader() is used.
resolveResource
public LSInput resolveResource(String type,
String namespaceURI,
String publicId,
String systemId,
String baseURI)
- Method resolveResource resolves the resource by looking for special mapping file.
First it looks for a namespaceURI mapping, then for a publicId mapping and then for a systemId mapping.
If none mapping is found it returns a "emtpy" inputsource in quite mode or null in nonquite mode.
- Specified by:
resolveResource
in interface LSResourceResolver
- Parameters:
type
- the type.namespaceURI
- the namespaceURI.publicId
- the publicId.systemId
- the systemId.baseURI
- the baseURI.
- Returns:
- LSInput.
Copyright © 2004–2014 52north.org. All rights reserved.