Class AttributesProcessor


  • public final class AttributesProcessor
    extends java.lang.Object
    AttributesProcessor provides methods to help with the processing of Attributes objects using an AttributeHandler.
    Version:
    $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
    Author:
    Middleware Services
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.naming.directory.Attributes executeHandler​(SearchCriteria sc, javax.naming.directory.Attributes attrs, AttributeHandler handler)
      Process the attributes of an ldap search search.
      static javax.naming.directory.Attributes executeHandler​(SearchCriteria sc, javax.naming.directory.Attributes attrs, AttributeHandler handler, java.lang.Class<?>[] ignore)
      Process the attributes of an ldap search search.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • executeHandler

        public static javax.naming.directory.Attributes executeHandler​(SearchCriteria sc,
                                                                       javax.naming.directory.Attributes attrs,
                                                                       AttributeHandler handler)
                                                                throws javax.naming.NamingException
        Process the attributes of an ldap search search.
        Parameters:
        sc - SearchCriteria used to find search result
        attrs - Attributes to pass to the handler
        handler - AttributeHandler to process attributes
        Returns:
        Attributes handler processed attributes
        Throws:
        javax.naming.NamingException - if the LDAP returns an error
      • executeHandler

        public static javax.naming.directory.Attributes executeHandler​(SearchCriteria sc,
                                                                       javax.naming.directory.Attributes attrs,
                                                                       AttributeHandler handler,
                                                                       java.lang.Class<?>[] ignore)
                                                                throws javax.naming.NamingException
        Process the attributes of an ldap search search. Any exceptions passed into this method will be ignored and results will be returned as if no exception occurred.
        Parameters:
        sc - SearchCriteria used to find search result
        attrs - Attributes to pass to the handler
        handler - AttributeHandler to process attributes
        ignore - Class[] of exception types to ignore
        Returns:
        Attributes handler processed attributes
        Throws:
        javax.naming.NamingException - if the LDAP returns an error