From 59b4905a66a5db370e6d0de5f7cb6dcd314ef443 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Sun, 26 Aug 2007 03:16:07 +0000
Subject: [PATCH] This commit includes all the code for the first version of the replication tools.  As they require further testing the command line associated with them has not been committed.

---
 opends/src/ads/org/opends/admin/ads/TopologyCacheException.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/opends/src/ads/org/opends/admin/ads/TopologyCacheException.java b/opends/src/ads/org/opends/admin/ads/TopologyCacheException.java
index 759bd9d..3fa64dd 100644
--- a/opends/src/ads/org/opends/admin/ads/TopologyCacheException.java
+++ b/opends/src/ads/org/opends/admin/ads/TopologyCacheException.java
@@ -141,6 +141,19 @@
   }
 
   /**
+   * Returns the host port representation of the server we where connected to
+   * (or trying to connect) when this exception was generated.
+   * @return the host port representation of the server we where connected to
+   * (or trying to connect) when this exception was generated.
+   */
+  public String getHostPort()
+  {
+    int index = ldapUrl.indexOf("//");
+    String hostPort = ldapUrl.substring(index + 2);
+    return hostPort;
+  }
+
+  /**
    * Returns the ApplicationTrustManager that we were using when this exception
    * was generated.
    * @return the ApplicationTrustManager that we were using when this exception

--
Gitblit v1.10.0