public class StandardURIResolver extends Object implements NonDelegatingURIResolver, Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
recognizeQueryParameters |
Constructor and Description |
---|
StandardURIResolver()
Deprecated.
since 8.7
|
StandardURIResolver(Configuration config)
Create a StandardURIResolver, with a reference to a Configuration
|
Modifier and Type | Method and Description |
---|---|
protected Platform |
getPlatform()
Get the relevant platform
|
protected Source |
getPTreeSource(String href,
String base)
Handle a PTree source file (Saxon-SA only)
|
boolean |
queryParametersAreRecognized()
Determine whether query parameters (such as validation=strict) are to be recognized
|
Source |
resolve(String href,
String base)
Resolve a URI
|
void |
setRecognizeQueryParameters(boolean recognize)
Indicate that query parameters (such as ?validation=strict) are to be recognized
|
public StandardURIResolver()
public StandardURIResolver(Configuration config)
config
- The Configuration object.
This is used to get a SAX Parser for a source XML documentpublic void setRecognizeQueryParameters(boolean recognize)
recognize
- Set to true if query parameters in the URI are to be recognized and acted upon.
The default (for compatibility and interoperability reasons) is false.public boolean queryParametersAreRecognized()
protected Platform getPlatform()
public Source resolve(String href, String base) throws XPathException
resolve
in interface URIResolver
href
- The relative or absolute URI. May be an empty string. May contain
a fragment identifier starting with "#", which must be the value of an ID attribute
in the referenced XML document.base
- The base URI that should be used. May be null if uri is absolute.XPathException
protected Source getPTreeSource(String href, String base) throws XPathException
XPathException