Class LikeFilter

All Implemented Interfaces:
Filter

public class LikeFilter extends EqualsFilter
This filter allows the user to specify wildcards (*) by not escaping them in the filter. The following code:
 LikeFilter filter = new LikeFilter("cn", "foo*");
 System.out.println(filter.ecode());
 
would result in:
  (cn=foo*)
 
  • Constructor Details

    • LikeFilter

      public LikeFilter(String attribute, String value)
  • Method Details

    • encodeValue

      @Deprecated(forRemoval=true, since="3.3") protected String encodeValue(String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      please extend CompareFilter instead
      Description copied from class: CompareFilter
      Override to perform special encoding in subclass.
      Overrides:
      encodeValue in class CompareFilter
      Parameters:
      value - the value to encode.
      Returns:
      properly escaped value.