public class PdfTestFunctionHandler
extends step.functions.handler.JsonBasedFunctionHandler
Modifier and Type | Field and 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 and Description |
---|
PdfTestFunctionHandler() |
Modifier and Type | Method and 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) |
getInputPayloadClass, getOutputPayloadClass
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
public static final String PDF_COMPARE_KW_NAME
public static final String PDFTEST_SCENARIO_DIR_FILE
public static final String PDFTEST_EXPECTED_FILE
public static final String PDFTEST_ACTUAL_FILE
protected PdfTestScenarioServices pdfTestServices
protected PdfExtractionService extractionService
protected PdfToImageService pdfToImageService
protected ImageDiffService imageDiffService
public step.functions.io.Output<javax.json.JsonObject> handle(step.functions.io.Input<javax.json.JsonObject> input) throws Exception
handle
in class step.functions.handler.AbstractFunctionHandler<javax.json.JsonObject,javax.json.JsonObject>
Exception
protected InputStream readAttachment(step.functions.io.Input<javax.json.JsonObject> input, String attachmentName) throws IOException
IOException
public File getWorkingDir()
public void initialize()
initialize
in class step.functions.handler.AbstractFunctionHandler<javax.json.JsonObject,javax.json.JsonObject>
Copyright © 2020. All rights reserved.