org.deegree.commons.xml.schema
Class RedirectingEntityResolver

java.lang.Object
  extended by org.deegree.commons.xml.schema.RedirectingEntityResolver
All Implemented Interfaces:
org.apache.xerces.xni.parser.XMLEntityResolver

public class RedirectingEntityResolver
extends Object
implements org.apache.xerces.xni.parser.XMLEntityResolver

Xerces entity resolver that performs redirection of requests for OpenGIS core schemas (e.g. GML) to a local copy on the classpath.

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$

Constructor Summary
RedirectingEntityResolver()
           
 
Method Summary
 String redirect(String systemId)
          Redirects the given entity URL, returning a local URL if available.
 org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier identifier)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedirectingEntityResolver

public RedirectingEntityResolver()
Method Detail

redirect

public String redirect(String systemId)
Redirects the given entity URL, returning a local URL if available.

Parameters:
systemId - entity URL, must not be null
Returns:
redirected URL, identical to input if it cannot be redirected, never null

resolveEntity

public org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier identifier)
                                                          throws org.apache.xerces.xni.XNIException,
                                                                 IOException
Specified by:
resolveEntity in interface org.apache.xerces.xni.parser.XMLEntityResolver
Throws:
org.apache.xerces.xni.XNIException
IOException


Copyright © 2011. All Rights Reserved.