Package step.plugins.pdftest
Class PdfTestFunctionHandler
- java.lang.Object
-
- step.functions.handler.AbstractFunctionHandler<javax.json.JsonObject,javax.json.JsonObject>
-
- step.functions.handler.JsonBasedFunctionHandler
-
- step.plugins.pdftest.PdfTestFunctionHandler
-
public class PdfTestFunctionHandler extends step.functions.handler.JsonBasedFunctionHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected PdfExtractionServiceextractionServiceprotected ImageDiffServiceimageDiffServicestatic StringPDF_COMPARE_KW_NAMEstatic StringPDFTEST_ACTUAL_FILEstatic StringPDFTEST_EXPECTED_FILEstatic StringPDFTEST_SCENARIO_DIR_FILEprotected PdfTestScenarioServicespdfTestServicesprotected PdfToImageServicepdfToImageService
-
Constructor Summary
Constructors Constructor Description PdfTestFunctionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetWorkingDir()step.functions.io.Output<javax.json.JsonObject>handle(step.functions.io.Input<javax.json.JsonObject> input)voidinitialize()protected InputStreamreadAttachment(step.functions.io.Input<javax.json.JsonObject> input, String attachmentName)-
Methods inherited from class step.functions.handler.JsonBasedFunctionHandler
getInputPayloadClass, getOutputPayloadClass
-
Methods inherited from class step.functions.handler.AbstractFunctionHandler
delegate, delegate, getCurrentContext, getCurrentContext, getFileVersionId, getFunctionHandlerFactory, getProperties, getTokenReservationSession, getTokenSession, mergeAllProperties, pushLocalApplicationContext, pushLocalApplicationContext, pushLocalFolderApplicationContext, pushLocalFolderApplicationContext, pushRemoteApplicationContext, pushRemoteApplicationContext, retrieveFileVersion, runInContext, runInContext, setApplicationContextBuilder, setFileManagerClient, setFunctionHandlerFactory, setProperties, setTokenReservationSession, setTokenSession
-
-
-
-
Field Detail
-
PDF_COMPARE_KW_NAME
public static final String PDF_COMPARE_KW_NAME
- See Also:
- Constant Field Values
-
PDFTEST_SCENARIO_DIR_FILE
public static final String PDFTEST_SCENARIO_DIR_FILE
- See Also:
- Constant Field Values
-
PDFTEST_EXPECTED_FILE
public static final String PDFTEST_EXPECTED_FILE
- See Also:
- Constant Field Values
-
PDFTEST_ACTUAL_FILE
public static final String PDFTEST_ACTUAL_FILE
- See Also:
- Constant Field Values
-
pdfTestServices
protected PdfTestScenarioServices pdfTestServices
-
extractionService
protected PdfExtractionService extractionService
-
pdfToImageService
protected PdfToImageService pdfToImageService
-
imageDiffService
protected ImageDiffService imageDiffService
-
-
Method Detail
-
handle
public step.functions.io.Output<javax.json.JsonObject> handle(step.functions.io.Input<javax.json.JsonObject> input) throws Exception- Specified by:
handlein classstep.functions.handler.AbstractFunctionHandler<javax.json.JsonObject,javax.json.JsonObject>- Throws:
Exception
-
readAttachment
protected InputStream readAttachment(step.functions.io.Input<javax.json.JsonObject> input, String attachmentName) throws IOException
- Throws:
IOException
-
getWorkingDir
public File getWorkingDir()
-
initialize
public void initialize()
- Overrides:
initializein classstep.functions.handler.AbstractFunctionHandler<javax.json.JsonObject,javax.json.JsonObject>
-
-