From 72650d4cc41c64136d064967d7fec3726d850fee Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Thu, 14 Oct 2010 11:52:28 +0000
Subject: [PATCH] Multiple enhancements and bug fixes to the SDK (update from OpenDS by matthew_swift):
---
sdk/src/com/sun/opends/sdk/tools/AuthenticatedConnectionFactory.java | 44 ++++++++++++++++++++++++++++++++++++--------
1 files changed, 36 insertions(+), 8 deletions(-)
diff --git a/sdk/src/com/sun/opends/sdk/tools/AuthenticatedConnectionFactory.java b/sdk/src/com/sun/opends/sdk/tools/AuthenticatedConnectionFactory.java
index a331e0e..f66b335 100644
--- a/sdk/src/com/sun/opends/sdk/tools/AuthenticatedConnectionFactory.java
+++ b/sdk/src/com/sun/opends/sdk/tools/AuthenticatedConnectionFactory.java
@@ -50,13 +50,13 @@
* operations with the exception of Bind requests. Attempts to perform a Bind
* will result in an {@code UnsupportedOperationException}.
* <p>
- * In addition, the returned connections support retrieval of the {@code
- * BindResult} returned from the initial Bind request, or last rebind.
+ * In addition, the returned connections support retrieval of the
+ * {@code BindResult} returned from the initial Bind request, or last rebind.
* <p>
* Support for connection re-authentication is provided through the
* {@link #setRebindAllowed} method which, if set to {@code true}, causes
- * subsequent connections created using the factory to support the {@code
- * rebind} method.
+ * subsequent connections created using the factory to support the
+ * {@code rebind} method.
* <p>
* If the Bind request fails for some reason (e.g. invalid credentials), then
* the connection attempt will fail and an {@code ErrorResultException} will be
@@ -388,8 +388,8 @@
* @throws UnsupportedOperationException
* If this connection does not support rebind operations.
* @throws IllegalStateException
- * If this connection has already been closed, i.e. if {@code
- * isClosed() == true}.
+ * If this connection has already been closed, i.e. if
+ * {@code isClosed() == true}.
*/
public FutureResult<BindResult> rebind(
final ResultHandler<? super BindResult> handler)
@@ -481,6 +481,20 @@
return connection.searchSingleEntry(request, resultHandler);
}
+
+
+ /**
+ * {@inheritDoc}
+ */
+ public String toString()
+ {
+ StringBuilder builder = new StringBuilder();
+ builder.append("AuthenticatedConnection(");
+ builder.append(connection);
+ builder.append(')');
+ return builder.toString();
+ }
+
}
@@ -559,8 +573,8 @@
* @throws UnsupportedOperationException
* If this connection does not support rebind operations.
* @throws IllegalStateException
- * If this connection has already been closed, i.e. if {@code
- * isClosed() == true}.
+ * If this connection has already been closed, i.e. if
+ * {@code isClosed() == true}.
*/
public BindResult rebind() throws ErrorResultException,
InterruptedException, UnsupportedOperationException,
@@ -730,4 +744,18 @@
return this;
}
+
+
+ /**
+ * {@inheritDoc}
+ */
+ public String toString()
+ {
+ final StringBuilder builder = new StringBuilder();
+ builder.append("AuthenticatedConnectionFactory(");
+ builder.append(String.valueOf(parentFactory));
+ builder.append(')');
+ return builder.toString();
+ }
+
}
--
Gitblit v1.10.0