Class GenericFileFetchResponse

java.lang.Object
com.norconex.crawler.fs.fetch.impl.GenericFileFetchResponse
All Implemented Interfaces:
FetchResponse, FileFetchResponse

public class GenericFileFetchResponse extends Object implements FileFetchResponse
  • Method Details

    • builder

    • getProcessingOutcome

      public ProcessingOutcome getProcessingOutcome()
      Specified by:
      getProcessingOutcome in interface FetchResponse
    • isFile

      public boolean isFile()
      Description copied from interface: FileFetchResponse
      Whether the fetched path is a file. Note that on some file systems, it is be possible for a path to represent both a file and folder (a parent file having child files).
      Specified by:
      isFile in interface FileFetchResponse
      Returns:
      true if a file
    • isFolder

      public boolean isFolder()
      Description copied from interface: FileFetchResponse
      Whether the fetched path a folder. Note that on some file systems, it is be possible for a path to represent both a file and folder (a parent file having child files).
      Specified by:
      isFolder in interface FileFetchResponse
      Returns:
      true if a folder
    • getStatusCode

      public int getStatusCode()
      Specified by:
      getStatusCode in interface FetchResponse
    • getReasonPhrase

      public String getReasonPhrase()
      Specified by:
      getReasonPhrase in interface FetchResponse
    • getException

      public Exception getException()
      Specified by:
      getException in interface FetchResponse
    • setProcessingOutcome

      public void setProcessingOutcome(ProcessingOutcome processingOutcome)
    • setFile

      public void setFile(boolean file)
    • setFolder

      public void setFolder(boolean folder)
    • setStatusCode

      public void setStatusCode(int statusCode)
    • setReasonPhrase

      public void setReasonPhrase(String reasonPhrase)
    • setException

      public void setException(Exception exception)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object