Package edu.vt.middleware.ldap.handler
Class CopyAttributeHandler
- java.lang.Object
-
- edu.vt.middleware.ldap.handler.AbstractResultHandler<T,T>
-
- edu.vt.middleware.ldap.handler.CopyResultHandler<javax.naming.directory.Attribute>
-
- edu.vt.middleware.ldap.handler.CopyAttributeHandler
-
- All Implemented Interfaces:
AttributeHandler
,ResultHandler<javax.naming.directory.Attribute,javax.naming.directory.Attribute>
- Direct Known Subclasses:
BinaryAttributeHandler
,CaseChangeAttributeHandler
,RecursiveAttributeHandler
public class CopyAttributeHandler extends CopyResultHandler<javax.naming.directory.Attribute> implements AttributeHandler
CopyAttributeHandler
converts a NamingEnumeration of attribute into a List of attribute.- Version:
- $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
- Author:
- Middleware Services
-
-
Field Summary
-
Fields inherited from class edu.vt.middleware.ldap.handler.AbstractResultHandler
logger
-
-
Constructor Summary
Constructors Constructor Description CopyAttributeHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.naming.directory.Attribute
processResult(SearchCriteria sc, javax.naming.directory.Attribute attr)
This will return a deep copy of the suppliedAttribute
.protected java.lang.Object
processValue(SearchCriteria sc, java.lang.Object value)
This returns the supplied value unaltered.-
Methods inherited from class edu.vt.middleware.ldap.handler.AbstractResultHandler
process, process, process
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.vt.middleware.ldap.handler.ResultHandler
process, process, process
-
-
-
-
Method Detail
-
processResult
protected javax.naming.directory.Attribute processResult(SearchCriteria sc, javax.naming.directory.Attribute attr) throws javax.naming.NamingException
This will return a deep copy of the suppliedAttribute
.- Overrides:
processResult
in classCopyResultHandler<javax.naming.directory.Attribute>
- Parameters:
sc
-SearchCriteria
used to find enumerationattr
-Attribute
to copy- Returns:
Attribute
- Throws:
javax.naming.NamingException
- if the attribute values cannot be read
-
processValue
protected java.lang.Object processValue(SearchCriteria sc, java.lang.Object value)
This returns the supplied value unaltered.- Parameters:
sc
-LdapSearchCritieria
used to find enumerationvalue
-Object
to process- Returns:
Object
-
-