edu.vt.middleware.ldap.handler
Class CopyAttributeHandler
java.lang.Object
edu.vt.middleware.ldap.handler.AbstractResultHandler<T,T>
edu.vt.middleware.ldap.handler.CopyResultHandler<Attribute>
edu.vt.middleware.ldap.handler.CopyAttributeHandler
- All Implemented Interfaces:
- AttributeHandler, ResultHandler<Attribute,Attribute>
- Direct Known Subclasses:
- BinaryAttributeHandler, CaseChangeAttributeHandler, RecursiveAttributeHandler
public class CopyAttributeHandler
- extends CopyResultHandler<Attribute>
- implements AttributeHandler
CopyAttributeHandler converts a NamingEnumeration of attribute
into a List of attribute.
- Version:
- $Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
- Author:
- Middleware Services
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CopyAttributeHandler
public CopyAttributeHandler()
processResult
protected Attribute processResult(SearchCriteria sc,
Attribute attr)
throws NamingException
- This will return a deep copy of the supplied
Attribute.
- Overrides:
processResult in class CopyResultHandler<Attribute>
- Parameters:
sc - SearchCriteria used to find enumerationattr - Attribute to copy
- Returns:
Attribute
- Throws:
NamingException - if the attribute values cannot be read
processValue
protected Object processValue(SearchCriteria sc,
Object value)
- This returns the supplied value unaltered.
- Parameters:
sc - LdapSearchCritieria used to find enumerationvalue - Object to process
- Returns:
Object
Copyright © 2003-2010 Virginia Tech. All Rights Reserved.