Interface ResolverResourceInfo
-
- All Known Implementing Classes:
ResolvedResource
,ResolverInputSource
,ResolverLSInput
,ResolverSAXSource
public interface ResolverResourceInfo
Information about a resolved resource.This interface exposes information about the resolved resource. For some resource types, only the resolved URI is available. For others, for example, when HTTP URIs are retrieved, status code and headers may also be available.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getHeader(java.lang.String headerName)
Get the value of a header field.java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getHeaders()
Return the headers associated with this resource.java.net.URI
getResolvedURI()
Returns the resolved URI associated with the request.int
getStatusCode()
Returns the status code associated with the request.
-
-
-
Method Detail
-
getResolvedURI
java.net.URI getResolvedURI()
Returns the resolved URI associated with the request.- Returns:
- the resolved URI.
-
getStatusCode
int getStatusCode()
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.
- Returns:
- the status code
-
getHeaders
java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
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.
- Returns:
- the headers
-
getHeader
java.lang.String getHeader(java.lang.String headerName)
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.
- Parameters:
headerName
- the name of the header whose value should be returned.- Returns:
- the (first value) of the named header.
-
-