Class RemoteDocument


  • public class RemoteDocument
    extends java.lang.Object
    Encapsulates a URL along with the parsed resource matching the URL.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object document  
      private java.lang.String documentUrl  
    • Constructor Summary

      Constructors 
      Constructor Description
      RemoteDocument​(java.lang.String url, java.lang.Object document)
      Create a new RemoteDocument with the URL and the parsed resource for the document.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getDocument()
      Get the parsed resource for this document.
      java.lang.String getDocumentUrl()
      Get the URL for this document.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • documentUrl

        private final java.lang.String documentUrl
      • document

        private final java.lang.Object document
    • Constructor Detail

      • RemoteDocument

        public RemoteDocument​(java.lang.String url,
                              java.lang.Object document)
        Create a new RemoteDocument with the URL and the parsed resource for the document.
        Parameters:
        url - The URL
        document - The parsed resource for the document
    • Method Detail

      • getDocumentUrl

        public java.lang.String getDocumentUrl()
        Get the URL for this document.
        Returns:
        The URL for this document, as a String
      • getDocument

        public java.lang.Object getDocument()
        Get the parsed resource for this document.
        Returns:
        The parsed resource for this document