|
||||||||||
| 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,
java.lang.String expr)
Construct a filter for a given filter expression string. |
|
FilterImpl(java.lang.String expr)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Compares the Filter object to another. |
int |
hashCode()
Returns the hash code for the Filter object. |
boolean |
match(java.util.Dictionary dict)
Filter using a Dictionary object. |
boolean |
match(org.osgi.framework.ServiceReference ref)
Filter using a service's properties. |
boolean |
matchCase(java.util.Dictionary dict)
|
java.lang.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(java.lang.String expr)
throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxException
public FilterImpl(Logger logger,
java.lang.String expr)
throws org.osgi.framework.InvalidSyntaxException
expr - the filter expression string for the filter.
org.osgi.framework.InvalidSyntaxException| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in interface org.osgi.framework.Filterequals in class java.lang.Objecto - the object to compare this Filter against.
public int hashCode()
hashCode in interface org.osgi.framework.FilterhashCode in class java.lang.Object
public boolean match(java.util.Dictionary dict)
throws java.lang.IllegalArgumentException
match in interface org.osgi.framework.Filterdict - the Dictionary object whose keys and values
are used to determine a match.
java.lang.IllegalArgumentException - if the dictionary contains case
variants of the same key name.public boolean match(org.osgi.framework.ServiceReference ref)
match in interface org.osgi.framework.Filterref - A reference to the service whose properties
are used to determine a match.
public boolean matchCase(java.util.Dictionary dict)
matchCase in interface org.osgi.framework.Filterpublic java.lang.String toString()
toString in interface org.osgi.framework.FiltertoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||