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 theLSInputwhile preserving the local URI.ResolverLSInput(Resource rsrc, String publicId, String systemId) Construct theLSInputwhile preserving the local URI. -
Method Summary
Modifier and TypeMethodDescriptionThe LSInput API...The LSInput API...booleanThe 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.intReturns the status code associated with the request.The LSInput API...The LSInput API...voidsetBaseURI(String string) The LSInput API...voidsetByteStream(InputStream inputStream) The LSInput API...voidsetCertifiedText(boolean b) The LSInput API...voidsetCharacterStream(Reader reader) The LSInput API...voidsetEncoding(String string) The LSInput API...voidsetPublicId(String string) The LSInput API...voidsetStringData(String string) The LSInput API...voidsetSystemId(String string) The LSInput API...
-
Field Details
-
resolvedURI
The underlying, resolved URI.
-
-
Constructor Details
-
ResolverLSInput
-
ResolverLSInput
Construct theLSInputwhile 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:
getCharacterStreamin interfaceLSInput
-
setCharacterStream
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setCharacterStreamin interfaceLSInput
-
getByteStream
The LSInput API...- Specified by:
getByteStreamin interfaceLSInput
-
setByteStream
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setByteStreamin interfaceLSInput
-
getStringData
-
setStringData
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setStringDatain interfaceLSInput
-
getSystemId
-
setSystemId
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setSystemIdin interfaceLSInput
-
getPublicId
-
setPublicId
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setPublicIdin interfaceLSInput
-
getBaseURI
-
setBaseURI
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setBaseURIin interfaceLSInput
-
getEncoding
-
setEncoding
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setEncodingin interfaceLSInput
-
getCertifiedText
public boolean getCertifiedText()The LSInput API...- Specified by:
getCertifiedTextin interfaceLSInput
-
setCertifiedText
public void setCertifiedText(boolean b) The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setCertifiedTextin interfaceLSInput
-
getResolvedURI
Description copied from interface:ResolverResourceInfoReturns the resolved URI associated with the request.- Specified by:
getResolvedURIin interfaceResolverResourceInfo- Returns:
- the resolved URI.
-
getStatusCode
public int getStatusCode()Description copied from interface:ResolverResourceInfoReturns 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:
getStatusCodein interfaceResolverResourceInfo- Returns:
- the status code
-
getHeaders
Description copied from interface:ResolverResourceInfoReturn 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:
getHeadersin interfaceResolverResourceInfo- Returns:
- the headers
-
getHeader
Description copied from interface:ResolverResourceInfoGet 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:
getHeaderin interfaceResolverResourceInfo- Parameters:
headerName- the name of the header whose value should be returned.- Returns:
- the (first value) of the named header.
-