Class AS2ReceiverHandler

    • Field Detail

      • logger

        private org.apache.commons.logging.Log logger
    • Constructor Detail

    • Method Detail

      • getClientInfo

        public java.lang.String getClientInfo​(java.net.Socket s)
      • createMessage

        protected AS2Message createMessage​(java.net.Socket s)
      • sendResponse

        protected boolean sendResponse​(AS2Message msg,
                                       java.io.BufferedOutputStream out,
                                       DispositionType disposition,
                                       java.lang.String mic,
                                       java.lang.String text)
        Sends a response for received AS2 message. If sending an MDN is enabled then sets up MDN object and invokes the MDNSenderModule
        Parameters:
        msg - The received message that an MDN must be sent for.
        out - The output stream for the connection the AS2 message was received on
        disposition - The disposition type that must be sent in the MDN
        mic - The MIC of the received AS2 message
        text - The textual message describing the result of the message receipt and processing
        Returns:
        Returns true if an response was sent
      • createMDN

        public MessageMDN createMDN​(Session session,
                                    AS2Message msg,
                                    java.lang.String mic,
                                    DispositionType disposition,
                                    java.lang.String text)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createMDNData

        public void createMDNData​(Session session,
                                  MessageMDN mdn,
                                  java.lang.String micAlg,
                                  java.lang.String signatureProtocol)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception