org.apache.struts2.views.xslt
Class ServletURIResolver

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

public class ServletURIResolver
extends Object
implements 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).


Field Summary
private  Logger log
           
(package private) static String PROTOCOL
           
private  ServletContext sc
           
 
Constructor Summary
ServletURIResolver(ServletContext sc)
           
 
Method Summary
 Source resolve(String href, String base)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private Logger log

PROTOCOL

static final String PROTOCOL
See Also:
Constant Field Values

sc

private ServletContext sc
Constructor Detail

ServletURIResolver

public ServletURIResolver(ServletContext sc)
Method Detail

resolve

public Source resolve(String href,
                      String base)
               throws TransformerException
Specified by:
resolve in interface URIResolver
Throws:
TransformerException


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