- All Implemented Interfaces:
public class ChainedResourceResolver extends java.lang.Object implements ResourceResolverAn ResourceResolver that first tries one supplied ResourceResolver, and if that returns null, falls back to another. Either ResourceResolver may itself be a
ChainedResourceResolver, so a chain of any length can be established.
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
resolve(ResourceRequest request)Process a resource request to deliver a resource
public javax.xml.transform.Source resolve(ResourceRequest request) throws XPathExceptionDescription copied from interface:
ResourceResolverProcess a resource request to deliver a resource
- Specified by:
request- the resource request
- the returned Source; or null to delegate resolution to another resolver. The type of Source
must correspond to the type of resource requested: for non-XML resources, it should generally be a
XPathException- if the request is invalid in some way, or if the identified resource is unsuitable, or if resolution is to fail rather than being delegated to another resolver.