Package com.helger.smpclient.url
Interface IBDXLURLProvider
- All Superinterfaces:
ISMPURLProvider
- All Known Implementing Classes:
BDXLURLProvider,DBNAURLProviderSMP
BDXP URL provider. Layout:
strip-trailing(base32(sha256(lowercase(ID-VALUE))),"=")+"."+ID-SCHEME+"."+SML-ZONE-NAME- Since:
- 6.1.2, reworked in 8.1.7
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetDNSNameOfParticipant(com.helger.peppolid.IParticipantIdentifier aParticipantIdentifier, com.helger.peppol.sml.ISMLInfo aSMLInfo) Get the name of the DNS NAPTR record.getDNSNameOfParticipant(com.helger.peppolid.IParticipantIdentifier aParticipantIdentifier, String sSMLZoneName) Get the name of the DNS NAPTR record.Methods inherited from interface com.helger.smpclient.url.ISMPURLProvider
getSMPURIOfParticipant, getSMPURIOfParticipant, getSMPURLOfParticipant, getSMPURLOfParticipant
-
Method Details
-
getDNSNameOfParticipant
@Nonnull String getDNSNameOfParticipant(@Nonnull com.helger.peppolid.IParticipantIdentifier aParticipantIdentifier, @Nullable String sSMLZoneName) throws SMPDNSResolutionException Get the name of the DNS NAPTR record.- Parameters:
aParticipantIdentifier- Participant identifier. May not benull.sSMLZoneName- e.g.sml.peppolcentral.org.. May be empty. If it is not empty, it must end with a dot!- Returns:
- DNS record. It does not contain any prefix like
http://or any path suffix. It is the plain DNS host name. - Throws:
SMPDNSResolutionException- If the URL resolution failed.IllegalArgumentException- In case one argument is invalid
-
getDNSNameOfParticipant
@Nonnull default String getDNSNameOfParticipant(@Nonnull com.helger.peppolid.IParticipantIdentifier aParticipantIdentifier, @Nonnull com.helger.peppol.sml.ISMLInfo aSMLInfo) throws SMPDNSResolutionException Get the name of the DNS NAPTR record.- Parameters:
aParticipantIdentifier- Participant identifier. May not benull.aSMLInfo- The SML information object to be used. May not benull.- Returns:
- DNS record. It does not contain any prefix like
http://or any path suffix. It is the plain DNS host name. - Throws:
SMPDNSResolutionException- If the URL resolution failed.
-