Class PhantomJSRenderReceiptServiceV2
- java.lang.Object
-
- com.avoka.fc.core.service.BaseService
-
- com.avoka.fc.core.service.CayenneService
-
- com.avoka.fc.core.service.AbstractRenderReceiptService
-
- com.avoka.fc.core.service.LocalProcessRenderReceiptService
-
- com.avoka.fc.core.service.phantomjs.PhantomJSRenderReceiptServiceV2
-
- All Implemented Interfaces:
IRenderReceiptService
,IServiceDefinitionAware
public class PhantomJSRenderReceiptServiceV2 extends LocalProcessRenderReceiptService
Provides version 2 of the PhantomJS PDF Receipt Rendering service.- Since:
- 17.10.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.avoka.fc.core.service.LocalProcessRenderReceiptService
LocalProcessRenderReceiptService.ProcessParams
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SERVICE_NAME
The default service definition name.-
Fields inherited from class com.avoka.fc.core.service.LocalProcessRenderReceiptService
fallbackTimeout, receiptPropertiesJson, subfolder
-
Fields inherited from class com.avoka.fc.core.service.AbstractRenderReceiptService
CONTENT_TYPE_PDF
-
-
Constructor Summary
Constructors Constructor Description PhantomJSRenderReceiptServiceV2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Semaphore
getMaxProcessesSemphore()
protected String
getReceiptSubdirectory()
protected boolean
isDeleteFiles()
protected LocalProcessRenderReceiptService.ProcessParams
populateProcessParams(LocalProcessRenderReceiptService.ProcessParams params, String workDir)
void
setPhantomJsExe(String value)
Set the PhantomJS executable filename, without the Windows .exe file extension.-
Methods inherited from class com.avoka.fc.core.service.LocalProcessRenderReceiptService
appendContextDebugInfo, getFallbackTimeout, getReceiptDocument, getReceiptPropertiesJson, rasterize, requiresLiveCycle, setFallbackTimeout, setReceiptPropertiesJson
-
Methods inherited from class com.avoka.fc.core.service.AbstractRenderReceiptService
getMaxProcesses, getServiceDefinition, hasSignatureReceiptTemplate, isSignatureReceiptRequest, renderReceipt, renderReceipt, setMaxProcesses, setServiceDefinition, setTestMode, updateReceiptMode, updateReceiptMode
-
Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchEntity, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
-
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
-
-
-
Field Detail
-
DEFAULT_SERVICE_NAME
public static final String DEFAULT_SERVICE_NAME
The default service definition name.- See Also:
- Constant Field Values
-
-
Method Detail
-
setPhantomJsExe
public void setPhantomJsExe(String value)
Set the PhantomJS executable filename, without the Windows .exe file extension.- Parameters:
value
- the PhantomJS executable file
-
isDeleteFiles
protected boolean isDeleteFiles()
- Specified by:
isDeleteFiles
in classLocalProcessRenderReceiptService
-
getMaxProcessesSemphore
protected Semaphore getMaxProcessesSemphore()
- Specified by:
getMaxProcessesSemphore
in classLocalProcessRenderReceiptService
-
getReceiptSubdirectory
protected String getReceiptSubdirectory()
- Specified by:
getReceiptSubdirectory
in classLocalProcessRenderReceiptService
-
populateProcessParams
protected LocalProcessRenderReceiptService.ProcessParams populateProcessParams(LocalProcessRenderReceiptService.ProcessParams params, String workDir)
- Specified by:
populateProcessParams
in classLocalProcessRenderReceiptService
-
-