Package org.opends.admin.ads.util
Class ConnectionUtils
- java.lang.Object
-
- org.opends.admin.ads.util.ConnectionUtils
-
public class ConnectionUtils extends Object
Class providing some utilities to create LDAP connections using JNDI and to manage entries retrieved using JNDI.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>allValuesAsStrings(Entry entry, String attrDesc)Returns all the values of this attribute decoded as UTF-8 strings, in the order they were returned by the server.static StringfirstValueAsString(Entry entry, String attrDesc)Returns the first attribute value in this attribute decoded as a UTF-8 string.
-
-
-
Method Detail
-
firstValueAsString
public static String firstValueAsString(Entry entry, String attrDesc)
Returns the first attribute value in this attribute decoded as a UTF-8 string.- Parameters:
entry- the entryattrDesc- the attribute description- Returns:
- The first attribute value in this attribute decoded as a UTF-8 string.
-
allValuesAsStrings
public static List<String> allValuesAsStrings(Entry entry, String attrDesc)
Returns all the values of this attribute decoded as UTF-8 strings, in the order they were returned by the server.- Parameters:
entry- the entryattrDesc- the attribute description- Returns:
- all the values of this attribute decoded as UTF-8 strings, an empty list if the attribute is not present.
-
-