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 PdfExtractionService
extractionService
protected ImageDiffService
imageDiffService
static String
PDF_COMPARE_KW_NAME
static String
PDFTEST_ACTUAL_FILE
static String
PDFTEST_EXPECTED_FILE
static String
PDFTEST_SCENARIO_DIR_FILE
protected PdfTestScenarioServices
pdfTestServices
protected PdfToImageService
pdfToImageService
-
Constructor Summary
Constructors Constructor Description PdfTestFunctionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getWorkingDir()
step.functions.io.Output<javax.json.JsonObject>
handle(step.functions.io.Input<javax.json.JsonObject> input)
void
initialize()
protected InputStream
readAttachment(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:
handle
in 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:
initialize
in classstep.functions.handler.AbstractFunctionHandler<javax.json.JsonObject,javax.json.JsonObject>
-
-