public interface OXQHttpResolverFactory extends OXQEntityResolverFactory
OXQEntityKind.SCHEMA, OXQEntityKind.MODULE, OXQEntityKind.DOCUMENT, OXQEntityKind.XML_ENTITY, or OXQEntityKind.TEXTsystem id is a 'http:' or 'https:' URI| Modifier and Type | Method and Description |
|---|---|
void |
addExcludedURI(java.net.URI uri)
Specifies a URI that must be ignored by the entity resolver.
|
boolean |
getContentTypeFromResponseHeader()
Retrieves whether the media type should be assigned based on the value of the HTTP 'Content-Type' response header.
|
java.net.URI[] |
getExcludedURIs()
Retrieves the URIs that will be ignored by the entity resolver.
|
boolean |
removeExcludedURI(java.net.URI uri)
Removes the given URI from the exclusion list.
|
void |
setContentTypeFromResponseHeader(boolean value)
Sets whether the media type should be assigned based on the value of the HTTP 'Content-Type' response header.
|
createResolvervoid addExcludedURI(java.net.URI uri)
uri - ignored URI, cannot be nulljava.lang.NullPointerException - if given URI is nullfor URIs excluded by defaultboolean removeExcludedURI(java.net.URI uri)
uri - URI, cannot be nulltrue if given URI existed in the exclusion list, false otherwisejava.lang.NullPointerException - if given URI is nullfor URIs excluded by defaultjava.net.URI[] getExcludedURIs()
By default some well-known URIs are automatically added to the exclusion list. The documents corresponding to those URIs are stored internally by the XQuery processor and resolved by the default entity resolver.
The following URIs are excluded by default:
void setContentTypeFromResponseHeader(boolean value)
value - true to assign media type from HTTP header, false otherwise.boolean getContentTypeFromResponseHeader()
true if media type is assigned by HTTP response header, false otherwise.