Class Overview
A class for parsing LDAP search filters (defined in RFC 1960, 2254)
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
com.sun.jndi.toolkit.dir.AttrFilter
|
Constants
protected
static
final
char
AND_TOKEN
Constant Value:
38
(0x00000026)
protected
static
final
char
APPROX_TOKEN
Constant Value:
126
(0x0000007e)
protected
static
final
char
BEGIN_FILTER_TOKEN
Constant Value:
40
(0x00000028)
protected
static
final
char
END_FILTER_TOKEN
Constant Value:
41
(0x00000029)
protected
static
final
char
EQUAL_TOKEN
Constant Value:
61
(0x0000003d)
protected
static
final
char
EXTEND_TOKEN
Constant Value:
58
(0x0000003a)
protected
static
final
char
GREATER_TOKEN
Constant Value:
62
(0x0000003e)
protected
static
final
char
LESS_TOKEN
Constant Value:
60
(0x0000003c)
protected
static
final
char
NOT_TOKEN
Constant Value:
33
(0x00000021)
protected
static
final
char
OR_TOKEN
Constant Value:
124
(0x0000007c)
protected
static
final
char
WILDCARD_TOKEN
Constant Value:
42
(0x0000002a)
protected
static
final
boolean
debug
Public Constructors
public
SearchFilter
(String filter)
Public Methods
public
boolean
check
(Attributes targetAttrs)
Determines whether an attribute passes the filter.
public
static
int
findUnescaped
(char ch, String val, int start)
Finds the first occurrence of ch in val starting
from position start. It doesn't count if ch
has been escaped by a backslash (\)
Creates an LDAP filter as a conjuction of the attributes supplied.
Formats the expression expr using arguments from the array
args.
{i}
specifies the i
'th element from
the array args
is to be substituted for the
string "{i}
".
To escape '{' or '}' (or any other character), use '\'.
Uses getEncodedStringRep() to do encoding.
Protected Methods
protected
void
consumeChar
()
protected
void
consumeChars
(int i)
protected
SearchFilter.StringFilter
createNextFilter
()
protected
char
getCurrentChar
()
protected
void
normalizeFilter
()
protected
char
relCharAt
(int i)
protected
int
relIndexOf
(int ch)
protected
String
relSubstring
(int beginIndex, int endIndex)