Package org.xmlresolver.sources
Class ResolverSAXSource
java.lang.Object
javax.xml.transform.sax.SAXSource
org.xmlresolver.sources.ResolverSAXSource
- All Implemented Interfaces:
Source
,ResolverResourceInfo
A
SAXSource
with a resolvedURI
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResolverSAXSource
(URI localURI, InputSource source) Construct aSAXSource
while preserving the local URI. -
Method Summary
Modifier and TypeMethodDescriptionGet the value of a header field.Return the headers associated with this resource.Returns the resolved URI associated with the request.int
Returns the status code associated with the request.Methods inherited from class javax.xml.transform.sax.SAXSource
getInputSource, getSystemId, getXMLReader, isEmpty, setInputSource, setSystemId, setXMLReader, sourceToInputSource
-
Field Details
-
resolvedURI
The underlying, resolved URI.
-
-
Constructor Details
-
ResolverSAXSource
Construct aSAXSource
while preserving the local URI.- Parameters:
localURI
- The local URI.source
- The input source to return for this source.
-
ResolverSAXSource
-
-
Method Details
-
getResolvedURI
Description copied from interface:ResolverResourceInfo
Returns the resolved URI associated with the request.- Specified by:
getResolvedURI
in interfaceResolverResourceInfo
- Returns:
- the resolved URI.
-
getStatusCode
public int getStatusCode()Description copied from interface:ResolverResourceInfo
Returns the status code associated with the request.If the response included a status code, that value will be returned. For protocols that don't have a status code (such as file:), 200 is returned for convenience.
- Specified by:
getStatusCode
in interfaceResolverResourceInfo
- Returns:
- the status code
-
getHeaders
Description copied from interface:ResolverResourceInfo
Return the headers associated with this resource.Returns the headers, if any, associated with this resource. For example, an HTTP resource might include the headers returned by the server.
- Specified by:
getHeaders
in interfaceResolverResourceInfo
- Returns:
- the headers
-
getHeader
Description copied from interface:ResolverResourceInfo
Get the value of a header field.Returns the first value of a header witht he specified name. This is a convenience method because header names have to be compared without case sensitivity. If the header has more than one value, only the first is returned.
- Specified by:
getHeader
in interfaceResolverResourceInfo
- Parameters:
headerName
- the name of the header whose value should be returned.- Returns:
- the (first value) of the named header.
-