com.gigaspaces.security.authorities
Class SpaceAuthority.RegexFilter
java.lang.Object
com.gigaspaces.security.authorities.SpaceAuthority.RegexFilter
- All Implemented Interfaces:
- SpaceAuthority.Filter<String>, Serializable
- Direct Known Subclasses:
- SpaceAuthority.NegateRegexFilter
- Enclosing class:
- SpaceAuthority
public static class SpaceAuthority.RegexFilter
- extends Object
- implements SpaceAuthority.Filter<String>
Regular expression filter, using a regular expression as a pattern of characters that
describes a set of strings. Uses java.util.regex package to match all of the occurrences of a
pattern in an input sequence.
- See Also:
- Serialized Form
SpaceAuthority.RegexFilter
public SpaceAuthority.RegexFilter(String regex)
toString
public String toString()
- Overrides:
toString
in class Object
accept
public boolean accept(String otherRegex)
- Description copied from interface:
SpaceAuthority.Filter
- Tests whether or not the object is acceptable.
- Specified by:
accept
in interface SpaceAuthority.Filter<String>
- Parameters:
otherRegex
- an object to accept.
- Returns:
true
if and only if the filter accepts the the given string;
false
otherwise.
getExpression
public String getExpression()
- Description copied from interface:
SpaceAuthority.Filter
- The wildcard expression representing this filter.
- Specified by:
getExpression
in interface SpaceAuthority.Filter<String>
- Returns:
- wildcard expression.
Copyright © GigaSpaces.