|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.framework.FilterImpl
public class FilterImpl
This class implements an RFC 1960-based filter. The syntax of the filter string is the string representation of LDAP search filters as defined in RFC 1960. These filters are used to search for services and to track services using ServiceTracker objects.
Constructor Summary | |
---|---|
FilterImpl(Logger logger,
String expr)
Construct a filter for a given filter expression string. |
|
FilterImpl(String expr)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
Compares the Filter object to another. |
int |
hashCode()
Returns the hash code for the Filter object. |
boolean |
match(Dictionary dict)
Filter using a Dictionary object. |
boolean |
match(ServiceReference ref)
Filter using a service's properties. |
boolean |
matchCase(Dictionary dict)
|
String |
toString()
Returns the Filter object's filter string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FilterImpl(String expr) throws InvalidSyntaxException
InvalidSyntaxException
public FilterImpl(Logger logger, String expr) throws InvalidSyntaxException
expr
- the filter expression string for the filter.
InvalidSyntaxException
Method Detail |
---|
public boolean equals(Object o)
equals
in interface Filter
equals
in class Object
o
- the object to compare this Filter against.
public int hashCode()
hashCode
in interface Filter
hashCode
in class Object
public boolean match(Dictionary dict) throws IllegalArgumentException
match
in interface Filter
dict
- the Dictionary object whose keys and values
are used to determine a match.
IllegalArgumentException
- if the dictionary contains case
variants of the same key name.public boolean match(ServiceReference ref)
match
in interface Filter
ref
- A reference to the service whose properties
are used to determine a match.
public boolean matchCase(Dictionary dict)
matchCase
in interface Filter
public String toString()
toString
in interface Filter
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |