Interface ExternalContent


public interface ExternalContent
Interface for the ExternalContent information class.
Author:
bseeger
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Fetch the external content
    long
    Returns the size of the content located at the link header
    Returns the content type located in the link header.
    Retrieve handling information
    Retrieve URI in link header
    Retrieve url in link header
    boolean
    Returns whether or not the handling parameter is "copy"
    boolean
    Returns whether or not the handling parameter is "proxy"
    boolean
    Returns whether or not the handling parameter is "redirect"
  • Field Details

  • Method Details

    • getContentType

      Returns the content type located in the link header.
      Returns:
      content type if in Link header, else null
    • getContentSize

      Returns the size of the content located at the link header
      Returns:
      content size
    • getHandling

      Retrieve handling information
      Returns:
      a String containing the type of handling requested ["proxy", "copy" or "redirect"]
    • getURL

      Retrieve url in link header
      Returns:
      a String of the URL that was in the Link header
    • getURI

      Retrieve URI in link header
      Returns:
      a URI to the external content
    • isCopy

      boolean isCopy()
      Returns whether or not the handling parameter is "copy"
      Returns:
      boolean value representing whether or not the content handling is "copy"
    • isRedirect

      boolean isRedirect()
      Returns whether or not the handling parameter is "redirect"
      Returns:
      boolean value representing whether or not the content handling is "redirect"
    • isProxy

      boolean isProxy()
      Returns whether or not the handling parameter is "proxy"
      Returns:
      boolean value representing whether or not the content handling is "proxy"
    • fetchExternalContent

      Fetch the external content
      Returns:
      InputStream containing the external content