Class DOM4JUserAgent.AgentXHTMLDocumentFactory.AgentXHTMLDocument

All Implemented Interfaces:
CSSDocument, CSSNode, Serializable, Cloneable, Branch, Document, Node, Document, Node, DocumentStyle
Enclosing class:
DOM4JUserAgent.AgentXHTMLDocumentFactory

public class DOM4JUserAgent.AgentXHTMLDocumentFactory.AgentXHTMLDocument extends XHTMLDocument
See Also:
  • Method Details

    • openConnection

      public URLConnection openConnection(URL url) throws IOException
      Description copied from class: XHTMLDocument
      Opens a connection for the given URL.
      Specified by:
      openConnection in interface CSSDocument
      Overrides:
      openConnection in class XHTMLDocument
      Parameters:
      url - the URL to open a connection to.
      Returns:
      the URL connection.
      Throws:
      IOException - if the connection could not be opened.
    • isVisitedURI

      public boolean isVisitedURI(String href)
      Description copied from interface: CSSDocument
      Has this URI been visited by the agent ?
      Specified by:
      isVisitedURI in interface CSSDocument
      Overrides:
      isVisitedURI in class XHTMLDocument
      Parameters:
      href - the URI.
      Returns:
      true if visited, false if not visited or the agent does not support history.
    • setLoadingTime

      public void setLoadingTime(long time)
      Set the time at which this document was loaded from origin.
      Parameters:
      time - the time of loading, in milliseconds.
    • setReferrerPolicyHeader

      protected void setReferrerPolicyHeader(String policy)
      Overrides:
      setReferrerPolicyHeader in class XHTMLDocument