org.apache.struts2.views.xslt

## Class ServletURIResolver

- java.lang.Object
- - 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).

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ServletURIResolver(javax.servlet.ServletContext sc)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and 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 Detail

    - #### ServletURIResolver

          public ServletURIResolver(javax.servlet.ServletContext sc)

  - ### Method Detail

    - #### resolve

          public Source resolve(String href,
                       String base)
                         throws TransformerException

      Specified by:
        `resolve` in interface `URIResolver`
      Throws:
        `TransformerException`

Copyright © 2000–2022 Apache Software Foundation. All rights reserved.