Package com.helger.smpclient.url
Interface ISMPURLProvider
- All Known Subinterfaces:
IBDXLURLProvider,IPeppolURLProvider
- All Known Implementing Classes:
BDXLURLProvider,DBNAURLProviderSMP,PeppolNaptrURLProvider,PeppolURLProvider
public interface ISMPURLProvider
Base interface for a customizable SMP URL provider.
- Since:
- 8.1.7
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault URIgetSMPURIOfParticipant(com.helger.peppolid.IParticipantIdentifier aParticipantIdentifier, com.helger.peppol.sml.ISMLInfo aSMLInfo) Get the SMP URI of the passed participant ID in the provided SML DNS zone name.getSMPURIOfParticipant(com.helger.peppolid.IParticipantIdentifier aParticipantIdentifier, String sSMLZoneName) Get the SMP URI of the passed participant ID in the provided SML DNS zone name.default URLgetSMPURLOfParticipant(com.helger.peppolid.IParticipantIdentifier aParticipantIdentifier, com.helger.peppol.sml.ISMLInfo aSMLInfo) Get the SMP URL of the passed participant ID in the provided SML DNS zone name.default URLgetSMPURLOfParticipant(com.helger.peppolid.IParticipantIdentifier aParticipantIdentifier, String sSMLZoneName) Get the SMP URL of the passed participant ID in the provided SML DNS zone name.
-
Method Details
-
getSMPURIOfParticipant
@Nonnull URI getSMPURIOfParticipant(@Nonnull com.helger.peppolid.IParticipantIdentifier aParticipantIdentifier, @Nullable String sSMLZoneName) throws SMPDNSResolutionException Get the SMP URI of the passed participant ID in the provided SML DNS zone name.- Parameters:
aParticipantIdentifier- The participant ID. May not benull.sSMLZoneName- The SML zone to use. May benull.- Returns:
- A new URI starting with "http://" and never ending with a slash.
- Throws:
SMPDNSResolutionException- If the URL resolution failed.- See Also:
-
getSMPURIOfParticipant
@Nonnull default URI getSMPURIOfParticipant(@Nonnull com.helger.peppolid.IParticipantIdentifier aParticipantIdentifier, @Nonnull com.helger.peppol.sml.ISMLInfo aSMLInfo) throws SMPDNSResolutionException Get the SMP URI of the passed participant ID in the provided SML DNS zone name.- Parameters:
aParticipantIdentifier- The participant ID. May not benull.aSMLInfo- The SML zone to use. May not benull.- Returns:
- A new URI starting with "http://" and never ending with a slash.
- Throws:
SMPDNSResolutionException- If the URL resolution failed.- See Also:
-
getSMPURLOfParticipant
@Nonnull default URL getSMPURLOfParticipant(@Nonnull com.helger.peppolid.IParticipantIdentifier aParticipantIdentifier, @Nonnull com.helger.peppol.sml.ISMLInfo aSMLInfo) throws SMPDNSResolutionException Get the SMP URL of the passed participant ID in the provided SML DNS zone name.- Parameters:
aParticipantIdentifier- The participant ID. May not benull.aSMLInfo- The SML zone to use. May not benull.- Returns:
- A new URL with scheme "http:" and never ending with a slash.
- Throws:
SMPDNSResolutionException- If the URL resolution failed.- See Also:
-
getSMPURLOfParticipant
@Nonnull default URL getSMPURLOfParticipant(@Nonnull com.helger.peppolid.IParticipantIdentifier aParticipantIdentifier, @Nullable String sSMLZoneName) throws SMPDNSResolutionException Get the SMP URL of the passed participant ID in the provided SML DNS zone name.- Parameters:
aParticipantIdentifier- The participant ID. May not benull.sSMLZoneName- The SML zone name to use. May benull.- Returns:
- A new URL with scheme "http:" and never ending with a slash.
- Throws:
SMPDNSResolutionException- If the URL resolution failed.- See Also:
-