Package org.verapdf.processor
Class JsonHandler
java.lang.Object
org.verapdf.processor.AbstractBatchHandler
org.verapdf.processor.JsonHandler
- All Implemented Interfaces:
Closeable
,AutoCloseable
,BatchProcessingHandler
-
Field Summary
Fields inherited from class org.verapdf.processor.AbstractBatchHandler
BATCH_SUMMARY, BUILD_INFORMATION, FEATURES_REPORT, FIXER_REPORT, FIXER_RESULT, ITEM_DETAILS, JOB, JOBS, LOGS, PROCESSING_TIME, RELEASE_DETAILS, REPORT, TASK_RESULT, VALIDATION_RESULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
handleBatchEnd
(BatchSummary summary) This method is called by theBatchProcessor
at the end of the batch process and allows custom action to be taken informed by the summary of the batch process.void
handleBatchStart
(ProcessorConfig config) This method is called by theBatchProcessor
at the start of processing.Methods inherited from class org.verapdf.processor.AbstractBatchHandler
getDurations, handleResult
-
Constructor Details
-
JsonHandler
-
-
Method Details
-
handleBatchStart
Description copied from interface:BatchProcessingHandler
This method is called by theBatchProcessor
at the start of processing. The processor passes itProcessorConfig
allowing the handler to read the config details and take action.- Parameters:
config
- theProcessorConfig
supplied by the caller of the batch process.- Throws:
VeraPDFException
- if there's a problem setting up the batch process.
-
handleBatchEnd
Description copied from interface:BatchProcessingHandler
This method is called by theBatchProcessor
at the end of the batch process and allows custom action to be taken informed by the summary of the batch process.- Parameters:
summary
- theBatchSummary
for the batch process just completed.- Throws:
VeraPDFException
- if there's a problem handling theBatchSummary
-
close
- Throws:
IOException
-