Class AS4Utils


  • public class AS4Utils
    extends Object
    • Constructor Detail

      • AS4Utils

        public AS4Utils()
    • Method Detail

      • validateMessaging

        public static void validateMessaging​(Messaging messaging,
                                             PModeRepository pmodeRepository)
                                      throws AS4Exception
        Validate Messaging object to see whether it contains required fields
        Parameters:
        messaging - Messaging object
        Throws:
        AS4Exception - with error message and error code for failed validation
      • reportErrorToProducer

        public static boolean reportErrorToProducer​(PMode pmode)
        Determine if the error need to be notified to the producer end
        Parameters:
        pmode - PMode object
        Returns:
        true if true
      • isSendErrorAsResponse

        public static boolean isSendErrorAsResponse​(PMode pmode)
        Determine if the error need to be sent as response to the sending MSH
        Parameters:
        pmode - PMode object
        Returns:
        true if true