org.apache.struts2.views.xslt
Class ServletURIResolver

java.lang.Object
  extended by org.apache.struts2.views.xslt.ServletURIResolver
All Implemented Interfaces:
javax.xml.transform.URIResolver

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

ServletURIResolver is a URIResolver that can retrieve resources from the servlet context using the scheme "response". e.g. A URI resolver is called when a stylesheet uses an xsl:include, xsl:import, or document() function to find the resource (file).


Constructor Summary
ServletURIResolver(javax.servlet.ServletContext sc)
           
 
Method Summary
 javax.xml.transform.Source resolve(java.lang.String href, java.lang.String base)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletURIResolver

public ServletURIResolver(javax.servlet.ServletContext sc)
Method Detail

resolve

public javax.xml.transform.Source resolve(java.lang.String href,
                                          java.lang.String base)
                                   throws javax.xml.transform.TransformerException
Specified by:
resolve in interface javax.xml.transform.URIResolver
Throws:
javax.xml.transform.TransformerException


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.