public interface VendorPolicy
Modifier and Type | Method and Description |
---|---|
Provider |
getProvider()
This function returns the vendor policy provider.
|
void |
initialize(Object flowOwner)
This function initializes the vendor policy.
|
boolean |
invokePolicyForRequest(Object requestDataHolder)
This function invokes the vendor policy.
The policy may charge a customer for the service, or validate the user has permissions to invoke the action and so on. In case the policy takes over the flow and the fax bridge should not be invoked, this method should return false. |
boolean |
invokePolicyForResponse(Object requestDataHolder,
FaxJob faxJob)
This function invokes the vendor policy.
The policy may charge a customer for the service, or validate the user has permissions to invoke the action and so on. In case the policy takes over the flow and the fax bridge should not be invoked, this method should return false. |
Provider getProvider()
void initialize(Object flowOwner)
flowOwner
- The flow owner (the servlet, CLI main, ....)boolean invokePolicyForRequest(Object requestDataHolder)
requestDataHolder
- The request data holderboolean invokePolicyForResponse(Object requestDataHolder, FaxJob faxJob)
requestDataHolder
- The request data holderfaxJob
- The submitted fax jobCopyright © 2009–2020 fax4j. All rights reserved.