Package com.helger.phase4.peppol
Class Phase4PeppolSender
java.lang.Object
com.helger.phase4.peppol.Phase4PeppolSender
This class contains all the specifics to send AS4 messages to the Peppol Network. See
sendAS4Message as the main method to trigger the sending, with all potential
customization.- Author:
- Philip Helger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPhase4PeppolSender.AbstractPeppolUserMessageBuilder<IMPLTYPE extends Phase4PeppolSender.AbstractPeppolUserMessageBuilder<IMPLTYPE>>Abstract builder base class with the minimum requirements configurationstatic classThe builder class for sending AS4 messages using Peppol specifics.static classA builder class for sending AS4 messages using Peppol specifics. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.helger.peppolid.factory.PeppolIdentifierFactorystatic final StringDeprecated, for removal: This API element is subject to removal in a future version.static final com.helger.smpclient.url.IPeppolURLProvider -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Phase4PeppolSender.PeppolUserMessageBuilderbuilder()static @Nullable org.unece.cefact.namespaces.sbdh.StandardBusinessDocumentcreateSBDH(@NonNull com.helger.peppolid.IParticipantIdentifier aSenderID, @NonNull com.helger.peppolid.IParticipantIdentifier aReceiverID, @NonNull com.helger.peppolid.IDocumentTypeIdentifier aDocTypeID, @NonNull com.helger.peppolid.IProcessIdentifier aProcID, @Nullable String sCountryC1, @Nullable String sInstanceIdentifier, @Nullable String sStandard, @Nullable String sTypeVersion, @Nullable String sType, @NonNull Element aPayloadElement) static @NonNull Phase4PeppolSender.PeppolUserMessageSBDHBuilder
-
Field Details
-
IF
public static final com.helger.peppolid.factory.PeppolIdentifierFactory IF -
URL_PROVIDER
public static final com.helger.smpclient.url.IPeppolURLProvider URL_PROVIDER -
REGEX_SEAT_ID
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Method Details
-
createSBDH
public static @Nullable org.unece.cefact.namespaces.sbdh.StandardBusinessDocument createSBDH(@NonNull com.helger.peppolid.IParticipantIdentifier aSenderID, @NonNull com.helger.peppolid.IParticipantIdentifier aReceiverID, @NonNull com.helger.peppolid.IDocumentTypeIdentifier aDocTypeID, @NonNull com.helger.peppolid.IProcessIdentifier aProcID, @Nullable String sCountryC1, @Nullable String sInstanceIdentifier, @Nullable String sStandard, @Nullable String sTypeVersion, @Nullable String sType, @NonNull Element aPayloadElement) - Parameters:
aSenderID- Sender participant ID. May not benull.aReceiverID- Receiver participant ID. May not benull.aDocTypeID- Document type ID. May not benull.aProcID- Process ID. May not benull.sCountryC1- Country code of C1. May benull.sInstanceIdentifier- SBDH instance identifier. May benullto create a random ID.sStandard- SBDH standard (e.g. the XML payload root element namespace URI). May benullto use the default.sTypeVersion- SBDH syntax version ID (e.g. "2.1" for OASIS UBL 2.1). May benullto use the default.sType- SBDH type (e.g. the XML payload root element local name). May benullto use the default.aPayloadElement- Payload element to be wrapped. May not benull.- Returns:
- The domain object representation of the created SBDH or
nullif not all parameters are present. - Since:
- 3.1.0
-
builder
- Returns:
- Create a new Builder for AS4 messages if the payload is present and the SBDH is always
created internally by phase4. Never
null. - Since:
- 0.9.4
- See Also:
-
sbdhBuilder
- Returns:
- Create a new Builder for AS4 messages if the SBDH payload is already present. This
builder is slightly more limited, because it doesn't offer validation, as it is
expected to be done before. Use this builder e.g. for the Peppol Testbed messages.
Never
null. - Since:
- 0.9.6
- See Also:
-