Package edu.vt.middleware.ldap.handler
Class BinaryAttributeHandler
- 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
-
- edu.vt.middleware.ldap.handler.BinaryAttributeHandler
-
- All Implemented Interfaces:
AttributeHandler
,ResultHandler<javax.naming.directory.Attribute,javax.naming.directory.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-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 BinaryAttributeHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
processValue(SearchCriteria sc, java.lang.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
-
-
-
-
Method Detail
-
processValue
protected java.lang.Object processValue(SearchCriteria sc, java.lang.Object value)
This base64 encodes the supplied value if it is of type byte[].- Overrides:
processValue
in classCopyAttributeHandler
- Parameters:
sc
-SearchCriteria
used to find enumerationvalue
-Object
to process- Returns:
Object
-
-