Package com.helger.phase4.model.message
Class AbstractAS4Message<IMPLTYPE extends AbstractAS4Message<IMPLTYPE>>
java.lang.Object
com.helger.phase4.model.message.AbstractAS4Message<IMPLTYPE>
- Type Parameters:
IMPLTYPE- Real implementation type.
- All Implemented Interfaces:
com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>,IAS4Message
- Direct Known Subclasses:
AS4ErrorMessage,AS4PullRequestMessage,AS4ReceiptMessage,AS4UserMessage
public abstract class AbstractAS4Message<IMPLTYPE extends AbstractAS4Message<IMPLTYPE>>
extends Object
implements IAS4Message, com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>
Abstract AS4 message implementation
- Author:
- Philip Helger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DocumentgetAsSoapDocument(Node aSoapBodyPayload) Create a SOAP document from this message with the specified optional SOAP body payload.final EAS4MessageTypefinal Stringfinal ESoapVersionfinal IMPLTYPEsetMustUnderstand(boolean bMustUnderstand) Set the "mustUnderstand" value depending on the used SOAP version.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.phase4.model.message.IAS4Message
getAsSoapDocumentMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsT
-
Field Details
-
m_aMessaging
-
-
Constructor Details
-
AbstractAS4Message
-
-
Method Details
-
getSoapVersion
- Specified by:
getSoapVersionin interfaceIAS4Message- Returns:
- The SOAP version to use. May not be
null.
-
getMessageType
- Specified by:
getMessageTypein interfaceIAS4Message- Returns:
- The type of the underlying message. Never
null.
-
getMessagingID
- Specified by:
getMessagingIDin interfaceIAS4Message- Returns:
- The ID of the "Messaging" element for referencing in signing.
Should not be
null. This is NOT the AS4 Message ID.
-
setMustUnderstand
Description copied from interface:IAS4MessageSet the "mustUnderstand" value depending on the used SOAP version.- Specified by:
setMustUnderstandin interfaceIAS4Message- Parameters:
bMustUnderstand-truefor must understand,falseotherwise.- Returns:
- this for chaining
-
getAsSoapDocument
Description copied from interface:IAS4MessageCreate a SOAP document from this message with the specified optional SOAP body payload. Attachments are not handled by this method.- Specified by:
getAsSoapDocumentin interfaceIAS4Message- Parameters:
aSoapBodyPayload- The payload to be added into the SOAP body. May benull.- Returns:
- The created DOM document.
- See Also:
-
toString
-