From 20df27fbd253139d3e5a24dd6e8063ed11dd1fab Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 04 Dec 2009 11:12:28 +0000
Subject: [PATCH] Merge Bo's most recent changes.
---
sdk/src/org/opends/sdk/AuthenticatedConnectionFactory.java | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/sdk/src/org/opends/sdk/AuthenticatedConnectionFactory.java b/sdk/src/org/opends/sdk/AuthenticatedConnectionFactory.java
index 1bb8ed5..08d91f6 100644
--- a/sdk/src/org/opends/sdk/AuthenticatedConnectionFactory.java
+++ b/sdk/src/org/opends/sdk/AuthenticatedConnectionFactory.java
@@ -105,6 +105,7 @@
ConnectionResultHandler<? super AuthenticatedAsynchronousConnection, P> handler,
P p)
{
+ // TODO: bug here? if allowRebind= false then bind will never happen
ConnectionFutureImpl<P> future = new ConnectionFutureImpl<P>(
allowRebinds ? request : null, handler, p);
future.connectFuture = parentFactory.getAsynchronousConnection(
@@ -315,10 +316,10 @@
- public void close(UnbindRequest request)
+ public void close(UnbindRequest request, String reason)
throws NullPointerException
{
- connection.close(request);
+ connection.close(request, reason);
}
@@ -463,6 +464,13 @@
searchResulthandler, p);
}
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isClosed()
+ {
+ return connection.isClosed();
+ }
}
--
Gitblit v1.10.0