edu.vt.middleware.ldap.handler
Class AttributesProcessor

java.lang.Object
  extended by edu.vt.middleware.ldap.handler.AttributesProcessor

public final class AttributesProcessor
extends Object

AttributesProcessor provides methods to help with the processing of Attributes objects using an AttributeHandler.

Version:
$Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
Author:
Middleware Services

Method Summary
static Attributes executeHandler(SearchCriteria sc, Attributes attrs, AttributeHandler handler)
          Process the attributes of an ldap search search.
static Attributes executeHandler(SearchCriteria sc, Attributes attrs, AttributeHandler handler, 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 Attributes executeHandler(SearchCriteria sc,
                                        Attributes attrs,
                                        AttributeHandler handler)
                                 throws 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:
NamingException - if the LDAP returns an error

executeHandler

public static Attributes executeHandler(SearchCriteria sc,
                                        Attributes attrs,
                                        AttributeHandler handler,
                                        Class<?>[] ignore)
                                 throws 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:
NamingException - if the LDAP returns an error


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.