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 static java.lang.StringACTUALstatic java.lang.StringACTUAL_FILE_ON_AGENTprotected CompareScenarioServicescompareScenarioServicesstatic intDEFAULT_LINE_HEIGHTstatic java.lang.StringEXPECTEDstatic java.lang.StringEXPECTED_FILE_ON_AGENTstatic java.lang.StringLINE_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 voidcompareInitialize()abstract java.lang.StringgetActualFileName()protected abstract AbstractDocumentToImageServicegetDocToImageService()abstract java.lang.StringgetExpectedFileName()protected abstract AbstractExtractionServicegetExtractionService(java.util.Map<java.lang.String,java.lang.String> props)protected abstract java.lang.StringgetKeywordName()protected abstract java.lang.StringgetScenarioDirProperty()java.io.FilegetWorkingDir()protected abstract java.lang.StringgetWorkingDirPath()step.functions.io.Output<javax.json.JsonObject>handle(step.functions.io.Input<javax.json.JsonObject> input)voidinitialize()protected java.io.InputStreamreadAttachment(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
-
EXPECTED
public static final java.lang.String EXPECTED
- See Also:
- Constant Field Values
-
ACTUAL
public static final java.lang.String ACTUAL
- See Also:
- Constant Field Values
-
ACTUAL_FILE_ON_AGENT
public static final java.lang.String ACTUAL_FILE_ON_AGENT
- See Also:
- Constant Field Values
-
EXPECTED_FILE_ON_AGENT
public static final java.lang.String EXPECTED_FILE_ON_AGENT
- 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:
handlein 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:
initializein classstep.functions.handler.AbstractFunctionHandler<javax.json.JsonObject,javax.json.JsonObject>
-
-