Package step.plugins.compare
Class AbstractCompareFunctionHandler
- java.lang.Object
-
- step.functions.handler.AbstractFunctionHandler<javax.json.JsonObject,javax.json.JsonObject>
-
- step.functions.handler.JsonBasedFunctionHandler
-
- step.plugins.compare.AbstractCompareFunctionHandler
-
- Direct Known Subclasses:
ImageCompareFunctionHandler
,PdfTestFunctionHandler
public abstract class AbstractCompareFunctionHandler extends step.functions.handler.JsonBasedFunctionHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected CompareScenarioServices
compareScenarioServices
static int
DEFAULT_LINE_HEIGHT
static java.lang.String
LINE_HEIGHT_PROP
-
Constructor Summary
Constructors Constructor Description AbstractCompareFunctionHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
compareInitialize()
abstract java.lang.String
getActualFileName()
protected abstract AbstractDocumentToImageService
getDocToImageService()
abstract java.lang.String
getExpectedFileName()
protected abstract AbstractExtractionService
getExtractionService(java.util.Map<java.lang.String,java.lang.String> props)
protected abstract java.lang.String
getKeywordName()
protected abstract java.lang.String
getScenarioDirProperty()
java.io.File
getWorkingDir()
protected abstract java.lang.String
getWorkingDirPath()
step.functions.io.Output<javax.json.JsonObject>
handle(step.functions.io.Input<javax.json.JsonObject> input)
void
initialize()
protected java.io.InputStream
readAttachment(step.functions.io.Input<javax.json.JsonObject> input, java.lang.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
-
LINE_HEIGHT_PROP
public static final java.lang.String LINE_HEIGHT_PROP
- See Also:
- Constant Field Values
-
DEFAULT_LINE_HEIGHT
public static final int DEFAULT_LINE_HEIGHT
- See Also:
- Constant Field Values
-
compareScenarioServices
protected CompareScenarioServices compareScenarioServices
-
-
Method Detail
-
getScenarioDirProperty
protected abstract java.lang.String getScenarioDirProperty()
-
getKeywordName
protected abstract java.lang.String getKeywordName()
-
getDocToImageService
protected abstract AbstractDocumentToImageService getDocToImageService()
-
getExtractionService
protected abstract AbstractExtractionService getExtractionService(java.util.Map<java.lang.String,java.lang.String> props)
-
getActualFileName
public abstract java.lang.String getActualFileName()
-
getExpectedFileName
public abstract java.lang.String getExpectedFileName()
-
handle
public step.functions.io.Output<javax.json.JsonObject> handle(step.functions.io.Input<javax.json.JsonObject> input) throws java.lang.Exception
- Specified by:
handle
in classstep.functions.handler.AbstractFunctionHandler<javax.json.JsonObject,javax.json.JsonObject>
- Throws:
java.lang.Exception
-
readAttachment
protected java.io.InputStream readAttachment(step.functions.io.Input<javax.json.JsonObject> input, java.lang.String attachmentName)
-
getWorkingDirPath
protected abstract java.lang.String getWorkingDirPath()
-
getWorkingDir
public java.io.File getWorkingDir()
-
compareInitialize
protected abstract void compareInitialize()
-
initialize
public void initialize()
- Overrides:
initialize
in classstep.functions.handler.AbstractFunctionHandler<javax.json.JsonObject,javax.json.JsonObject>
-
-