Package org.apache.struts2.result.xslt

# Class ServletURIResolver

java.lang.Object
org.apache.struts2.result.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).

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ServletURIResolver(jakarta.servlet.ServletContext servletContext)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Source`
  `resolve(String href, String base)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ServletURIResolver

    public ServletURIResolver(jakarta.servlet.ServletContext servletContext)

- ## Method Details

  - ### resolve

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