diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-02 22:17:17 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-02 22:17:17 +0000 |
commit | ea8efc9201e9e2c349b44598d49492d5f2a9c8cb (patch) | |
tree | 346e9a9e1b1fd14e443fa373c5a3118979b22072 /sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java | |
parent | 8444320b74276494d72ca81cf390b0bb2dc4d3b0 (diff) |
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
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java | 3 |
1 files changed, 3 insertions, 0 deletions
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 + "\")"; } |