@Immutable public final class TCAPIHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static Locale |
DEFAULT_LOCALE |
| Modifier and Type | Method and Description |
|---|---|
static com.helger.commons.collection.impl.ICommonsSet<eu.toop.connector.api.dsd.DSDDatasetResponse> |
getDSDDatasets(String sDatasetType,
String sCountryCode,
eu.toop.connector.api.error.ITCErrorHandler aErrorHdl)
Deprecated.
|
static com.helger.commons.collection.impl.ICommonsSet<eu.toop.connector.api.dsd.DSDDatasetResponse> |
getDSDDatasetsByCountry(String sDatasetType,
String sCountryCode,
eu.toop.connector.api.error.ITCErrorHandler aErrorHdl) |
static com.helger.commons.collection.impl.ICommonsSet<eu.toop.connector.api.dsd.DSDDatasetResponse> |
getDSDDatasetsByDPType(String sDatasetType,
String sDPType,
eu.toop.connector.api.error.ITCErrorHandler aErrorHdl) |
static com.helger.xsds.bdxr.smp1.EndpointType |
querySMPEndpoint(com.helger.peppolid.IParticipantIdentifier aParticipantID,
com.helger.peppolid.IDocumentTypeIdentifier aDocTypeID,
com.helger.peppolid.IProcessIdentifier aProcessID,
String sTransportProfile)
Find the dynamic discovery endpoint from the respective parameters.
|
static com.helger.commons.collection.impl.ICommonsSortedMap<String,String> |
querySMPServiceGroups(com.helger.peppolid.IParticipantIdentifier aParticipantID) |
static com.helger.xsds.bdxr.smp1.ServiceMetadataType |
querySMPServiceMetadata(com.helger.peppolid.IParticipantIdentifier aParticipantID,
com.helger.peppolid.IDocumentTypeIdentifier aDocTypeID,
com.helger.peppolid.IProcessIdentifier aProcessID,
String sTransportProfile)
Find the service metadata.
|
static void |
sendAS4Message(eu.toop.connector.api.me.outgoing.IMERoutingInformation aRoutingInfo,
eu.toop.connector.api.me.model.MEMessage aMessage)
Send an AS4 message using the configured Message Exchange Module (MEM).
|
static com.helger.phive.api.result.ValidationResultList |
validateBusinessDocument(com.helger.phive.api.executorset.VESID aVESID,
byte[] aPayload)
Perform validation
|
public static final Locale DEFAULT_LOCALE
@Deprecated @Nonnull public static com.helger.commons.collection.impl.ICommonsSet<eu.toop.connector.api.dsd.DSDDatasetResponse> getDSDDatasets(@Nonnull @Nonempty String sDatasetType, @Nonnull @Nonempty String sCountryCode, @Nonnull eu.toop.connector.api.error.ITCErrorHandler aErrorHdl)
getDSDDatasetsByCountry(String, String, ITCErrorHandler)
instedsDatasetType - Dataset Type to query. May neither be null nor empty.sCountryCode - Country code to use. Must be a 2-digit string. May neither be
null nor empty.aErrorHdl - The error handler to be used. May not be null.null but maybe empty set of datasets.@Nonnull public static com.helger.commons.collection.impl.ICommonsSet<eu.toop.connector.api.dsd.DSDDatasetResponse> getDSDDatasetsByCountry(@Nonnull @Nonempty String sDatasetType, @Nonnull @Nonempty String sCountryCode, @Nonnull eu.toop.connector.api.error.ITCErrorHandler aErrorHdl)
sDatasetType - Dataset Type to query. May neither be null nor empty.sCountryCode - Country code to use. Must be a 2-digit string. May neither be
null nor empty.aErrorHdl - The error handler to be used. May not be null.null but maybe empty set of datasets.@Nonnull public static com.helger.commons.collection.impl.ICommonsSet<eu.toop.connector.api.dsd.DSDDatasetResponse> getDSDDatasetsByDPType(@Nonnull @Nonempty String sDatasetType, @Nonnull @Nonempty String sDPType, @Nonnull eu.toop.connector.api.error.ITCErrorHandler aErrorHdl)
sDatasetType - Dataset Type to query. May neither be null nor empty.sDPType - DP type to use. May neither be null nor empty.aErrorHdl - The error handler to be used. May not be null.null but maybe empty set of datasets.@Nonnull public static com.helger.commons.collection.impl.ICommonsSortedMap<String,String> querySMPServiceGroups(@Nonnull com.helger.peppolid.IParticipantIdentifier aParticipantID)
aParticipantID - Participant ID to query. May not be null.null sorted map of all hrefs. The key MUST be
URL decoded whereas the value is the "original href" as found in
the response.@Nullable public static com.helger.xsds.bdxr.smp1.ServiceMetadataType querySMPServiceMetadata(@Nonnull com.helger.peppolid.IParticipantIdentifier aParticipantID, @Nonnull com.helger.peppolid.IDocumentTypeIdentifier aDocTypeID, @Nonnull com.helger.peppolid.IProcessIdentifier aProcessID, @Nonnull String sTransportProfile)
aParticipantID - Participant ID to query. May not be null.aDocTypeID - Document type ID. May not be null.aProcessID - Process ID. May not be null.sTransportProfile - Transport profile ID. May not be null.null if not found.@Nullable public static com.helger.xsds.bdxr.smp1.EndpointType querySMPEndpoint(@Nonnull com.helger.peppolid.IParticipantIdentifier aParticipantID, @Nonnull com.helger.peppolid.IDocumentTypeIdentifier aDocTypeID, @Nonnull com.helger.peppolid.IProcessIdentifier aProcessID, @Nonnull String sTransportProfile)
querySMPServiceMetadata(IParticipantIdentifier, IDocumentTypeIdentifier, IProcessIdentifier, String)
and filters out the matching process ID and transport profile ID.aParticipantID - Participant ID to query. May not be null.aDocTypeID - Document type ID. May not be null.aProcessID - Process ID. May not be null.sTransportProfile - Transport profile to be used. May not be null.null if no such endpoint was found@Nonnull public static com.helger.phive.api.result.ValidationResultList validateBusinessDocument(@Nonnull com.helger.phive.api.executorset.VESID aVESID, @Nonnull byte[] aPayload)
aVESID - VESID to use.aPayload - Payload to validate.null result list.public static void sendAS4Message(@Nonnull eu.toop.connector.api.me.outgoing.IMERoutingInformation aRoutingInfo, @Nonnull eu.toop.connector.api.me.model.MEMessage aMessage) throws eu.toop.connector.api.me.outgoing.MEOutgoingException
aRoutingInfo - Routing information. May not be null.aMessage - The message to be exchanged. May not be null.eu.toop.connector.api.me.outgoing.MEOutgoingException - In case of error.Copyright © 2020–2021 toop.eu. All rights reserved.