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>Methods inherited from class com.helger.phase4.client.AbstractAS4ClientSignalMessage
anyMethods inherited from class com.helger.phase4.client.AbstractAS4Client
createDefaultMessageIDFactory, createMessageID, cryptParams, getAS4CryptoFactory, getAS4ResourceHelper, getHttpPoster, getMessageIDFactory, getMessageType, getRefToMessageID, getSendingDateTime, getSendingDateTimeOrNow, getSoapVersion, hasRefToMessageID, httpRetrySettings, internalCreateCryptoFactory, sendMessageWithRetries, setAS4CryptoFactory, setHttpPoster, setMessageID, setMessageIDFactory, setRefToMessageID, 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() -
buildMessage
public AS4ClientBuiltMessage buildMessage(@Nonnull @Nonempty String sMessageID, @Nullable IAS4ClientBuildMessageCallback aCallback) throws IOException 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:
IOException- in case of an IO error
-