public class BDXRClientReadOnly extends AbstractGenericSMPClient<BDXRClientReadOnly>
Note: this class is also licensed under Apache 2 license, as it was not part of the original implementation
| Constructor and Description |
|---|
BDXRClientReadOnly(com.helger.peppol.url.IPeppolURLProvider aURLProvider,
com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aParticipantIdentifier,
com.helger.peppol.sml.ISMLInfo aSMLInfo)
Constructor with SML lookup
|
BDXRClientReadOnly(com.helger.peppol.url.IPeppolURLProvider aURLProvider,
com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aParticipantIdentifier,
String sSMLZoneName)
Constructor with SML lookup
|
BDXRClientReadOnly(URI aSMPHost)
Constructor with a direct SMP URL.
|
| Modifier and Type | Method and Description |
|---|---|
com.helger.peppol.bdxr.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.bdxr.EndpointType |
getEndpoint(com.helger.peppol.bdxr.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.bdxr.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.bdxr.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 byte[] |
getEndpointCertificateString(com.helger.peppol.bdxr.EndpointType aEndpoint) |
byte[] |
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.bdxr.ServiceGroupType |
getServiceGroup(com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID)
Returns a service group.
|
static com.helger.peppol.bdxr.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.bdxr.ServiceGroupType |
getServiceGroupOrNull(com.helger.peppol.identifier.generic.participant.IParticipantIdentifier aServiceGroupID)
Returns a service group.
|
com.helger.peppol.bdxr.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.bdxr.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.bdxr.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 BDXRClientReadOnly(@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 BDXRClientReadOnly(@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.bdxr.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.bdxr.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.bdxr.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.bdxr.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.bdxr.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.bdxr.EndpointType getEndpoint(@Nonnull com.helger.peppol.bdxr.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.bdxr.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 byte[] getEndpointCertificateString(@Nullable com.helger.peppol.bdxr.EndpointType aEndpoint)
@Nullable public byte[] 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.bdxr.EndpointType aEndpoint) throws CertificateException
CertificateException@Nonnull public static com.helger.peppol.bdxr.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.bdxr.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.