Class WsDiscoveryTargetServiceInterceptor
-
- All Implemented Interfaces:
-
org.somda.sdc.dpws.soap.interception.Interceptor,org.somda.sdc.dpws.soap.wsdiscovery.WsDiscoveryTargetService
public class WsDiscoveryTargetServiceInterceptor implements WsDiscoveryTargetService
Default implementation of the WsDiscoveryTargetService.
-
-
Method Summary
Modifier and Type Method Description List<QName>getTypes()Thread-safe function to get the list of QNames. voidsetTypes(List<QName> qNames)Thread-safe function to set the list of QNames. List<String>getScopes()Thread-safe function to get the list of scope URIs. voidsetScopes(List<String> uris)Thread-safe function to set the list of scope URIs. List<String>getXAddrs()Thread-safe function to get the list of XAddr URIs. voidsetXAddrs(List<String> xAddrs)Thread-safe function to set the list of XAddr URIs. UnsignedIntegergetMetadataVersion()Thread-safe function to get the metadata version. EndpointReferenceTypegetEndpointReference()voidsetMetadataModified()Thread-safe function to explicitly set the target service metadata to be modified (thread-safe). UnsignedIntegersendHello()Blocking function to send out a Hello message. UnsignedIntegersendHello(boolean forceNewMetadataVersion)Blocking function to send out a Hello message. voidsendBye()Blocking function to send out a Bye message. UnsignedIntegerincMetadataVersionAndGet()Increments the metadata version and retrieves the new value. UnsignedIntegerincMetadataVersionIfModifiedAndGet()Increments the metadata version and retrieve the new value if the metadata has changed, returns previous version otherwise. -
-
Method Detail
-
getTypes
List<QName> getTypes()
Thread-safe function to get the list of QNames.
- Returns:
the list of QNames.
-
setTypes
void setTypes(List<QName> qNames)
Thread-safe function to set the list of QNames.
- Parameters:
qNames- the list of QNames to set.
-
getScopes
List<String> getScopes()
Thread-safe function to get the list of scope URIs.
- Returns:
the list of scope URIs.
-
setScopes
void setScopes(List<String> uris)
Thread-safe function to set the list of scope URIs.
- Parameters:
uris- the list of scope URIs to set.
-
getXAddrs
List<String> getXAddrs()
Thread-safe function to get the list of XAddr URIs.
- Returns:
the list of XAddr URIs.
-
setXAddrs
void setXAddrs(List<String> xAddrs)
Thread-safe function to set the list of XAddr URIs.
- Parameters:
xAddrs- the list of XAddr URIs.
-
getMetadataVersion
UnsignedInteger getMetadataVersion()
Thread-safe function to get the metadata version.
- Returns:
the metadata version.
-
getEndpointReference
EndpointReferenceType getEndpointReference()
-
setMetadataModified
void setMetadataModified()
Thread-safe function to explicitly set the target service metadata to be modified (thread-safe).
This is useful if the metadata change does not belong to, e.g., Types and Scopes.
-
sendHello
UnsignedInteger sendHello()
Blocking function to send out a Hello message.
This is a shorthand function to sendHello.
- Returns:
the metadata version that has been attached to the Hello message.
-
sendHello
UnsignedInteger sendHello(boolean forceNewMetadataVersion)
Blocking function to send out a Hello message.
- Parameters:
forceNewMetadataVersion- set to true to force incrementing the metadata version, or false to not do so.- Returns:
the metadata version that has been attached to the Hello message.
-
sendBye
void sendBye()
Blocking function to send out a Bye message.
-
incMetadataVersionAndGet
UnsignedInteger incMetadataVersionAndGet()
Increments the metadata version and retrieves the new value.
- Returns:
new metadata version
-
incMetadataVersionIfModifiedAndGet
UnsignedInteger incMetadataVersionIfModifiedAndGet()
Increments the metadata version and retrieve the new value if the metadata has changed, returns previous version otherwise.
- Returns:
metadata version
-
-
-
-