org.springframework.ldap
Class LdapTemplate.ContextMapperCallbackHandler

java.lang.Object
  extended byorg.springframework.ldap.CollectingNameClassPairCallbackHandler
      extended byorg.springframework.ldap.LdapTemplate.ContextMapperCallbackHandler
All Implemented Interfaces:
NameClassPairCallbackHandler
Enclosing class:
LdapTemplate

public class LdapTemplate.ContextMapperCallbackHandler
extends CollectingNameClassPairCallbackHandler

A CollectingNameClassPairCallbackHandler to wrap a ContextMapper. That is, the found object is extracted from each Binding, and then passed to the specified ContextMapper for translation.

Author:
Mattias Arthursson, Ulrik Sandberg

Constructor Summary
LdapTemplate.ContextMapperCallbackHandler(ContextMapper mapper)
           
 
Method Summary
 java.lang.Object getObjectFromNameClassPair(javax.naming.NameClassPair nameClassPair)
          Cast the NameClassPair to a Binding and pass its attributes to the ContextMapper.
 
Methods inherited from class org.springframework.ldap.CollectingNameClassPairCallbackHandler
getList, handleNameClassPair
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapTemplate.ContextMapperCallbackHandler

public LdapTemplate.ContextMapperCallbackHandler(ContextMapper mapper)
Method Detail

getObjectFromNameClassPair

public java.lang.Object getObjectFromNameClassPair(javax.naming.NameClassPair nameClassPair)
Cast the NameClassPair to a Binding and pass its attributes to the ContextMapper.

Specified by:
getObjectFromNameClassPair in class CollectingNameClassPairCallbackHandler
Parameters:
nameClassPair - a SearchResult instance.
Returns:
the Object returned from the Mapper.


Copyright � 2002-2006. All Rights Reserved.