|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.lib.StandardURIResolver
public class StandardURIResolver
This class provides the service of converting a URI into an InputSource. It is used to get stylesheet modules referenced by xsl:import and xsl:include, and source documents referenced by the document() function. The standard version handles anything that the java URL class will handle. You can write a subclass to handle other kinds of URI, e.g. references to things in a database.
Field Summary | |
---|---|
protected boolean |
recognizeQueryParameters
|
Constructor Summary | |
---|---|
StandardURIResolver()
Deprecated. since 8.7 |
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean recognizeQueryParameters
Constructor Detail |
---|
public StandardURIResolver()
public StandardURIResolver(Configuration config)
config
- The Configuration object.
This is used to get a SAX Parser for a source XML documentMethod Detail |
---|
public 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 void setConfiguration(Configuration config)
config
- the configurationpublic Configuration getConfiguration()
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
href
- the relative URIbase
- the base URI
XPathException
protected void setSAXInputSource(SAXSource source, String uriString)
source
- the SAXSource being initializeduriString
- the absolute (resolved) URI to be used
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |