From 19c5d85b1c029029f345b7300eacd4894a50cb14 Mon Sep 17 00:00:00 2001 From: rfeng Date: Wed, 20 Apr 2011 22:34:51 +0000 Subject: Allow the look up of endpoint address by component/service/binding name from the Node API git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1095537 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/binding/http/provider/HTTPServiceBindingProvider.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk/modules/binding-http-runtime/src/main/java/org') diff --git a/sca-java-2.x/trunk/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPServiceBindingProvider.java b/sca-java-2.x/trunk/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPServiceBindingProvider.java index e123c28e02..3a3436d101 100644 --- a/sca-java-2.x/trunk/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPServiceBindingProvider.java +++ b/sca-java-2.x/trunk/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPServiceBindingProvider.java @@ -126,7 +126,8 @@ public class HTTPServiceBindingProvider implements EndpointProvider { if (widget) { start1x(); } else { - servletHost.addServletMapping(servletMapping, new HTTPBindingServiceServlet(endpoint, messageFactory)); + String deployedURI = servletHost.addServletMapping(servletMapping, new HTTPBindingServiceServlet(endpoint, messageFactory)); + endpoint.setDeployedURI(deployedURI); } } @@ -189,7 +190,8 @@ public class HTTPServiceBindingProvider implements EndpointProvider { servletMapping += "*"; } - servletHost.addServletMapping(servletMapping, servlet); + String deployedURI = servletHost.addServletMapping(servletMapping, servlet); + endpoint.setDeployedURI(deployedURI); } public void stop() { -- cgit v1.2.3