Class FqdnSearchResultHandler

  • All Implemented Interfaces:
    ResultHandler<javax.naming.directory.SearchResult,​javax.naming.directory.SearchResult>, SearchResultHandler

    public class FqdnSearchResultHandler
    extends CopySearchResultHandler
    FqdnSearchResultHandler ensures that the DN of a search result is fully qualified. Any non-relative names will have the URL removed if getRemoveUrls() is true.
    Version:
    $Revision: 2023 $ $Date: 2011-07-11 16:50:38 +0200 (Mon, 11 Jul 2011) $
    Author:
    Middleware Services
    • Constructor Detail

      • FqdnSearchResultHandler

        public FqdnSearchResultHandler()
    • Method Detail

      • getRemoveUrls

        public boolean getRemoveUrls()
        Returns whether the URL will be removed from any DNs which are not relative. The default value is true.
        Returns:
        boolean
      • setRemoveUrls

        public void setRemoveUrls​(boolean b)
        Sets whether the URL will be removed from any DNs which are not relative The default value is true.
        Parameters:
        b - boolean
      • processDn

        protected java.lang.String processDn​(SearchCriteria sc,
                                             javax.naming.directory.SearchResult sr)
        Process the dn of an ldap search result.
        Overrides:
        processDn in class CopySearchResultHandler
        Parameters:
        sc - SearchCriteria used to find search result
        sr - SearchResult to extract the dn from
        Returns:
        String processed dn