org.ops4j.peaberry.util
Class Filters

java.lang.Object
  extended by org.ops4j.peaberry.util.Filters

public final class Filters
extends Object

Methods for dealing with AttributeFilters.

Author:
mcculls@gmail.com (Stuart McCulloch)

Method Summary
static AttributeFilter attributes(Map<String,?> sampleAttributes)
          Create an AttributeFilter based on the given service attributes.
static AttributeFilter ldap(String ldapFilter)
          Create an AttributeFilter based on the given LDAP filter string.
static AttributeFilter objectClass(Class<?>... interfaces)
          Create an objectClass AttributeFilter from the given API.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

ldap

public static AttributeFilter ldap(String ldapFilter)
Create an AttributeFilter based on the given LDAP filter string.

Parameters:
ldapFilter - RFC-1960 LDAP filter
Returns:
service attribute filter
See Also:
RFC-1960

objectClass

public static AttributeFilter objectClass(Class<?>... interfaces)
Create an objectClass AttributeFilter from the given API.

Parameters:
interfaces - service API
Returns:
service attribute filter

attributes

public static AttributeFilter attributes(Map<String,?> sampleAttributes)
Create an AttributeFilter based on the given service attributes.

Parameters:
sampleAttributes - sample attributes
Returns:
sample attribute filter


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.