Package com.helger.smpclient.peppol
Interface ISMPServiceMetadataProvider
- All Known Subinterfaces:
ISMPExtendedServiceMetadataProvider
- All Known Implementing Classes:
SMPClient,SMPClientReadOnly
public interface ISMPServiceMetadataProvider
Abstract interface to retrieve a Peppol Service Metadata instance.
- Since:
- 7.0.6
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptioncom.helger.xsds.peppol.smp1.SignedServiceMetadataTypegetServiceMetadata(com.helger.peppolid.IParticipantIdentifier aServiceGroupID, com.helger.peppolid.IDocumentTypeIdentifier aDocumentTypeID) Gets a signed service metadata object given by its service group id and its document type.
This is a specification compliant method.com.helger.xsds.peppol.smp1.SignedServiceMetadataTypegetServiceMetadataOrNull(com.helger.peppolid.IParticipantIdentifier aServiceGroupID, com.helger.peppolid.IDocumentTypeIdentifier aDocumentTypeID) Gets a signed service metadata object given by its service group id and its document type.
This is a specification compliant method.
-
Method Details
-
getServiceMetadata
@Nonnull com.helger.xsds.peppol.smp1.SignedServiceMetadataType getServiceMetadata(@Nonnull com.helger.peppolid.IParticipantIdentifier aServiceGroupID, @Nonnull com.helger.peppolid.IDocumentTypeIdentifier aDocumentTypeID) throws SMPClientException Gets a signed service metadata object given by its service group id and its document type.
This is a specification compliant method.- Parameters:
aServiceGroupID- The service group id of the service metadata to get. May not benull.aDocumentTypeID- The document type of the service metadata to get. May not benull.- Returns:
- A signed service metadata object. Never
null. - Throws:
SMPClientException- in case something goes wrong- Since:
- 9.5.1 in this interface
- See Also:
-
getServiceMetadataOrNull
@Nullable com.helger.xsds.peppol.smp1.SignedServiceMetadataType getServiceMetadataOrNull(@Nonnull com.helger.peppolid.IParticipantIdentifier aServiceGroupID, @Nonnull com.helger.peppolid.IDocumentTypeIdentifier aDocumentTypeID) throws SMPClientException Gets a signed service metadata object given by its service group id and its document type.
This is a specification compliant method.- Parameters:
aServiceGroupID- The ID of the service group to query. May not benull.aDocumentTypeID- The document type of the service metadata to retrieve. May not benull.- Returns:
- A service metadata object or
nullif no such registration is present. - Throws:
SMPClientException- in case something goes wrong- See Also:
-