From 6399a7ab74ed377b0644e2b0c63e5183796ef22c Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Thu, 27 Nov 2014 16:05:26 +0000
Subject: [PATCH] OPENDJ-1607 (CR-5295) Merge HeartBeatConnectionFactory, AuthenticatedConnectionFactory and GrizzlyLDAPConnectionFactory

---
 opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/ConsoleApplication.java |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/ConsoleApplication.java b/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/ConsoleApplication.java
index e17c6bc..7bb5284 100755
--- a/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/ConsoleApplication.java
+++ b/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/ConsoleApplication.java
@@ -45,6 +45,7 @@
 
 import org.forgerock.i18n.LocalizableMessage;
 import org.forgerock.i18n.slf4j.LocalizedLogger;
+import org.forgerock.opendj.ldap.requests.BindRequest;
 
 /**
  * This class provides an abstract base class which can be used as the basis of a console-based application.
@@ -65,6 +66,8 @@
 
     private boolean isProgressSuite;
 
+    private BindRequest bindRequest = null;
+
     /**
      * Defines the different line styles for output.
      */
@@ -116,6 +119,15 @@
     }
 
     /**
+     * Returns the bind request used by this application.
+     *
+     * @return The bind request used by this application.
+     */
+    public BindRequest getBindRequest() {
+        return bindRequest;
+    }
+
+    /**
      * Returns the application error stream.
      *
      * @return The application error stream.
@@ -674,6 +686,10 @@
         throw new ClientException(ReturnCode.ERROR_USER_DATA, ERR_TRIES_LIMIT_REACHED.get(maxTries));
     }
 
+    void setBindRequest(final BindRequest bindRequest) {
+        this.bindRequest = bindRequest;
+    }
+
     /**
      * Inserts line breaks into the provided buffer to wrap text at no more than the specified column width (80).
      *

--
Gitblit v1.10.0