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 Details

    • 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.RFC3986 and MatchBy.STRCMP0 are 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.