/** * Creates a new connection. Connections returned from this method must be opened before they can perform ldap * operations. * * @return connection */ @Override public Connection getConnection() { return new DefaultConnection(config, provider.getConnectionFactory(config)); }
/** * Creates a new connection. Connections returned from this method must be opened before they can perform ldap * operations. * * @return connection */ @Override public Connection getConnection() { return new DefaultConnection(config, provider.getConnectionFactory(config)); }
/** * Creates a new connection. Connections returned from this method must be opened before they can perform ldap * operations. * * @return connection */ @Override public Connection getConnection() { return new DefaultConnection(config, provider.getConnectionFactory(config)); }
/** * Creates a new connection. Connections returned from this method must be opened before they can be used. * * @param cc connection configuration * * @return connection */ public static Connection getConnection(final ConnectionConfig cc) { final Provider<?> p = DEFAULT_PROVIDER.newInstance(); cc.makeImmutable(); return new DefaultConnection(cc, p.getConnectionFactory(cc)); }
/** * Creates a new connection. Connections returned from this method must be opened before they can be used. * * @param cc connection configuration * * @return connection */ public static Connection getConnection(final ConnectionConfig cc) { final Provider<?> p = DEFAULT_PROVIDER.newInstance(); cc.makeImmutable(); return new DefaultConnection(cc, p.getConnectionFactory(cc)); }
/** * Creates a new connection. Connections returned from this method must be opened before they can be used. * * @param cc connection configuration * * @return connection */ public static Connection getConnection(final ConnectionConfig cc) { final Provider<?> p = DEFAULT_PROVIDER.newInstance(); cc.makeImmutable(); return new DefaultConnection(cc, p.getConnectionFactory(cc)); }
/** * Creates a new connection. Connections returned from this method must be opened before they can be used. * * @param ldapUrl to connect to * * @return connection */ public static Connection getConnection(final String ldapUrl) { final Provider<?> p = DEFAULT_PROVIDER.newInstance(); final ConnectionConfig cc = new ConnectionConfig(ldapUrl); cc.makeImmutable(); return new DefaultConnection(cc, p.getConnectionFactory(cc)); }
/** * Creates a new connection. Connections returned from this method must be opened before they can be used. * * @param ldapUrl to connect to * * @return connection */ public static Connection getConnection(final String ldapUrl) { final Provider<?> p = DEFAULT_PROVIDER.newInstance(); final ConnectionConfig cc = new ConnectionConfig(ldapUrl); cc.makeImmutable(); return new DefaultConnection(cc, p.getConnectionFactory(cc)); }
/** * Creates a new connection. Connections returned from this method must be opened before they can be used. * * @param ldapUrl to connect to * * @return connection */ public static Connection getConnection(final String ldapUrl) { final Provider<?> p = DEFAULT_PROVIDER.newInstance(); final ConnectionConfig cc = new ConnectionConfig(ldapUrl); cc.makeImmutable(); return new DefaultConnection(cc, p.getConnectionFactory(cc)); }