org.jasig.portal.car
Class ResourceResolver

java.lang.Object
  extended by org.jasig.portal.car.ResourceResolver
All Implemented Interfaces:
URIResolver

public class ResourceResolver
extends Object
implements URIResolver

Enables resolving of external resources specified in xsl:import or xsl:include elements or the document() allowing such resources to also be found within CARs.

Version:
$Revision: 19776 $
Author:
Mark Boyd mark.boyd@engineer.com

Constructor Summary
ResourceResolver()
           
 
Method Summary
 Source resolve(String href, String base)
          Allows external resources specified in xsl:import or xsl:include elements or the document() method to be resolved in custom manner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceResolver

public ResourceResolver()
Method Detail

resolve

public Source resolve(String href,
                      String base)
               throws TransformerException
Allows external resources specified in xsl:import or xsl:include elements or the document() method to be resolved in custom manner. This allows resources in CARs to be accessed readily via these xsl constructs. If the specified resource is not found within a CAR then a null value is returned allowing the processor to try and resolve it in some other way.

Specified by:
resolve in interface URIResolver
Throws:
TransformerException
See Also:
URIResolver.resolve(java.lang.String, java.lang.String)


Copyright © 2010 Jasig. All Rights Reserved.