summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-07-25 08:54:41 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-07-25 08:54:41 +0000
commit77059b9ac2650ae4fe2b86fb8047142a03a09f05 (patch)
tree2cb8e365a5e40207faf89b7df6fc96fc3373ec52 /sca-java-2.x/trunk/samples
parentf962bdd019a9de53cbb6027d837162ff5dcd43c4 (diff)
Include response type
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1150588 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/samples')
-rw-r--r--sca-java-2.x/trunk/samples/getting-started/helloworld-jaxrs/src/main/java/sample/JaxrsHelloworld.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/samples/getting-started/helloworld-jaxrs/src/main/java/sample/JaxrsHelloworld.java b/sca-java-2.x/trunk/samples/getting-started/helloworld-jaxrs/src/main/java/sample/JaxrsHelloworld.java
index c17373a24f..a944736144 100644
--- a/sca-java-2.x/trunk/samples/getting-started/helloworld-jaxrs/src/main/java/sample/JaxrsHelloworld.java
+++ b/sca-java-2.x/trunk/samples/getting-started/helloworld-jaxrs/src/main/java/sample/JaxrsHelloworld.java
@@ -20,7 +20,9 @@ package sample;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
+import javax.ws.rs.core.MediaType;
import org.oasisopen.sca.annotation.Remotable;
@@ -29,6 +31,6 @@ public interface JaxrsHelloworld {
@GET
@Path("sayHello")
+ @Produces(MediaType.TEXT_PLAIN)
String sayHello(@QueryParam("name") String name);
-
}