net.sf.saxon
public class StandardURIResolver extends Object implements NonDelegatingURIResolver, Serializable
Field Summary | |
---|---|
protected boolean | recognizeQueryParameters |
Constructor Summary | |
---|---|
StandardURIResolver()
Create a StandardURIResolver, with no reference to a Configuration.
| |
StandardURIResolver(Configuration config)
Create a StandardURIResolver, with a reference to a Configuration |
Method Summary | |
---|---|
Configuration | getConfiguration()
Get the configuration if available |
protected Platform | getPlatform()
Get the relevant platform |
protected Source | getPTreeSource(String href, String base)
Handle a PTree source file (Saxon-EE 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 | setConfiguration(Configuration config)
Set the configuration |
void | setRecognizeQueryParameters(boolean recognize)
Indicate that query parameters (such as validation=strict) are to be recognized |
protected void | setSAXInputSource(SAXSource source, String uriString)
Set the InputSource part of the returned SAXSource. |
Deprecated: since 8.7
Create a StandardURIResolver, with no reference to a Configuration. This constructor is not used internally by Saxon, but it may be used by user-written application code. It is deprecated because the StandardURIResolver works best when the Configuration is known.Parameters: config The Configuration object. This is used to get a SAX Parser for a source XML document
Returns: the configuration
Returns: the platform
Parameters: href the relative URI base the base URI
Returns: the new Source object
Returns: true if query parameters are recognized and interpreted by Saxon.
Parameters: 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.
Returns: a Source object representing an XML document
Parameters: config the configuration
Parameters: 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.
Parameters: source the SAXSource being initialized uriString the absolute (resolved) URI to be used