Package edu.vt.middleware.ldap
Interface BaseLdap
-
- All Known Implementing Classes:
AbstractLdap
,Ldap
,SearchDnResolver
public interface BaseLdap
BaseLdap
provides a base interface for all ldap implementations.- Version:
- $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
- Author:
- Middleware Services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
This will close the connection to the LDAP.boolean
connect()
This will establish a connection to the ldap.boolean
reconnect()
This will close the connection to the LDAP and establish a new connection.
-
-
-
Method Detail
-
connect
boolean connect() throws javax.naming.NamingException
This will establish a connection to the ldap.- Returns:
boolean
- whether the connection was successfull- Throws:
javax.naming.NamingException
- if the LDAP cannot be reached
-
reconnect
boolean reconnect() throws javax.naming.NamingException
This will close the connection to the LDAP and establish a new connection.- Returns:
boolean
- whether the connection was successfull- Throws:
javax.naming.NamingException
- if the LDAP cannot be reached
-
close
void close()
This will close the connection to the LDAP.
-
-