Package edu.vt.middleware.ldap.handler
Class AttributesProcessor
- java.lang.Object
-
- edu.vt.middleware.ldap.handler.AttributesProcessor
-
public final class AttributesProcessor extends java.lang.ObjectAttributesProcessorprovides 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.AttributesexecuteHandler(SearchCriteria sc, javax.naming.directory.Attributes attrs, AttributeHandler handler)Process the attributes of an ldap search search.static javax.naming.directory.AttributesexecuteHandler(SearchCriteria sc, javax.naming.directory.Attributes attrs, AttributeHandler handler, java.lang.Class<?>[] ignore)Process the attributes of an ldap search search.
-
-
-
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-SearchCriteriaused to find search resultattrs-Attributesto pass to the handlerhandler-AttributeHandlerto process attributes- Returns:
Attributeshandler 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-SearchCriteriaused to find search resultattrs-Attributesto pass to the handlerhandler-AttributeHandlerto process attributesignore-Class[]of exception types to ignore- Returns:
Attributeshandler processed attributes- Throws:
javax.naming.NamingException- if the LDAP returns an error
-
-