From 1734229125e7bad5f85dfe11d076eeda206236a9 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Mon, 18 Oct 2010 19:41:47 +0000
Subject: [PATCH] Update from OpenDS sdk by Bo Li: Added unmodifiable and copyOf request factories. Added authrate performance utility.

---
 sdk/src/org/opends/sdk/requests/GenericBindRequestImpl.java |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/sdk/src/org/opends/sdk/requests/GenericBindRequestImpl.java b/sdk/src/org/opends/sdk/requests/GenericBindRequestImpl.java
index 952dcc1..88b4936 100644
--- a/sdk/src/org/opends/sdk/requests/GenericBindRequestImpl.java
+++ b/sdk/src/org/opends/sdk/requests/GenericBindRequestImpl.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2009 Sun Microsystems, Inc.
+ *      Copyright 2010 Sun Microsystems, Inc.
  */
 
 package org.opends.sdk.requests;
@@ -83,6 +83,28 @@
 
 
 
+  /**
+   * Creates a new generic bind request that is an exact copy of the
+   * provided request.
+   *
+   * @param genericBindRequest
+   *          The generic bind request to be copied.
+   * @throws NullPointerException
+   *           If {@code genericBindRequest} was {@code null} .
+   */
+  GenericBindRequestImpl(
+      final GenericBindRequest genericBindRequest)
+      throws NullPointerException
+  {
+    super(genericBindRequest);
+    this.name = genericBindRequest.getName();
+    this.authenticationType = genericBindRequest.getAuthenticationType();
+    this.authenticationValue = genericBindRequest.getAuthenticationValue();
+    this.bindClient = null; // Create a new bind client each time.
+  }
+
+
+
   public BindClient createBindClient(final String serverName)
       throws ErrorResultException
   {

--
Gitblit v1.10.0