org.springframework.ldap.filter

## Class WhitespaceWildcardsFilter

- java.lang.Object
- - org.springframework.ldap.filter.AbstractFilter
  - - org.springframework.ldap.filter.CompareFilter
    - - org.springframework.ldap.filter.EqualsFilter
      - - org.springframework.ldap.filter.WhitespaceWildcardsFilter

- All Implemented Interfaces:
    Filter

      public class WhitespaceWildcardsFilter
      extends EqualsFilter

  This filter automatically converts all whitespace to wildcards (*). The following code:

       WhitespaceWildcardsFilter filter = new WhitespaceWildcardsFilter("cn", "Some CN");
       System.out.println(filter.ecode());

  would result in: `(cn=*Some*CN*)`
  Author:
    Adam Skogman, Mattias Hellborg Arthursson

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `WhitespaceWildcardsFilter(String attribute, String value)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected String` | `encodeValue(String value)` Override to perform special encoding in subclass.

    - ### Methods inherited from class org.springframework.ldap.filter.EqualsFilter

      `getCompareString`

    - ### Methods inherited from class org.springframework.ldap.filter.CompareFilter

      `encode, equals, hashCode`

    - ### Methods inherited from class org.springframework.ldap.filter.AbstractFilter

      `encode, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### WhitespaceWildcardsFilter

          public WhitespaceWildcardsFilter(String attribute,
                                           String value)

  - ### Method Detail

    - #### encodeValue

          protected String encodeValue(String value)

      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.