directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Syed Mudassir <>
Subject Re: Read Attribute with Multiple Values
Date Wed, 04 Mar 2015 13:23:18 GMT
I found the solution.  Invoking the iterator() on Attribute gives all 
the values.

On Wednesday 04 March 2015 06:01 PM, Syed Mudassir wrote:
> Hi.
>   I am using apache directory api in my java program to interact with 
> ldap server.
>   Upon performing successful search,  I am able to get the Entry object.
>   But the Entry object has a method getAttributes() which will return 
> a collection of Attribute.
>   If an Attribute contains multiple values, how can I fetch all those 
> values?
>   Presently, I see only method get() which will fetch just the first 
> value.
> -- 

View raw message