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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • shouldForward

      public boolean shouldForward​(Message ediMessage, EdiForward ediForward)
      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

      public java.io.InputStream getPayload​(java.lang.String ediContent, EdiForward ediForward)
      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 forward
      ediForward -
      Returns:
      ediContent payload to forward