Interface IResolvedFileListProcessor<R,E extends Throwable>
- Type Parameters:
R
- Type of the combined result of all resource items.E
- Type of the error that may be thrown when in case of an error.
- All Known Implementing Classes:
BaseResolvedFileListProcessor
,StandardErrorFileListProcessor
public interface IResolvedFileListProcessor<R,E extends Throwable>
Handler for processing the results obtained when a list of referenced files was resolved, see
IResolvedFileList.collectResult(IResolvedFileListProcessor)
.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionCollector<? super IResolvedResourceItem,
?, R> void
Callback for handling an error of typeEResourceItemResolutionError.ATTACHMENT_QUERY_DOES_NOT_MATCH
.void
Callback for handling an error of typeEResourceItemResolutionError.CANNOT_PROCESS_FILE_LIST
.void
Callback for handling an error of typeEResourceItemResolutionError.CANNOT_PROCESS_RESOURCE_ITEM
.void
Callback for handling an error of typeEResourceItemResolutionError.CLIENT_FILE_DOES_NOT_EXIST
.void
Callback for handling an error of typeEResourceItemResolutionError.DATABASE_ERROR
.void
Callback for handling an error of typeEResourceItemResolutionError.EXTERNAL_URL_CANNOT_BE_READ
.void
onExternalUrlIsSyntacticallyInvalid
(AFileListResolutionError.ExternalUrlIsSyntacticallyInvalid error) Callback for handling an error of typeEResourceItemResolutionError.EXTERNAL_URL_IS_SYNTACTICALLY_INVALID
.void
Callback for handling an error of typeEResourceItemResolutionError.FILE_COUNT_REDUCED_TO_ZERO_BY_FILTER_OPTIONS
.void
Callback for handling an error of typeEResourceItemResolutionError.FILE_SYSTEM_ERROR
.void
Callback for handling an error of typeEResourceItemResolutionError.FORM_FILE_DOES_NOT_EXIST
.void
Callback for handling an error of typeEResourceItemResolutionError.NODE_DOES_NOT_EXIST
.void
Callback for handling an error of typeEResourceItemResolutionError.NODE_DOES_NOT_PROVIDE_FILES
.void
Callback for handling an error of typeEResourceItemResolutionError.NODE_NOT_EXECUTED
.void
Callback when all resource items were resolved and not a single file was found.void
Callback for handling an error of typeEResourceItemResolutionError.UPLOAD_FIELD_DOES_NOT_EXIST
.void
Callback for handling an error of typeEResourceItemResolutionError.UPLOAD_FIELD_DOES_NOT_PROVIDE_FILES
.
-
Method Details
-
collector
Collector<? super IResolvedResourceItem,?, collector()R> - Returns:
- Collector that combines all resource items into the final result.
-
onAttachmentQueryDoesNotMatch
void onAttachmentQueryDoesNotMatch(AFileListResolutionError.AttachmentQueryDoesNotMatch error) throws E Callback for handling an error of typeEResourceItemResolutionError.ATTACHMENT_QUERY_DOES_NOT_MATCH
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onCannotProcessFileList
Callback for handling an error of typeEResourceItemResolutionError.CANNOT_PROCESS_FILE_LIST
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onCannotProcessResourceItem
Callback for handling an error of typeEResourceItemResolutionError.CANNOT_PROCESS_RESOURCE_ITEM
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onClientFileDoesNotExist
Callback for handling an error of typeEResourceItemResolutionError.CLIENT_FILE_DOES_NOT_EXIST
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onDatabaseError
Callback for handling an error of typeEResourceItemResolutionError.DATABASE_ERROR
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onExternalUrlCannotBeRead
Callback for handling an error of typeEResourceItemResolutionError.EXTERNAL_URL_CANNOT_BE_READ
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onExternalUrlIsSyntacticallyInvalid
void onExternalUrlIsSyntacticallyInvalid(AFileListResolutionError.ExternalUrlIsSyntacticallyInvalid error) throws E Callback for handling an error of typeEResourceItemResolutionError.EXTERNAL_URL_IS_SYNTACTICALLY_INVALID
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onFileCountReducedToZeroByFilter
void onFileCountReducedToZeroByFilter(AFileListResolutionError.FileCountReducedToZeroByFilter error) throws E Callback for handling an error of typeEResourceItemResolutionError.FILE_COUNT_REDUCED_TO_ZERO_BY_FILTER_OPTIONS
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onFileSystemError
Callback for handling an error of typeEResourceItemResolutionError.FILE_SYSTEM_ERROR
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onFormFileDoesNotExist
Callback for handling an error of typeEResourceItemResolutionError.FORM_FILE_DOES_NOT_EXIST
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onNodeDoesNotExist
Callback for handling an error of typeEResourceItemResolutionError.NODE_DOES_NOT_EXIST
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onNodeDoesNotProvideFiles
Callback for handling an error of typeEResourceItemResolutionError.NODE_DOES_NOT_PROVIDE_FILES
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onNodeNotExecuted
Callback for handling an error of typeEResourceItemResolutionError.NODE_NOT_EXECUTED
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onResolvedFileListEmpty
Callback when all resource items were resolved and not a single file was found.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onUploadFieldDoesNotExist
Callback for handling an error of typeEResourceItemResolutionError.UPLOAD_FIELD_DOES_NOT_EXIST
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onUploadFieldDoesNotProvideFiles
void onUploadFieldDoesNotProvideFiles(AFileListResolutionError.UploadFieldDoesNotProvideFiles error) throws E Callback for handling an error of typeEResourceItemResolutionError.UPLOAD_FIELD_DOES_NOT_PROVIDE_FILES
.- Parameters:
error
- The error that occurred.- Throws:
E
- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-