Package com.helger.phase4.client
Class AS4ClientErrorMessage
java.lang.Object
com.helger.phase4.client.AbstractAS4Client<IMPLTYPE>
com.helger.phase4.client.AbstractAS4ClientSignalMessage<AS4ClientErrorMessage>
com.helger.phase4.client.AS4ClientErrorMessage
- All Implemented Interfaces:
com.helger.commons.traits.IGenericImplTrait<AS4ClientErrorMessage>
AS4 client for
AS4ErrorMessage objects.- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddErrorMessage(IEbmsError aError, Locale aLocale) buildMessage(String sMessageID, IAS4ClientBuildMessageCallback aCallback) Build the AS4 message to be sent.final com.helger.commons.collection.impl.ICommonsList<Ebms3Error>final booleanfinal AS4ClientErrorMessagesetErrorShouldBeSigned(boolean bErrorShouldBeSigned) Methods inherited from class com.helger.phase4.client.AbstractAS4ClientSignalMessage
anyMethods inherited from class com.helger.phase4.client.AbstractAS4Client
createDefaultMessageIDFactory, createMessageID, cryptParams, ensureSendingDateTime, getAS4CryptoFactory, getAS4CryptoFactoryCrypt, getAS4CryptoFactorySign, getAS4ResourceHelper, getHttpPoster, getMessageIDFactory, getMessageType, getRefToMessageID, getSendingDateTime, getSendingDateTimeOrNow, getSoapVersion, hasRefToMessageID, httpRetrySettings, internalGetCryptoFactoryCrypt, internalGetCryptoFactorySign, sendMessageWithRetries, setAS4CryptoFactory, setAS4CryptoFactoryCrypt, setAS4CryptoFactorySign, setHttpPoster, setMessageID, setMessageIDFactory, setRefToMessageID, setSendingDateTime, setSendingDateTimeOrNow, setSoapVersion, setValuesFromPMode, signingParamsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsT
-
Constructor Details
-
AS4ClientErrorMessage
-
-
Method Details
-
addErrorMessage
-
errorMessages
@Nonnull @ReturnsMutableObject public final com.helger.commons.collection.impl.ICommonsList<Ebms3Error> errorMessages() -
isReceiptShouldBeSigned
public final boolean isReceiptShouldBeSigned() -
setErrorShouldBeSigned
-
buildMessage
public AS4ClientBuiltMessage buildMessage(@Nonnull @Nonempty String sMessageID, @Nullable IAS4ClientBuildMessageCallback aCallback) throws org.apache.wss4j.common.ext.WSSecurityException Description copied from class:AbstractAS4ClientBuild 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:
buildMessagein classAbstractAS4Client<AS4ClientErrorMessage>- Parameters:
sMessageID- The message ID to be used. Neithernullnor empty.aCallback- Optional callback for in-between states. May benull.- 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
-