Class WsDiscoveryUtil
java.lang.Object
org.somda.sdc.dpws.soap.wsdiscovery.WsDiscoveryUtil
Utility class for the WS-Discovery plugin.
-
Method Summary
Modifier and TypeMethodDescriptionorg.somda.sdc.dpws.soap.wsdiscovery.model.AppSequenceTypecreateAppSequence(com.google.common.primitives.UnsignedInteger instanceId) Creates an app sequence based on a given instance id.booleanChecks if a scope superset includes a subset.booleanisTypesMatching(List<QName> superset, List<QName> subset) Checks if a QName superset includes a subset.
-
Method Details
-
isTypesMatching
Checks if a QName superset includes a subset.- Parameters:
superset- the superset to match against.subset- the subset to match against.- Returns:
- true if subset is in superset or subset is equal to superset, otherwise false.
-
isScopesMatching
Checks if a scope superset includes a subset.- Parameters:
superset- the superset to match against.subset- the subset to match against.matchBy- the rule how to compare the URI strings.MatchBy.RFC3986andMatchBy.STRCMP0are supported.- Returns:
- true if subset is in superset or subset is equal to superset given a matching algorithm in matchBy, otherwise false. If the matching algorithm is not supported, this method always returns false.
-
createAppSequence
public org.somda.sdc.dpws.soap.wsdiscovery.model.AppSequenceType createAppSequence(com.google.common.primitives.UnsignedInteger instanceId) Creates an app sequence based on a given instance id.- Parameters:
instanceId- the instance id to create the app sequence from.- Returns:
- an app sequence that includes the given instance id and an unsigned integer that is incremented with
every method request of a specific instance of
WsDiscoveryUtil.
-