Package com.helger.phase4.client
Class AS4ClientReceiptMessage
java.lang.Object
com.helger.phase4.client.AbstractAS4Client<IMPLTYPE>
com.helger.phase4.client.AbstractAS4ClientSignalMessage<AS4ClientReceiptMessage>
com.helger.phase4.client.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildMessage(String sMessageID, IAS4ClientBuildMessageCallback aCallback) Build the AS4 message to be sent.final Ebms3UserMessagefinal Nodefinal booleanDefault value isfalsefinal booleanfinal AS4ClientReceiptMessagesetEbms3UserMessage(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 contentfinal AS4ClientReceiptMessagesetNonRepudiation(boolean bNonRepudiation) final AS4ClientReceiptMessagesetReceiptShouldBeSigned(boolean bReceiptShouldBeSigned) final AS4ClientReceiptMessagesetSoapDocument(Node aSoapDocument) As node set the usermessage if it is signed, so the references can be counted and used in non repudiation.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
-
AS4ClientReceiptMessage
-
-
Method Details
-
isNonRepudiation
public final boolean isNonRepudiation()Default value isfalse- Returns:
- if non-repudiation is used or not
-
setNonRepudiation
-
getSoapDocument
-
setSoapDocument
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
-
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: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<AS4ClientReceiptMessage>- 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
-