Package org.verapdf.processor
Class JsonHandler
- java.lang.Object
-
- org.verapdf.processor.AbstractBatchHandler
-
- org.verapdf.processor.JsonHandler
-
- All Implemented Interfaces:
Closeable,AutoCloseable,BatchProcessingHandler
public class JsonHandler extends AbstractBatchHandler
-
-
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
Constructors Modifier Constructor Description protectedJsonHandler(Writer writer, boolean logPassed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidhandleBatchEnd(BatchSummary summary)This method is called by theBatchProcessorat the end of the batch process and allows custom action to be taken informed by the summary of the batch process.voidhandleBatchStart(ProcessorConfig config)This method is called by theBatchProcessorat the start of processing.-
Methods inherited from class org.verapdf.processor.AbstractBatchHandler
getDurations, handleResult
-
-
-
-
Constructor Detail
-
JsonHandler
protected JsonHandler(Writer writer, boolean logPassed)
-
-
Method Detail
-
handleBatchStart
public void handleBatchStart(ProcessorConfig config) throws VeraPDFException
Description copied from interface:BatchProcessingHandlerThis method is called by theBatchProcessorat the start of processing. The processor passes itProcessorConfigallowing the handler to read the config details and take action.- Parameters:
config- theProcessorConfigsupplied by the caller of the batch process.- Throws:
VeraPDFException- if there's a problem setting up the batch process.
-
handleBatchEnd
public void handleBatchEnd(BatchSummary summary) throws VeraPDFException
Description copied from interface:BatchProcessingHandlerThis method is called by theBatchProcessorat the end of the batch process and allows custom action to be taken informed by the summary of the batch process.- Parameters:
summary- theBatchSummaryfor the batch process just completed.- Throws:
VeraPDFException- if there's a problem handling theBatchSummary
-
close
public void close() throws IOException- Throws:
IOException
-
-