public interface FaxBridge extends ProviderImplementation, ConfigurationHolder
Name | Description | Preconfigured Value | Default Value | Mandatory |
org.fax4j.bridge.vendor.policy.class.name | The vendor policy class name. | org.fax4j.bridge.EmptyVendorPolicy | org.fax4j.bridge.EmptyVendorPolicy | false |
Modifier and Type | Field and Description |
---|---|
static String |
VENDOR_POLICY_CLASS_NAME
The vendor policy class name property key
|
Modifier and Type | Method and Description |
---|---|
FaxJob |
createFaxJob()
Returns the internal fax client.
|
FaxClient |
getFaxClient()
Returns the internal fax client.
|
Logger |
getLogger()
Returns the internal logger.
|
VendorPolicy |
getVendorPolicy()
This function returns the vendor policy.
|
void |
initialize(String type,
Properties configuration,
Object flowOwner)
This function initializes the fax bridge.
|
void |
submitFaxJob(FaxJob faxJob,
FileInfo fileInfo)
This function will submit a new fax job.
The fax job ID may be populated by this method in the provided fax job object. The file information in the provided fax job will be ignored by this method, instead the file data will be taken from the FileInfo. |
getProvider
getConfiguration, getConfigurationValue, getConfigurationValue, getPropertyPart
static final String VENDOR_POLICY_CLASS_NAME
void initialize(String type, Properties configuration, Object flowOwner)
type
- The fax client type (may be null for default type)configuration
- The fax client configuration (may be null)flowOwner
- The flow owner (servlet, CLI main, ....) to be passed to the vendor policyLogger getLogger()
FaxClient getFaxClient()
VendorPolicy getVendorPolicy()
FaxJob createFaxJob()
void submitFaxJob(FaxJob faxJob, FileInfo fileInfo)
faxJob
- The fax job object containing the needed information (not including the file information)fileInfo
- The file information of the requested faxCopyright © 2009–2020 fax4j. All rights reserved.