Class AS4ClientErrorMessage

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

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

  • Method Details

    • addErrorMessage

      public final void addErrorMessage(@Nonnull IEbmsError aError, @Nonnull Locale aLocale)
    • errorMessages

      @Nonnull @ReturnsMutableObject public final com.helger.commons.collection.impl.ICommonsList<Ebms3Error> errorMessages()
    • isReceiptShouldBeSigned

      public final boolean isReceiptShouldBeSigned()
    • setErrorShouldBeSigned

      @Nonnull public final AS4ClientErrorMessage setErrorShouldBeSigned(boolean bErrorShouldBeSigned)
    • 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<AS4ClientErrorMessage>
      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