Interface ResolverResourceInfo

All Known Implementing Classes:
ResolvedResource, ResolvedResourceImpl, 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

    Modifier and Type
    Method
    Description
    getHeader(String headerName)
    Get 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.
  • Method Details

    • getResolvedURI

      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

      Map<String,List<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

      String getHeader(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.