edu.vt.middleware.ldap.handler
Class BinaryAttributeHandler

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
              extended by edu.vt.middleware.ldap.handler.BinaryAttributeHandler
All Implemented Interfaces:
AttributeHandler, ResultHandler<Attribute,Attribute>

public class BinaryAttributeHandler
extends CopyAttributeHandler

BinaryAttributeHandler ensures that any attribute that contains a value of type byte[] is base64 encoded.

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
BinaryAttributeHandler()
           
 
Method Summary
protected  Object processValue(SearchCriteria sc, Object value)
          This base64 encodes the supplied value if it is of type byte[].
 
Methods inherited from class edu.vt.middleware.ldap.handler.CopyAttributeHandler
processResult
 
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

BinaryAttributeHandler

public BinaryAttributeHandler()
Method Detail

processValue

protected Object processValue(SearchCriteria sc,
                              Object value)
This base64 encodes the supplied value if it is of type byte[].

Overrides:
processValue in class CopyAttributeHandler
Parameters:
sc - SearchCriteria used to find enumeration
value - Object to process
Returns:
Object


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