org.aris.actionservlet
Class ActionUriResolver

java.lang.Object
  extended by org.aris.actionservlet.ActionUriResolver
All Implemented Interfaces:
javax.xml.transform.URIResolver

public class ActionUriResolver
extends java.lang.Object
implements javax.xml.transform.URIResolver

This handles all the xsl:import URI conversions. The URI's point to files in the TEMPLATE directory.

Author:
Aris

Constructor Summary
ActionUriResolver(Config config)
          Creates a new instance of hlUriResolver
 
Method Summary
 javax.xml.transform.Source resolve(java.lang.String href, java.lang.String base)
          Maps URI's of xsl:import to valid links to files in the TEMPLATES directory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionUriResolver

public ActionUriResolver(Config config)
Creates a new instance of hlUriResolver

Parameters:
config - The Config is needed in order to get some attributes, like the TEMPLATE directory location.
Method Detail

resolve

public javax.xml.transform.Source resolve(java.lang.String href,
                                          java.lang.String base)
Maps URI's of xsl:import to valid links to files in the TEMPLATES directory.

Specified by:
resolve in interface javax.xml.transform.URIResolver
Parameters:
href - The URI
base - ignored
Returns:
A Source of the file inside the TEMPLATES directory.