summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples
diff options
context:
space:
mode:
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);
-
}