Class WsDiscoveryUtil
- java.lang.Object
-
- org.somda.sdc.dpws.soap.wsdiscovery.WsDiscoveryUtil
-
public class WsDiscoveryUtil extends Object
Utility class for the WS-Discovery plugin.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppSequenceTypecreateAppSequence(com.google.common.primitives.UnsignedInteger instanceId)Creates an app sequence based on a given instance id.booleanisScopesMatching(List<String> superset, List<String> subset, MatchBy matchBy)Checks if a scope superset includes a subset.booleanisTypesMatching(List<QName> superset, List<QName> subset)Checks if a QName superset includes a subset.
-
-
-
Method Detail
-
isTypesMatching
public boolean isTypesMatching(List<QName> superset, List<QName> subset)
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
public boolean isScopesMatching(List<String> superset, List<String> subset, MatchBy matchBy)
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 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.
-
-