public class EmptyVendorPolicy extends AbstractVendorPolicy
Constructor and Description |
---|
EmptyVendorPolicy()
This is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
initializeImpl()
This function initializes the vendor policy.
|
protected boolean |
invokePolicyForRequestImpl(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. |
protected boolean |
invokePolicyForResponseImpl(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. |
getFlowOwner, getProvider, initialize, invokePolicyForRequest, invokePolicyForResponse
protected void initializeImpl()
initializeImpl
in class AbstractVendorPolicy
protected boolean invokePolicyForRequestImpl(Object requestDataHolder)
invokePolicyForRequestImpl
in class AbstractVendorPolicy
requestDataHolder
- The request data holderprotected boolean invokePolicyForResponseImpl(Object requestDataHolder, FaxJob faxJob)
invokePolicyForResponseImpl
in class AbstractVendorPolicy
requestDataHolder
- The request data holderfaxJob
- The submitted fax jobCopyright © 2009–2020 fax4j. All rights reserved.