Class AS4ClientReceiptMessage

All Implemented Interfaces:
com.helger.commons.traits.IGenericImplTrait<AS4ClientReceiptMessage>

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

  • Method Details

    • isNonRepudiation

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

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

      @Nullable public final Node getSoapDocument()
    • setSoapDocument

      @Nonnull public final 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

      @Nullable public final Ebms3UserMessage getEbms3UserMessage()
    • setEbms3UserMessage

      @Nonnull public final 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

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

      public AS4ClientBuiltMessage buildMessage(@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