public class RemoteFilterImpl extends java.lang.Object implements IRemoteFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REMOTE_SERVICEID_PREFIX |
Constructor and Description |
---|
RemoteFilterImpl(org.osgi.framework.BundleContext context,
java.lang.String createFilter) |
RemoteFilterImpl(org.osgi.framework.Filter filter) |
RemoteFilterImpl(java.lang.String createFilter) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static java.lang.String |
getObjectClassFilterString(java.lang.String objectClass) |
long |
getRsId() |
int |
hashCode() |
boolean |
match(java.util.Dictionary dictionary) |
boolean |
match(IRemoteServiceReference reference)
Filter using a remote service's properties.
|
boolean |
match(org.osgi.framework.ServiceReference reference) |
boolean |
matchCase(java.util.Dictionary dictionary) |
boolean |
matches(java.util.Map map) |
java.lang.String |
toString() |
public static final java.lang.String REMOTE_SERVICEID_PREFIX
public RemoteFilterImpl(java.lang.String createFilter) throws org.osgi.framework.InvalidSyntaxException
createFilter
- filterorg.osgi.framework.InvalidSyntaxException
- if the createFilter is not of valid syntaxpublic RemoteFilterImpl(org.osgi.framework.BundleContext context, java.lang.String createFilter) throws org.osgi.framework.InvalidSyntaxException
context
- bundle contextcreateFilter
- filterorg.osgi.framework.InvalidSyntaxException
- if given createFilter is not of valid filter syntaxpublic RemoteFilterImpl(org.osgi.framework.Filter filter)
public long getRsId()
public static java.lang.String getObjectClassFilterString(java.lang.String objectClass)
public boolean match(IRemoteServiceReference reference)
IRemoteFilter
The filter is executed using the keys and values of the referenced service's properties. The keys are case insensitively matched with the filter.
match
in interface IRemoteFilter
reference
- The reference to the service whose properties are used in the
match.true
if the service's properties match this
filter; false
otherwise.public boolean match(java.util.Dictionary dictionary)
match
in interface org.osgi.framework.Filter
public boolean matchCase(java.util.Dictionary dictionary)
matchCase
in interface org.osgi.framework.Filter
public boolean equals(java.lang.Object obj)
equals
in interface org.osgi.framework.Filter
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface org.osgi.framework.Filter
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface org.osgi.framework.Filter
toString
in class java.lang.Object
public boolean match(org.osgi.framework.ServiceReference reference)
match
in interface org.osgi.framework.Filter
public boolean matches(java.util.Map map)
matches
in interface org.osgi.framework.Filter
map
- map