public interface AttributesMapper
NamingExceptions will
be caught and handled correctly by the LdapTemplate class.
Typically used in search methods of LdapTemplate.
AttributeMapper objects are normally stateless and thus
reusable; they are ideal for implementing attribute-mapping logic in one
place.
Alternatively, consider using a ContextMapper in stead.
LdapTemplate.search(Name, String, AttributesMapper),
LdapTemplate.lookup(Name, AttributesMapper),
ContextMapper| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
mapFromAttributes(javax.naming.directory.Attributes attributes)
Map Attributes to an object.
|
java.lang.Object mapFromAttributes(javax.naming.directory.Attributes attributes)
throws javax.naming.NamingException
attributes - attributes from a SearchResult.javax.naming.NamingException - if any error occurs mapping the attributes