public class ManageServiceMetadataServiceCaller
extends com.helger.wsclient.WSClientConfig
| Constructor and Description |
|---|
ManageServiceMetadataServiceCaller(com.helger.peppol.sml.ISMLInfo aSMLInfo)
Creates a service caller for the service metadata interface
|
ManageServiceMetadataServiceCaller(URL aEndpointAddress)
Creates a service caller for the service meta data interface
|
| Modifier and Type | Method and Description |
|---|---|
void |
create(ServiceMetadataPublisherServiceType aServiceMetadata)
Creates the service metadata for the specified user.
|
void |
create(String sSMPID,
String sSMPAddressPhysical,
String sSMPAddressLogical)
Creates the service metadata for the specified user.
|
protected ManageServiceMetadataServiceSoap |
createWSPort()
Create the main WebService client for the specified endpoint address.
|
void |
delete(String sSMPID)
Deletes the service metadata given by the publisher id.
|
ServiceMetadataPublisherServiceType |
read(ServiceMetadataPublisherServiceType aSMPService)
Returns information about the publisher given by the publisher id.
|
ServiceMetadataPublisherServiceType |
read(String sSMPID)
Returns information about the publisher given by the publisher id.
|
void |
update(ServiceMetadataPublisherServiceType aServiceMetadata)
Updates the specified service metadata.
|
void |
update(String sSMPID,
String sSMPAddressPhysical,
String sSMPAddressLogical)
Updates the specified service metadata given by the publisher id.
|
protected void |
validateLogicalAddress(String sLogicalAddress)
Custom validation method to provide additional logical address validation.
|
protected void |
validatePhysicalAddress(String sPhysicalAddress)
Custom validation method to provide additional physical address validation.
|
applyWSSettingsToBindingProvider, customizeRequestContext, getChunkSize, getConnectionTimeoutMS, getEndpointAddress, getHostnameVerifier, getPassword, getRequestTimeoutMS, getSOAPAction, getSSLSocketFactory, getUserName, handlers, hasChunkSize, hasConnectionTimeoutMS, hasPassword, hasRequestTimeoutMS, hasSOAPAction, hasUserName, httpHeaders, isCookiesSupportEnabled, isWorkAroundMASM0003, setChunkSize, setCompressedRequest, setCompressedResponse, setConnectionTimeoutMS, setCookiesSupportEnabled, setHostnameVerifier, setHostnameVerifierTrustAll, setHostnameVerifierTrustAll, setPassword, setRequestTimeoutMS, setSOAPAction, setSSLSocketFactory, setSSLSocketFactoryTrustAll, setSSLSocketFactoryTrustAll, setUserName, setWorkAroundMASM0003public ManageServiceMetadataServiceCaller(@Nonnull com.helger.peppol.sml.ISMLInfo aSMLInfo)
aSMLInfo - The SML info object. May not be null.@Nonnull @OverrideOnDemand @OverridingMethodsMustInvokeSuper protected ManageServiceMetadataServiceSoap createWSPort()
null.@OverrideOnDemand protected void validatePhysicalAddress(@Nonnull @Nonempty String sPhysicalAddress)
IllegalArgumentException if validation fails.sPhysicalAddress - The physical address to be validated. Neither null nor
empty.@OverrideOnDemand protected void validateLogicalAddress(@Nonnull @Nonempty String sLogicalAddress)
IllegalArgumentException if validation fails.sLogicalAddress - The logical address to be validated. Neither null nor
empty.public void create(@Nonnull @Nonempty String sSMPID, @Nonnull @Nonempty String sSMPAddressPhysical, @Nonnull @Nonempty String sSMPAddressLogical) throws BadRequestFault, InternalErrorFault, UnauthorizedFault
sSMPID - The certificate UID of the SMP. May neither be null nor
empty.sSMPAddressPhysical - The physical address of the SMP (Example: 198.0.0.1). May neither be
null nor empty.sSMPAddressLogical - The logical address of the SMP (Example: http://smp.example.org/).
May neither be null nor empty.BadRequestFault - The request was not well formed.InternalErrorFault - An internal error happened on the server.UnauthorizedFault - The user name or password was not correct.public void create(@Nonnull ServiceMetadataPublisherServiceType aServiceMetadata) throws BadRequestFault, InternalErrorFault, UnauthorizedFault
aServiceMetadata - The data about the SMP. May not be null.BadRequestFault - The request was not well formed.InternalErrorFault - An internal error happened on the server.UnauthorizedFault - The user name or password was not correct.public void update(@Nonnull @Nonempty String sSMPID, @Nonnull @Nonempty String sSMPAddressPhysical, @Nonnull @Nonempty String sSMPAddressLogical) throws InternalErrorFault, NotFoundFault, UnauthorizedFault, BadRequestFault
sSMPID - The publisher id. May neither be null nor empty.sSMPAddressPhysical - The physical address of the SMP (Example: 198.0.0.1). May neither be
null nor empty.sSMPAddressLogical - The logical address of the SMP (Example: http://smp.example.org/).
May neither be null nor empty.InternalErrorFault - An internal error happened on the server.NotFoundFault - The service metadata with the given publisher id was not found.UnauthorizedFault - The username or password was not correct.BadRequestFault - The request was not well formed.public void update(@Nonnull ServiceMetadataPublisherServiceType aServiceMetadata) throws InternalErrorFault, NotFoundFault, UnauthorizedFault, BadRequestFault
aServiceMetadata - The service metadata instance to update. May not be
null.InternalErrorFault - An internal error happened on the server.NotFoundFault - The service metadata with the given publisher id was not found.UnauthorizedFault - The username or password was not correct.BadRequestFault - The request was not well formed.public void delete(@Nonnull @Nonempty String sSMPID) throws InternalErrorFault, NotFoundFault, UnauthorizedFault, BadRequestFault
sSMPID - The publisher id of the service metadata to delete. May neither be
null nor empty.InternalErrorFault - An internal error happened on the server.NotFoundFault - The service metadata with the given publisher id was not found.UnauthorizedFault - The username or password was not correct.BadRequestFault - The request was not well formed.@Nonnull public ServiceMetadataPublisherServiceType read(@Nonnull @Nonempty String sSMPID) throws InternalErrorFault, NotFoundFault, UnauthorizedFault, BadRequestFault
sSMPID - The publisher id of the service metadata to read.InternalErrorFault - An internal error happened on the server.NotFoundFault - The service metadata with the given publisher id was not found.UnauthorizedFault - The username or password was not correct.BadRequestFault - The request was not well formed.@Nonnull public ServiceMetadataPublisherServiceType read(@Nonnull ServiceMetadataPublisherServiceType aSMPService) throws InternalErrorFault, NotFoundFault, UnauthorizedFault, BadRequestFault
aSMPService - The publisher id is read from this service metadata object. May not
be null.InternalErrorFault - An internal error happened on the server.NotFoundFault - The service metadata with the given publisher id was not found.UnauthorizedFault - The username or password was not correct.BadRequestFault - The request was not well formed.Copyright © 2015–2019 Philip Helger. All rights reserved.