Interface ContextBuilder
- All Known Implementing Classes:
DefaultContextBuilder
public interface ContextBuilder
Contract for building and closing LDAP contexts.
- Since:
- 1.0
- Author:
- James Kleeh
-
Method Summary
Modifier and TypeMethodDescriptionbuild(ContextSettings contextSettings) voidclose(@Nullable DirContext context) Closes the given context.
-
Method Details
-
build
- Parameters:
contextSettings- The settings to use to build the context- Returns:
- The context
- Throws:
NamingException- If an error occurs
-
build
DirContext build(String factory, String server, String user, String password, boolean pooled) throws NamingException - Parameters:
factory- The factory classserver- The ldap serveruser- The user DN to bindpassword- The password to bindpooled- If the query should be pooled- Returns:
- The context
- Throws:
NamingException- If an error occurs
-
close
Closes the given context.- Parameters:
context- The context to close
-