From 943a2d7d4cca6371830b33db941af3ec0431fb5c 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.
---
opendj-sdk/opends/src/ads/org/opends/admin/ads/TopologyCacheException.java | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/ads/org/opends/admin/ads/TopologyCacheException.java b/opendj-sdk/opends/src/ads/org/opends/admin/ads/TopologyCacheException.java
index 759bd9d..3fa64dd 100644
--- a/opendj-sdk/opends/src/ads/org/opends/admin/ads/TopologyCacheException.java
+++ b/opendj-sdk/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