Class DataCache.DocumentData

  • Enclosing class:
    DataCache

    protected static class DataCache.DocumentData
    extends java.lang.Object
    This class represents everything we need to know about a document that's getting passed from the getDocumentVersions() phase to the processDocuments() phase.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String contentType
      The content-type header value
      protected java.io.File data
      The cache file for the data
      protected java.lang.String referralURI
      The referral URI
      protected int responseCode
      The response code
    • Constructor Summary

      Constructors 
      Constructor Description
      DocumentData​(java.io.File data, int responseCode, java.lang.String contentType, java.lang.String referralURI)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContentType()
      Get the contentType
      java.io.File getData()
      Get the data
      java.lang.String getReferralURI()
      Get the referral URI
      int getResponseCode()
      Get the response code
      • Methods inherited from class java.lang.Object

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

      • data

        protected java.io.File data
        The cache file for the data
      • responseCode

        protected int responseCode
        The response code
      • contentType

        protected java.lang.String contentType
        The content-type header value
      • referralURI

        protected java.lang.String referralURI
        The referral URI
    • Constructor Detail

      • DocumentData

        public DocumentData​(java.io.File data,
                            int responseCode,
                            java.lang.String contentType,
                            java.lang.String referralURI)
        Constructor.
    • Method Detail

      • getData

        public java.io.File getData()
        Get the data
      • getResponseCode

        public int getResponseCode()
        Get the response code
      • getContentType

        public java.lang.String getContentType()
        Get the contentType
      • getReferralURI

        public java.lang.String getReferralURI()
        Get the referral URI