Class GenericFileFetchResponse
java.lang.Object
com.norconex.crawler.fs.fetch.impl.GenericFileFetchResponse
- All Implemented Interfaces:
FetchResponse,FileFetchResponse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanintinthashCode()booleanisFile()Whether the fetched path is a file.booleanisFolder()Whether the fetched path a folder.voidsetException(Exception exception) voidsetFile(boolean file) voidsetFolder(boolean folder) voidsetProcessingOutcome(ProcessingOutcome processingOutcome) voidsetReasonPhrase(String reasonPhrase) voidsetStatusCode(int statusCode) toString()
-
Method Details
-
builder
-
getProcessingOutcome
- Specified by:
getProcessingOutcomein interfaceFetchResponse
-
isFile
public boolean isFile()Description copied from interface:FileFetchResponseWhether 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:
isFilein interfaceFileFetchResponse- Returns:
trueif a file
-
isFolder
public boolean isFolder()Description copied from interface:FileFetchResponseWhether 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:
isFolderin interfaceFileFetchResponse- Returns:
trueif a folder
-
getStatusCode
public int getStatusCode()- Specified by:
getStatusCodein interfaceFetchResponse
-
getReasonPhrase
- Specified by:
getReasonPhrasein interfaceFetchResponse
-
getException
- Specified by:
getExceptionin interfaceFetchResponse
-
setProcessingOutcome
-
setFile
public void setFile(boolean file) -
setFolder
public void setFolder(boolean folder) -
setStatusCode
public void setStatusCode(int statusCode) -
setReasonPhrase
-
setException
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-