From 82aa0cfbd6f8ff0e2c73015cc1e1d03fffd48808 Mon Sep 17 00:00:00 2001 From: antelder Date: Wed, 25 Nov 2009 11:12:03 +0000 Subject: Remove SCAClient as its not in the latest spec and update all the places it was used to use SCAClientFactory. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@884043 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tuscany/sca/client/rmi/SCAClientFactoryImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sca-java-2.x/trunk/modules/sca-client-rmi/src/main') diff --git a/sca-java-2.x/trunk/modules/sca-client-rmi/src/main/java/org/apache/tuscany/sca/client/rmi/SCAClientFactoryImpl.java b/sca-java-2.x/trunk/modules/sca-client-rmi/src/main/java/org/apache/tuscany/sca/client/rmi/SCAClientFactoryImpl.java index fd0eadc20a..932f43c4c4 100644 --- a/sca-java-2.x/trunk/modules/sca-client-rmi/src/main/java/org/apache/tuscany/sca/client/rmi/SCAClientFactoryImpl.java +++ b/sca-java-2.x/trunk/modules/sca-client-rmi/src/main/java/org/apache/tuscany/sca/client/rmi/SCAClientFactoryImpl.java @@ -68,7 +68,11 @@ public class SCAClientFactoryImpl extends SCAClientFactory { if (i > -1 && uri.charAt(i+2) != '/') { uri = uri.replaceFirst(":/", "://"); } - return URI.create(uri).getHost(); + if (i < 0) { + return uri; + } else { + return URI.create(uri).getHost(); + } } public void stop() { -- cgit v1.2.3