mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

boli
22.37.2009 9d6f5c9a5b7771e595892e6935cf1cc42012c4c6
sdk/src/org/opends/sdk/ldap/LDAPConnectionOptions.java
@@ -32,9 +32,6 @@
import javax.net.ssl.SSLContext;
import org.opends.sdk.schema.Schema;
import org.opends.sdk.requests.SearchRequest;
import org.opends.sdk.requests.Requests;
import org.opends.sdk.SearchScope;
import com.sun.opends.sdk.util.Validator;
@@ -45,18 +42,12 @@
 */
public final class LDAPConnectionOptions
{
  private static final SearchRequest DEFAULT_PING = Requests
      .newSearchRequest("", SearchScope.BASE_OBJECT, "(objectClass=*)",
                        "1.1");
  private Schema schema = Schema.getDefaultSchema();
  private SSLContext sslContext = null;
  private boolean useStartTLS = false;
  private SearchRequest pingRequest = DEFAULT_PING;
  /**
@@ -206,29 +197,7 @@
    return this;
  }
  /**
   * Retrieves the search request used to verify the validity of a
   * LDAP connection. By default, the root DSE is retrieved without any
   * attributes.
   *
   * @return The search request.
   */
  public SearchRequest getPingRequest()
  {
    return pingRequest;
  }
  /**
   * Sets the search request used to verify the validity of a
   * LDAP connection.
   *
   * @param pingRequest The search request that can be used to verify the
   *                    validity of a LDAP connection.
   */
  public void setPingRequest(SearchRequest pingRequest)
  {
    this.pingRequest = pingRequest;
  }
  // Assigns the provided options to this set of options.
  LDAPConnectionOptions assign(LDAPConnectionOptions options)