public class ResourceRequest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
baseUri
The base URI that was used to resolve any relative URI, if known.
|
static java.lang.String |
DTD_NATURE |
java.lang.String |
entityName
The name of the requested resource, used when resolving entity references
|
static java.lang.String |
EXTERNAL_ENTITY_NATURE |
java.lang.String |
nature
The
Nature of the resource, as defined in the RDDL specifications (based on the role
attribute in XLink). |
java.lang.String |
publicId
The public ID of the requested resource, where applicable
|
java.lang.String |
purpose
The
Purpose of the request, as defined in the RDDL specifications (based on the arcrole
attribute in XLink). |
java.lang.String |
relativeUri
The relative URI that was actually requested, where applicable.
|
boolean |
streamable
This boolean flag is set to true when the URI identifies a document where streamed processing is
required.
|
static java.lang.String |
TEXT_NATURE |
java.lang.String |
uri
The URI to be dereferenced.
|
boolean |
uriIsNamespace
This boolean flag is set to true when the URI takes the form of a namespace URI (rather than a location
hint).
|
static java.lang.String |
XML_NATURE |
static java.lang.String |
XQUERY_NATURE |
static java.lang.String |
XSD_NATURE |
static java.lang.String |
XSLT_NATURE |
Constructor and Description |
---|
ResourceRequest() |
Modifier and Type | Method and Description |
---|---|
ResourceRequest |
copy()
Make a copy of a resource request (so that it can be modified without changing the original)
|
javax.xml.transform.Source |
resolve(ResourceResolver... resolvers)
Resolve the request by passing it to one or more resource resolvers.
|
public static final java.lang.String TEXT_NATURE
public static final java.lang.String XQUERY_NATURE
public static final java.lang.String XSLT_NATURE
public static final java.lang.String XSD_NATURE
public static final java.lang.String XML_NATURE
public static final java.lang.String DTD_NATURE
public static final java.lang.String EXTERNAL_ENTITY_NATURE
public java.lang.String uri
public java.lang.String baseUri
public java.lang.String relativeUri
public java.lang.String publicId
public java.lang.String entityName
public java.lang.String nature
Nature
of the resource, as defined in the RDDL specifications (based on the role
attribute in XLink). Some of the allowed values are provided as constants, for example
TEXT_NATURE
, XSLT_NATURE
, XQUERY_NATURE
.public java.lang.String purpose
Purpose
of the request, as defined in the RDDL specifications (based on the arcrole
attribute in XLink).public boolean uriIsNamespace
import module
declaration in XQuery when only
the module namespace is known, and when resolving an xsl:import
, or an XML Schema import in XSLT
or XQuery, if only the target namespace of the required schema document is known.public boolean streamable
public ResourceRequest copy()
public javax.xml.transform.Source resolve(ResourceResolver... resolvers) throws XPathException
resolvers
- the resource resolvers to be usedXPathException
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.