Class HTMLParser.SetLinkReceiver

java.lang.Object
it.unimi.dsi.law.warc.parser.HTMLParser.SetLinkReceiver
All Implemented Interfaces:
Parser.LinkReceiver, Iterable<URI>
Enclosing class:
HTMLParser

public static final class HTMLParser.SetLinkReceiver
extends Object
implements Parser.LinkReceiver
  • Constructor Details

    • SetLinkReceiver

      public SetLinkReceiver()
  • Method Details

    • location

      public void location​(URI location)
      Description copied from interface: Parser.LinkReceiver
      Handles the location defined by headers.
      Specified by:
      location in interface Parser.LinkReceiver
      Parameters:
      location - the location defined by headers.
    • metaLocation

      public void metaLocation​(URI location)
      Description copied from interface: Parser.LinkReceiver
      Handles the location defined by a META element.
      Specified by:
      metaLocation in interface Parser.LinkReceiver
      Parameters:
      location - the location defined by the META element.
    • metaRefresh

      public void metaRefresh​(URI refresh)
      Description copied from interface: Parser.LinkReceiver
      Handles the refresh defined by a META element.
      Specified by:
      metaRefresh in interface Parser.LinkReceiver
      Parameters:
      refresh - the URL defined by the META element.
    • link

      public void link​(URI link)
      Description copied from interface: Parser.LinkReceiver
      Handles a link.
      Specified by:
      link in interface Parser.LinkReceiver
      Parameters:
      link - a link discovered during the parsing phase.
    • init

      public void init​(URI responseUrl)
      Description copied from interface: Parser.LinkReceiver
      Initializes this receiver for a new page.
      Specified by:
      init in interface Parser.LinkReceiver
      Parameters:
      responseUrl - the URL of the page to be parsed.
    • iterator

      public Iterator<URI> iterator()
      Specified by:
      iterator in interface Iterable<URI>