Interface IAS4ClientBuildMessageCallback


public interface IAS4ClientBuildMessageCallback
Callback interface for AS4 client message creation.
Author:
Philip Helger
  • Method Details

    • onAS4Message

      default void onAS4Message(@Nonnull AbstractAS4Message<?> aMsg)
      Called for the created domain object. That usually also contains the underlying EBMS 3 data model. This method is called for all types.
      Parameters:
      aMsg - The created message
    • onSoapDocument

      default void onSoapDocument(@Nonnull Document aDoc)
      Called for the unsigned and unencrypted SOAP document. This method is called for all types.
      Parameters:
      aDoc - The created SOAP document
    • onSignedSoapDocument

      default void onSignedSoapDocument(@Nonnull Document aDoc)
      Called for the signed SOAP document. Not all client messages support signing.
      Parameters:
      aDoc - The signed SOAP document
    • onEncryptedSoapDocument

      default void onEncryptedSoapDocument(@Nonnull Document aDoc)
      This method is only called if encryption is enabled and no attachments are present. Only called for User Messages.
      Parameters:
      aDoc - The encrypted SOAP document
    • onEncryptedMimeMessage

      default void onEncryptedMimeMessage(@Nonnull AS4MimeMessage aMimeMsg)
      This method is only called if encryption is enabled and at least one attachments is present. Only called for User Messages.
      Parameters:
      aMimeMsg - The encrypted MIME message