|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gigaspaces.security.authorities.SpaceAuthority.RegexFilter
public static class SpaceAuthority.RegexFilter
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.
Constructor Summary | |
---|---|
SpaceAuthority.RegexFilter(String regex)
|
Method Summary | |
---|---|
boolean |
accept(Object other)
Tests whether or not the object is acceptable. |
boolean |
accept(String otherRegex)
Tests whether or not the string is acceptable. |
String |
getExpression()
The wildcard expression representing this filter. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpaceAuthority.RegexFilter(String regex)
Method Detail |
---|
public String toString()
toString
in class Object
public boolean accept(String otherRegex)
SpaceAuthority.Filter
accept
in interface SpaceAuthority.Filter
otherRegex
- a string as used to construct the filter.
true
if and only if the filter accepts the the given string;
false
otherwise.public boolean accept(Object other)
SpaceAuthority.Filter
accept
in interface SpaceAuthority.Filter
other
- an object to accept, possibly holding extra acceptance info.
true
if and only if the filter accepts the the given input;
false
otherwise.public String getExpression()
SpaceAuthority.Filter
getExpression
in interface SpaceAuthority.Filter
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |