Package org.xmlresolver.sources
Class ResolverLSInput
java.lang.Object
org.xmlresolver.sources.ResolverLSInput
- All Implemented Interfaces:
LSInput
,ResolverResourceInfo
An
LSInput
with a resolvedURI
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResolverLSInput
(ResolvedResource rsrc, String publicId) Construct theLSInput
while preserving the local URI.ResolverLSInput
(Resource rsrc, String publicId, String systemId) Construct theLSInput
while preserving the local URI. -
Method Summary
Modifier and TypeMethodDescriptionThe LSInput API...The LSInput API...boolean
The LSInput API...The LSInput API...The LSInput API...Get the value of a header field.Return the headers associated with this resource.The LSInput API...Returns the resolved URI associated with the request.int
Returns the status code associated with the request.The LSInput API...The LSInput API...void
setBaseURI
(String string) The LSInput API...void
setByteStream
(InputStream inputStream) The LSInput API...void
setCertifiedText
(boolean b) The LSInput API...void
setCharacterStream
(Reader reader) The LSInput API...void
setEncoding
(String string) The LSInput API...void
setPublicId
(String string) The LSInput API...void
setStringData
(String string) The LSInput API...void
setSystemId
(String string) The LSInput API...
-
Field Details
-
resolvedURI
The underlying, resolved URI.
-
-
Constructor Details
-
ResolverLSInput
Construct theLSInput
while preserving the local URI.- Parameters:
rsrc
- The resolver resource.publicId
- The publicId.systemId
- The systemId.
-
ResolverLSInput
Construct theLSInput
while preserving the local URI. If the resolved resource is available, we can get everything except the public identifier from that resolved resource.- Parameters:
rsrc
- The resolved resource.publicId
- The publicId.
-
-
Method Details
-
getCharacterStream
The LSInput API...- Specified by:
getCharacterStream
in interfaceLSInput
-
setCharacterStream
The LSInput API... This method always throws anUnsupportedOperationException
.- Specified by:
setCharacterStream
in interfaceLSInput
-
getByteStream
The LSInput API...- Specified by:
getByteStream
in interfaceLSInput
-
setByteStream
The LSInput API... This method always throws anUnsupportedOperationException
.- Specified by:
setByteStream
in interfaceLSInput
-
getStringData
The LSInput API...- Specified by:
getStringData
in interfaceLSInput
-
setStringData
The LSInput API... This method always throws anUnsupportedOperationException
.- Specified by:
setStringData
in interfaceLSInput
-
getSystemId
The LSInput API...- Specified by:
getSystemId
in interfaceLSInput
-
setSystemId
The LSInput API... This method always throws anUnsupportedOperationException
.- Specified by:
setSystemId
in interfaceLSInput
-
getPublicId
The LSInput API...- Specified by:
getPublicId
in interfaceLSInput
-
setPublicId
The LSInput API... This method always throws anUnsupportedOperationException
.- Specified by:
setPublicId
in interfaceLSInput
-
getBaseURI
The LSInput API...- Specified by:
getBaseURI
in interfaceLSInput
-
setBaseURI
The LSInput API... This method always throws anUnsupportedOperationException
.- Specified by:
setBaseURI
in interfaceLSInput
-
getEncoding
The LSInput API...- Specified by:
getEncoding
in interfaceLSInput
-
setEncoding
The LSInput API... This method always throws anUnsupportedOperationException
.- Specified by:
setEncoding
in interfaceLSInput
-
getCertifiedText
public boolean getCertifiedText()The LSInput API...- Specified by:
getCertifiedText
in interfaceLSInput
-
setCertifiedText
public void setCertifiedText(boolean b) The LSInput API... This method always throws anUnsupportedOperationException
.- Specified by:
setCertifiedText
in interfaceLSInput
-
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.
-