Class AS4ClientReceiptMessage

All Implemented Interfaces:
com.helger.base.trait.IGenericImplTrait<AS4ClientReceiptMessage>

public class AS4ClientReceiptMessage extends AbstractAS4ClientSignalMessage<AS4ClientReceiptMessage>
AS4 client for AS4ReceiptMessage objects.
Author:
Philip Helger
  • Constructor Details

    • AS4ClientReceiptMessage

      public AS4ClientReceiptMessage(@WillNotClose @NonNull AS4ResourceHelper aResHelper)
  • Method Details

    • isNonRepudiation

      public final boolean isNonRepudiation()
      Default value is false
      Returns:
      if non-repudiation is used or not
    • setNonRepudiation

      public final @NonNull AS4ClientReceiptMessage setNonRepudiation(boolean bNonRepudiation)
    • getSoapDocument

      public final @Nullable Node getSoapDocument()
    • setSoapDocument

      public final @NonNull AS4ClientReceiptMessage setSoapDocument(@Nullable Node aSoapDocument)
      As node set the usermessage if it is signed, so the references can be counted and used in non repudiation.
      Parameters:
      aSoapDocument - Signed UserMessage
      Returns:
      this for chaining
    • getEbms3UserMessage

      public final @Nullable Ebms3UserMessage getEbms3UserMessage()
    • setEbms3UserMessage

      public final @NonNull AS4ClientReceiptMessage setEbms3UserMessage(@Nullable Ebms3UserMessage aEbms3UserMessage)
      Needs to be set to refer to the message which this receipt is the response and if non-repudiation is not used, to fill the receipt content
      Parameters:
      aEbms3UserMessage - UserMessage which this receipt should be the response for
      Returns:
      this for chaining
    • isReceiptShouldBeSigned

      public final boolean isReceiptShouldBeSigned()
    • setReceiptShouldBeSigned

      public final @NonNull AS4ClientReceiptMessage setReceiptShouldBeSigned(boolean bReceiptShouldBeSigned)
    • buildMessage

      public AS4ClientBuiltMessage buildMessage(@Nonempty @NonNull @Nonempty String sMessageID, @Nullable IAS4ClientBuildMessageCallback aCallback) throws org.apache.wss4j.common.ext.WSSecurityException
      Description copied from class: AbstractAS4Client
      Build the AS4 message to be sent. It uses all the attributes of this class to build the final message. Compression, signing and encryption happens in this methods.
      Specified by:
      buildMessage in class AbstractAS4Client<AS4ClientReceiptMessage>
      Parameters:
      sMessageID - The message ID to be used. Neither null nor empty.
      aCallback - Optional callback for in-between states. May be null.
      Returns:
      The HTTP entity to be sent. Never null.
      Throws:
      org.apache.wss4j.common.ext.WSSecurityException - In case there is an issue with signing/encryption