From ea8efc9201e9e2c349b44598d49492d5f2a9c8cb Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 2 Mar 2010 22:17:17 +0000 Subject: Remove any leading slash from the service URI git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@918221 13f79535-47bb-0310-9956-ffa450edef68 --- .../binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java') diff --git a/sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java b/sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java index abc3c0c342..c758f78b4f 100644 --- a/sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java +++ b/sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java @@ -70,6 +70,9 @@ public class AtomBindingJavascriptProxyFactoryImpl implements JavascriptProxyFac URI targetURI = URI.create(binding.getURI()); String targetPath = targetURI.getPath(); + if (targetPath.startsWith("/")) { + targetPath = targetPath.substring(1); + } return "tuscany.AtomService(\"" + targetPath + "\")"; } -- cgit v1.2.3