edu.vt.middleware.ldap.handler
Class CopyAttributeHandler

java.lang.Object
  extended by edu.vt.middleware.ldap.handler.AbstractResultHandler<T,T>
      extended by edu.vt.middleware.ldap.handler.CopyResultHandler<Attribute>
          extended by 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

Field Summary
 
Fields inherited from class edu.vt.middleware.ldap.handler.AbstractResultHandler
logger
 
Constructor Summary
CopyAttributeHandler()
           
 
Method Summary
protected  Attribute processResult(SearchCriteria sc, Attribute attr)
          This will return a deep copy of the supplied Attribute.
protected  Object processValue(SearchCriteria sc, 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
 

Constructor Detail

CopyAttributeHandler

public CopyAttributeHandler()
Method Detail

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 enumeration
attr - 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 enumeration
value - Object to process
Returns:
Object


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