public class HoiioFaxClientSpi extends AbstractMultiPart2JSONHTTPFaxClientSpi
Name | Description | Preconfigured Value | Default Value | Mandatory |
org.fax4j.spi.hoiio.client.class.name | The HTTP client class name used to submit the HTTP requests | org.fax4j.spi.http.ApacheHTTPClient | org.fax4j.spi.http.ApacheHTTPClient | false |
org.fax4j.spi.hoiio.app.id | The hoiio Application ID | none | none | true |
org.fax4j.spi.hoiio.access.token | The hoiio access token | none | none | true |
Modifier and Type | Class and Description |
---|---|
static class |
HoiioFaxClientSpi.FaxClientSpiConfigurationConstants
This class holds the SPI configuration constants.
|
AbstractFaxClientSpi.FaxJobExtendedPropertyConstants
Modifier and Type | Field and Description |
---|---|
static String |
HOIIO_PROPERTY_PART
The Hoiio property part
|
HTTP_PROPERTY_PART
Constructor and Description |
---|
HoiioFaxClientSpi()
This is the default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
cancelFaxJobImpl(FaxJob faxJob)
This function will cancel an existing fax job.
|
protected HTTPClientConfiguration |
createHTTPClientConfiguration()
This function creates and returns the HTTP configuration object.
|
String |
getPropertyPart()
Returns the property part.
Property parts enables to replace the input request key with the part defined to enable to reuse services with different configuration blocks. Property parts will be replaced with the {0} values in the key, for example org.fax4j.{0}.somekey with part abc will be replaced to org.fax4j.abc.somekey |
protected Map<FaxActionType,String> |
initializeFaxActionType2ResourceMap()
This function initializes the fax action type to resource mappings.
|
protected String |
initializeURLParameters()
This function returns the HTTP URL parameters from the configuration.
|
protected void |
resumeFaxJobImpl(FaxJob faxJob)
This function will resume an existing fax job.
|
protected void |
suspendFaxJobImpl(FaxJob faxJob)
This function will suspend an existing fax job.
|
protected void |
updateFaxJob2HTTPRequestConverterConfiguration(Map<String,String> configuration)
Hook for extending classes.
|
protected void |
updateHTTPResponseHandlerConfiguration(Map<String,String> configuration)
Hook for extending classes.
|
createFaxJob2HTTPRequestConverter, createHTTPResponseHandler
createCancelFaxJobHTTPRequest, createGetFaxJobStatusHTTPRequest, createResumeFaxJobHTTPRequest, createSubmitFaxJobHTTPRequest, createSuspendFaxJobHTTPRequest, getFaxJob2HTTPRequestConverter, getFaxJobStatusImpl, getHTTPClient, getHTTPClientConfiguration, getHTTPResource, getHTTPResponseHandler, getHTTPURLParameters, initializeImpl, submitFaxJobImpl, submitHTTPRequest, submitHTTPRequestImpl, updateFaxJob
getProvider, isFaxMonitorEventsSupported, pollForFaxJobStatues, pollForFaxJobStatuesImpl
addFaxClientActionEventListener, addFaxMonitorEventListener, cancelFaxJob, createFaxJob, createFaxJobImpl, fireFaxEvent, fireFaxEvent, fireFaxMonitorEvent, getConfiguration, getConfigurationValue, getConfigurationValue, getFaxJobMonitor, getFaxJobStatus, getLogger, initialize, invokeFaxJobIDValidation, invokeFaxJobNullValidation, removeAllFaxClientActionEventListeners, removeAllFaxMonitorEventListeners, removeFaxClientActionEventListener, removeFaxMonitorEventListener, resumeFaxJob, submitFaxJob, suspendFaxJob, throwUnsupportedException
public static final String HOIIO_PROPERTY_PART
public String getPropertyPart()
getPropertyPart
in interface ConfigurationHolder
getPropertyPart
in class HTTPFaxClientSpi
protected HTTPClientConfiguration createHTTPClientConfiguration()
createHTTPClientConfiguration
in class HTTPFaxClientSpi
protected void updateFaxJob2HTTPRequestConverterConfiguration(Map<String,String> configuration)
updateFaxJob2HTTPRequestConverterConfiguration
in class AbstractMultiPart2JSONHTTPFaxClientSpi
configuration
- The converter configurationprotected void updateHTTPResponseHandlerConfiguration(Map<String,String> configuration)
updateHTTPResponseHandlerConfiguration
in class AbstractMultiPart2JSONHTTPFaxClientSpi
configuration
- The response handler configurationprotected Map<FaxActionType,String> initializeFaxActionType2ResourceMap()
initializeFaxActionType2ResourceMap
in class HTTPFaxClientSpi
protected String initializeURLParameters()
initializeURLParameters
in class HTTPFaxClientSpi
protected void suspendFaxJobImpl(FaxJob faxJob)
suspendFaxJobImpl
in class HTTPFaxClientSpi
faxJob
- The fax job object containing the needed informationprotected void resumeFaxJobImpl(FaxJob faxJob)
resumeFaxJobImpl
in class HTTPFaxClientSpi
faxJob
- The fax job object containing the needed informationprotected void cancelFaxJobImpl(FaxJob faxJob)
cancelFaxJobImpl
in class HTTPFaxClientSpi
faxJob
- The fax job object containing the needed informationCopyright © 2009–2020 fax4j. All rights reserved.