org.ws4d.java.types
Class ProbeScopeSet

java.lang.Object
  extended by org.ws4d.java.types.ScopeSet
      extended by org.ws4d.java.types.ProbeScopeSet

public class ProbeScopeSet
extends ScopeSet


Field Summary
static java.lang.String SCOPE_MATCHING_RULE_NONE
          Matching Rule: matching true if no scope in list
static java.lang.String SCOPE_MATCHING_RULE_RFC3986
          Matching Rule: RFC 3986 Section 6.2.1 simple string comparison (default)
static java.lang.String SCOPE_MATCHING_RULE_STRCMP0
          Matching Rule: case-sensitive string comparison
 
Constructor Summary
ProbeScopeSet()
          Constructor.
ProbeScopeSet(java.lang.String matchBy)
          Constructor.
ProbeScopeSet(java.lang.String matchBy, java.lang.String[] scopes)
          Constructor.
 
Method Summary
 boolean containsAll(ScopeSet others)
          Checks if a given scope set is completely contained in this list.
 java.lang.String getMatchBy()
          Gets matching algorithm of this scope list.
 void setMatchBy(java.lang.String matchBy)
           
 java.lang.String toString()
           
 
Methods inherited from class org.ws4d.java.types.ScopeSet
addAll, addScope, addScope, addUnknownAttribute, construct, contains, getScope, getScopesAsString, getScopesAsStringArray, getScopesAsUris, getUnknownAttribute, getUnknownAttributes, isEmpty, setScopes, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SCOPE_MATCHING_RULE_RFC3986

public static final java.lang.String SCOPE_MATCHING_RULE_RFC3986
Matching Rule: RFC 3986 Section 6.2.1 simple string comparison (default)

See Also:
Constant Field Values

SCOPE_MATCHING_RULE_STRCMP0

public static final java.lang.String SCOPE_MATCHING_RULE_STRCMP0
Matching Rule: case-sensitive string comparison

See Also:
Constant Field Values

SCOPE_MATCHING_RULE_NONE

public static final java.lang.String SCOPE_MATCHING_RULE_NONE
Matching Rule: matching true if no scope in list

See Also:
Constant Field Values
Constructor Detail

ProbeScopeSet

public ProbeScopeSet()
Constructor.


ProbeScopeSet

public ProbeScopeSet(java.lang.String matchBy)
Constructor.

Parameters:
matchBy - Matching Rule

ProbeScopeSet

public ProbeScopeSet(java.lang.String matchBy,
                     java.lang.String[] scopes)
Constructor.

Parameters:
matchBy - Matching Rule
scopes - list of scopes
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class ScopeSet

getMatchBy

public java.lang.String getMatchBy()
Gets matching algorithm of this scope list.

Returns:
the matchBy algorithm

setMatchBy

public void setMatchBy(java.lang.String matchBy)
Parameters:
matchBy - the matchBy to set

containsAll

public boolean containsAll(ScopeSet others)
Checks if a given scope set is completely contained in this list. The given probe scope list defines the matching algorithm to check with.

Overrides:
containsAll in class ScopeSet
Parameters:
others -
Returns:
whether this set contains all scopes from the passed-in probe scope set