Class EDIFwdListener
java.lang.Object
com.onenetwork.platform.integ.edi.EDIFwdListener
public class EDIFwdListener
extends java.lang.Object
Listener for EdiForward to facilitate customizing of forwarding rules and payload content
-
Constructor Summary
Constructors Constructor Description EDIFwdListener()
-
Method Summary
Modifier and Type Method Description java.io.InputStream
getPayload(java.lang.String ediContent, EdiForward ediForward)
Method to get the payload that needs to be forwarded.boolean
shouldForward(Message ediMessage, EdiForward ediForward)
Method which returns a boolean to indicate whether the Edi message should be forwarded.
-
Constructor Details
-
EDIFwdListener
public EDIFwdListener()
-
-
Method Details
-
shouldForward
Method which returns a boolean to indicate whether the Edi message should be forwarded. Default return value is true. Override this method when customization is required.- Parameters:
ediMessage
-ediForward
-- Returns:
-
getPayload
Method to get the payload that needs to be forwarded. Default return value is @param ediContent. Override this method when the payload needs to be updated prior to forwarding.- Parameters:
ediContent
- to forwardediForward
-- Returns:
- ediContent payload to forward
-