public class AttributesMapperCallbackHandler extends CollectingNameClassPairCallbackHandler
AttributesMapper
.
That is, the found object is extracted from the Attributes
of each
SearchResult
, and then passed to the specified
AttributesMapper
for translation.Constructor and Description |
---|
AttributesMapperCallbackHandler(AttributesMapper mapper)
Constructs a new instance around the specified
AttributesMapper . |
Modifier and Type | Method and Description |
---|---|
Object |
getObjectFromNameClassPair(NameClassPair nameClassPair)
Cast the NameClassPair to a SearchResult and pass its attributes to the
AttributesMapper . |
getList, handleNameClassPair
public AttributesMapperCallbackHandler(AttributesMapper mapper)
AttributesMapper
.mapper
- the target mapper.public Object getObjectFromNameClassPair(NameClassPair nameClassPair)
AttributesMapper
.getObjectFromNameClassPair
in class CollectingNameClassPairCallbackHandler
nameClassPair
- a SearchResult
instance.Copyright © 2005-2012 The Spring LDAP Framework. All Rights Reserved.