Enumeration
of URL
s
The semantic meaning of the query and language depend on the actual implementation and storage used for the resources. For JCR repository being used as storage, the query and language parameters are used to create a JCR Query
through the QueryManager
. The result returned is then based on the NodeIterator
provided by the query result.
@param query The query string to use to find the resources.
@param language The language in which the query is formulated.
@return An Iterator
of {@link Resource} objects matching thequery. If no resources match, null
might be returned instead of an empty iterator.
@throws QuerySyntaxException If the query is not syntactically correctaccording to the query language indicator or if the query language is not supported as specified in {@link #LANGUAGES}.
@throws org.apache.sling.api.SlingException If an error occurs queryingfor the resources.
@throws IllegalStateException if this resource provider has already beenclosed.
The semantic meaning of the query and language depend on the actual implementation and storage used for the resources. For JCR repository being used as storage, the query and language parameters are used to create a JCR Query
through the QueryManager
. The result returned is then based on the NodeIterator
provided by the query result.
@param query The query string to use to find the resources.
@param language The language in which the query is formulated. Thelanguage should always be specified. However for compatibility with older version, if no language is specified, "xpath" is used.
@return An Iterator
of {@link Resource} objects matching thequery.
@throws QuerySyntaxException If the query is not syntactically correctaccording to the query language indicator.
@throws org.apache.sling.api.SlingException If an error occurs queryingfor the resources.
@throws IllegalStateException if this resource resolver has already been{@link #close() closed}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|