public class SMPClientReadOnly extends AbstractGenericSMPClient<SMPClientReadOnly>
| Constructor and Description |
|---|
SMPClientReadOnly(com.helger.peppol.url.IPeppolURLProvider aURLProvider,
com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aParticipantIdentifier,
com.helger.peppol.sml.ISMLInfo aSMLInfo)
Constructor with SML lookup
|
SMPClientReadOnly(com.helger.peppol.url.IPeppolURLProvider aURLProvider,
com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aParticipantIdentifier,
String sSMLZoneName)
Constructor with SML lookup
|
SMPClientReadOnly(URI aSMPHost)
Constructor with a direct SMP URL.
|
| Modifier and Type | Method and Description |
|---|---|
com.helger.peppol.smp.CompleteServiceGroupType |
getCompleteServiceGroup(com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID)
Returns a complete service group.
|
com.helger.peppol.smp.CompleteServiceGroupType |
getCompleteServiceGroup(String sCompleteURI)
Returns a complete service group.
|
static com.helger.peppol.smp.CompleteServiceGroupType |
getCompleteServiceGroupByDNS(com.helger.peppol.url.IPeppolURLProvider aURLProvider,
com.helger.peppol.sml.ISMLInfo aSMLInfo,
com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID)
Returns a complete service group.
|
com.helger.peppol.smp.CompleteServiceGroupType |
getCompleteServiceGroupOrNull(com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID)
Returns a complete service group.
|
com.helger.peppol.smp.EndpointType |
getEndpoint(com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID,
com.helger.peppol.identifier.generic.doctype.IDocumentTypeIdentifier aDocumentTypeID,
com.helger.peppol.identifier.generic.process.IProcessIdentifier aProcessID,
com.helger.peppol.smp.ISMPTransportProfile aTransportProfile)
Gets a signed service metadata object given by its service group id and its
document type.
|
static com.helger.peppol.smp.EndpointType |
getEndpoint(com.helger.peppol.smp.SignedServiceMetadataType aSignedServiceMetadata,
com.helger.peppol.identifier.generic.process.IProcessIdentifier aProcessID,
com.helger.peppol.smp.ISMPTransportProfile aTransportProfile)
Extract the Endpoint from the signedServiceMetadata that matches the passed
process ID and the optional required transport profile.
|
static String |
getEndpointAddress(com.helger.peppol.smp.EndpointType aEndpoint) |
String |
getEndpointAddress(com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID,
com.helger.peppol.identifier.generic.doctype.IDocumentTypeIdentifier aDocumentTypeID,
com.helger.peppol.identifier.generic.process.IProcessIdentifier aProcessID,
com.helger.peppol.smp.ISMPTransportProfile aTransportProfile) |
static X509Certificate |
getEndpointCertificate(com.helger.peppol.smp.EndpointType aEndpoint) |
X509Certificate |
getEndpointCertificate(com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID,
com.helger.peppol.identifier.generic.doctype.IDocumentTypeIdentifier aDocumentTypeID,
com.helger.peppol.identifier.generic.process.IProcessIdentifier aProcessID,
com.helger.peppol.smp.ISMPTransportProfile aTransportProfile) |
static String |
getEndpointCertificateString(com.helger.peppol.smp.EndpointType aEndpoint) |
String |
getEndpointCertificateString(com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID,
com.helger.peppol.identifier.generic.doctype.IDocumentTypeIdentifier aDocumentTypeID,
com.helger.peppol.identifier.generic.process.IProcessIdentifier aProcessID,
com.helger.peppol.smp.ISMPTransportProfile aTransportProfile) |
com.helger.peppol.smp.ServiceGroupType |
getServiceGroup(com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID)
Returns a service group.
|
static com.helger.peppol.smp.ServiceGroupType |
getServiceGroupByDNS(com.helger.peppol.url.IPeppolURLProvider aURLProvider,
com.helger.peppol.sml.ISMLInfo aSMLInfo,
com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID)
Returns a service group.
|
com.helger.peppol.smp.ServiceGroupType |
getServiceGroupOrNull(com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID)
Returns a service group.
|
com.helger.peppol.smp.ServiceGroupReferenceListType |
getServiceGroupReferenceList(String sUserID,
com.helger.http.basicauth.BasicAuthClientCredentials aCredentials)
Gets a list of references to the CompleteServiceGroup's owned by the
specified userId.
|
com.helger.peppol.smp.ServiceGroupReferenceListType |
getServiceGroupReferenceListOrNull(String sUserID,
com.helger.http.basicauth.BasicAuthClientCredentials aCredentials)
Gets a list of references to the CompleteServiceGroup's owned by the
specified userId.
|
com.helger.peppol.smp.SignedServiceMetadataType |
getServiceRegistration(com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID,
com.helger.peppol.identifier.generic.doctype.IDocumentTypeIdentifier aDocumentTypeID)
Gets a signed service metadata object given by its service group id and its
document type.
|
static com.helger.peppol.smp.SignedServiceMetadataType |
getServiceRegistrationByDNS(com.helger.peppol.url.IPeppolURLProvider aURLProvider,
com.helger.peppol.sml.ISMLInfo aSMLInfo,
com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID,
com.helger.peppol.identifier.generic.doctype.IDocumentTypeIdentifier aDocumentTypeID)
Gets a signed service metadata object given by its service group id and its
document type.
|
com.helger.peppol.smp.SignedServiceMetadataType |
getServiceRegistrationOrNull(com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID,
com.helger.peppol.identifier.generic.doctype.IDocumentTypeIdentifier aDocumentTypeID)
Gets a signed service metadata object given by its service group id and its
document type.
|
createHttpContext, executeGenericRequest, executeRequest, getConnectionTimeoutMS, getConvertedException, getProxy, getProxyCredentials, getRequestTimeoutMS, getSMPHostURI, isCheckCertificate, isUseDNSClientCache, isUseProxySystemProperties, setCheckCertificate, setConnectionTimeoutMS, setProxy, setProxyCredentials, setRequestTimeoutMS, setUseDNSClientCache, setUseProxySystemProperties, toStringpublic SMPClientReadOnly(@Nonnull com.helger.peppol.url.IPeppolURLProvider aURLProvider, @Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aParticipantIdentifier, @Nonnull com.helger.peppol.sml.ISMLInfo aSMLInfo)
aURLProvider - The URL provider to be used. May not be null.aParticipantIdentifier - The participant identifier to be used. Required to build the SMP
access URI.aSMLInfo - The SML to be used. Required to build the SMP access URI.IPeppolURLProvider.getSMPURIOfParticipant(IParticipantIdentifier,
ISMLInfo)public SMPClientReadOnly(@Nonnull com.helger.peppol.url.IPeppolURLProvider aURLProvider, @Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aParticipantIdentifier, @Nonnull @Nonempty String sSMLZoneName)
aURLProvider - The URL provider to be used. May not be null.aParticipantIdentifier - The participant identifier to be used. Required to build the SMP
access URI.sSMLZoneName - The SML DNS zone name to be used. Required to build the SMP access
URI. Must end with a trailing dot (".") and may neither be
null nor empty to build a correct URL. May not start
with "http://". Example: sml.peppolcentral.org.IPeppolURLProvider.getSMPURIOfParticipant(IParticipantIdentifier,
String)@Nonnull public com.helger.peppol.smp.ServiceGroupReferenceListType getServiceGroupReferenceList(@Nonnull String sUserID, @Nonnull com.helger.http.basicauth.BasicAuthClientCredentials aCredentials) throws SMPClientException
sUserID - The username for which to retrieve service groups.aCredentials - The user name and password to use as credentials.null.SMPClientException - in case something goes wrongSMPClientUnauthorizedException - The username or password was not correct.SMPClientNotFoundException - The userId did not exist.SMPClientBadRequestException - The request was not well formed.getServiceGroupReferenceListOrNull(String,
BasicAuthClientCredentials)@Nullable public com.helger.peppol.smp.ServiceGroupReferenceListType getServiceGroupReferenceListOrNull(@Nonnull String sUserID, @Nonnull com.helger.http.basicauth.BasicAuthClientCredentials aCredentials) throws SMPClientException
sUserID - The username for which to retrieve service groups.aCredentials - The user name and password to use as credentials.null if no such user exists.SMPClientException - in case something goes wrongSMPClientUnauthorizedException - The username or password was not correct.SMPClientBadRequestException - The request was not well formed.getServiceGroupReferenceList(String, BasicAuthClientCredentials)@Nonnull public com.helger.peppol.smp.CompleteServiceGroupType getCompleteServiceGroup(@Nonnull String sCompleteURI) throws SMPClientException
sCompleteURI - The complete URL for the full service group to query.null.SMPClientException - in case something goes wrongSMPClientUnauthorizedException - A HTTP Forbidden was received, should not happen.SMPClientNotFoundException - The service group id did not exist.SMPClientBadRequestException - The request was not well formed.getCompleteServiceGroup(IParticipantIdentifier),
getCompleteServiceGroupOrNull(IParticipantIdentifier)@Nonnull public com.helger.peppol.smp.CompleteServiceGroupType getCompleteServiceGroup(@Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID) throws SMPClientException
aServiceGroupID - The service group id corresponding to the service group which one
wants to get.null.SMPClientException - in case something goes wrongSMPClientUnauthorizedException - A HTTP Forbidden was received, should not happen.SMPClientNotFoundException - The service group id did not exist.SMPClientBadRequestException - The request was not well formed.getCompleteServiceGroup(String),
getCompleteServiceGroupOrNull(IParticipantIdentifier)@Nullable public com.helger.peppol.smp.CompleteServiceGroupType getCompleteServiceGroupOrNull(@Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID) throws SMPClientException
aServiceGroupID - The service group id corresponding to the service group which one
wants to get.null if no such service group exists.SMPClientException - in case something goes wrongSMPClientUnauthorizedException - A HTTP Forbidden was received, should not happen.SMPClientBadRequestException - The request was not well formed.getCompleteServiceGroup(String),
getCompleteServiceGroup(IParticipantIdentifier)@Nonnull public com.helger.peppol.smp.ServiceGroupType getServiceGroup(@Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID) throws SMPClientException
aServiceGroupID - The service group id corresponding to the service group which one
wants to get.null.SMPClientException - in case something goes wrongSMPClientUnauthorizedException - A HTTP Forbidden was received, should not happen.SMPClientNotFoundException - The service group id did not exist.SMPClientBadRequestException - The request was not well formed.getServiceGroupOrNull(IParticipantIdentifier)@Nullable public com.helger.peppol.smp.ServiceGroupType getServiceGroupOrNull(@Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID) throws SMPClientException
aServiceGroupID - The service group id corresponding to the service group which one
wants to get.null if no such service
group exists.SMPClientException - in case something goes wrongSMPClientUnauthorizedException - A HTTP Forbidden was received, should not happen.SMPClientBadRequestException - The request was not well formed.getServiceGroup(IParticipantIdentifier)@Nonnull public com.helger.peppol.smp.SignedServiceMetadataType getServiceRegistration(@Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID, @Nonnull com.helger.peppol.identifier.generic.doctype.IDocumentTypeIdentifier aDocumentTypeID) throws SMPClientException
aServiceGroupID - The service group id of the service metadata to get. May not be
null.aDocumentTypeID - The document type of the service metadata to get. May not be
null.null.SMPClientException - in case something goes wrongSMPClientUnauthorizedException - A HTTP Forbidden was received, should not happen.SMPClientNotFoundException - The service group id or document type did not exist.SMPClientBadRequestException - The request was not well formed.getServiceRegistrationOrNull(IParticipantIdentifier,
IDocumentTypeIdentifier)@Nullable public com.helger.peppol.smp.SignedServiceMetadataType getServiceRegistrationOrNull(@Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID, @Nonnull com.helger.peppol.identifier.generic.doctype.IDocumentTypeIdentifier aDocumentTypeID) throws SMPClientException
aServiceGroupID - The service group id of the service metadata to get. May not be
null.aDocumentTypeID - The document type of the service metadata to get. May not be
null.null if no such
registration is present.SMPClientException - in case something goes wrongSMPClientUnauthorizedException - A HTTP Forbidden was received, should not happen.SMPClientBadRequestException - The request was not well formed.getServiceRegistration(IParticipantIdentifier,
IDocumentTypeIdentifier)@Nullable public com.helger.peppol.smp.EndpointType getEndpoint(@Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID, @Nonnull com.helger.peppol.identifier.generic.doctype.IDocumentTypeIdentifier aDocumentTypeID, @Nonnull com.helger.peppol.identifier.generic.process.IProcessIdentifier aProcessID, @Nonnull com.helger.peppol.smp.ISMPTransportProfile aTransportProfile) throws SMPClientException
aServiceGroupID - The service group id of the service metadata to get. May not be
null.aDocumentTypeID - The document type of the service metadata to get. May not be
null.aProcessID - The process ID of the service metadata to get. May not be
null.aTransportProfile - The transport profile of the service metadata to get. May not be
null.null if no such registration is present.SMPClientException - in case something goes wrongSMPClientUnauthorizedException - A HTTP Forbidden was received, should not happen.SMPClientBadRequestException - The request was not well formed.getServiceRegistrationOrNull(IParticipantIdentifier,IDocumentTypeIdentifier)@Nullable public static com.helger.peppol.smp.EndpointType getEndpoint(@Nonnull com.helger.peppol.smp.SignedServiceMetadataType aSignedServiceMetadata, @Nonnull com.helger.peppol.identifier.generic.process.IProcessIdentifier aProcessID, @Nonnull com.helger.peppol.smp.ISMPTransportProfile aTransportProfile)
aSignedServiceMetadata - The signed service meta data object (e.g. from a call to
getServiceRegistrationOrNull(IParticipantIdentifier, IDocumentTypeIdentifier)
. May not be null.aProcessID - The process identifier to be looked up. May not be null
.aTransportProfile - The required transport profile to be used. May not be
null.null if no matching endpoint was found@Nullable public static String getEndpointAddress(@Nullable com.helger.peppol.smp.EndpointType aEndpoint)
@Nullable public String getEndpointAddress(@Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID, @Nonnull com.helger.peppol.identifier.generic.doctype.IDocumentTypeIdentifier aDocumentTypeID, @Nonnull com.helger.peppol.identifier.generic.process.IProcessIdentifier aProcessID, @Nonnull com.helger.peppol.smp.ISMPTransportProfile aTransportProfile) throws SMPClientException
SMPClientException@Nullable public static String getEndpointCertificateString(@Nullable com.helger.peppol.smp.EndpointType aEndpoint)
@Nullable public String getEndpointCertificateString(@Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID, @Nonnull com.helger.peppol.identifier.generic.doctype.IDocumentTypeIdentifier aDocumentTypeID, @Nonnull com.helger.peppol.identifier.generic.process.IProcessIdentifier aProcessID, @Nonnull com.helger.peppol.smp.ISMPTransportProfile aTransportProfile) throws SMPClientException
SMPClientException@Nullable public X509Certificate getEndpointCertificate(@Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID, @Nonnull com.helger.peppol.identifier.generic.doctype.IDocumentTypeIdentifier aDocumentTypeID, @Nonnull com.helger.peppol.identifier.generic.process.IProcessIdentifier aProcessID, @Nonnull com.helger.peppol.smp.ISMPTransportProfile aTransportProfile) throws SMPClientException, CertificateException
@Nullable public static X509Certificate getEndpointCertificate(@Nullable com.helger.peppol.smp.EndpointType aEndpoint) throws CertificateException
CertificateException@Nonnull public static com.helger.peppol.smp.CompleteServiceGroupType getCompleteServiceGroupByDNS(@Nonnull com.helger.peppol.url.IPeppolURLProvider aURLProvider, @Nonnull com.helger.peppol.sml.ISMLInfo aSMLInfo, @Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID) throws SMPClientException
aURLProvider - The URL provider to be used. May not be null.aSMLInfo - The SML object to be usedaServiceGroupID - The service group id corresponding to the service group which one
wants to get.SMPClientException - in case something goes wrongSMPClientUnauthorizedException - A HTTP Forbidden was received, should not happen.SMPClientNotFoundException - The service group id did not exist.SMPClientBadRequestException - The request was not well formed.@Nonnull public static com.helger.peppol.smp.ServiceGroupType getServiceGroupByDNS(@Nonnull com.helger.peppol.url.IPeppolURLProvider aURLProvider, @Nonnull com.helger.peppol.sml.ISMLInfo aSMLInfo, @Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID) throws SMPClientException
aURLProvider - The URL provider to be used. May not be null.aSMLInfo - The SML object to be usedaServiceGroupID - The service group id corresponding to the service group which one
wants to get.SMPClientException - in case something goes wrongSMPClientUnauthorizedException - A HTTP Forbidden was received, should not happen.SMPClientNotFoundException - The service group id did not exist.SMPClientBadRequestException - The request was not well formed.@Nonnull public static com.helger.peppol.smp.SignedServiceMetadataType getServiceRegistrationByDNS(@Nonnull com.helger.peppol.url.IPeppolURLProvider aURLProvider, @Nonnull com.helger.peppol.sml.ISMLInfo aSMLInfo, @Nonnull com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID, @Nonnull com.helger.peppol.identifier.generic.doctype.IDocumentTypeIdentifier aDocumentTypeID) throws SMPClientException
aURLProvider - The URL provider to be used. May not be null.aSMLInfo - The SML object to be usedaServiceGroupID - The service group id of the service metadata to get.aDocumentTypeID - The document type of the service metadata to get.SMPClientException - in case something goes wrongSMPClientUnauthorizedException - A HTTP Forbidden was received, should not happen.SMPClientNotFoundException - The service group id or document type did not exist.SMPClientBadRequestException - The request was not well formed.Copyright © 2015–2017 Philip Helger. All rights reserved.