package rose.example.jaxrs.internal;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.annotations.Instantiate;
import org.apache.felix.ipojo.annotations.Provides;

import rose.example.jaxrs.contract.HelloWorld;

@Component(name="example_helloworld")
@Instantiate(name="example_helloworld-1")
@Provides
@Path(value="/helloworld/{name}")
public class HelloImpl implements HelloWorld {

	@GET
	@Produces("text/plain")
	public String hello(@PathParam("name") String name) {
		return "Hello "+name+" !";
	}

}

@@ -638,12 +638,154 @@
 %22 !%22;%0A%09%7D
+%0A%09%0A%09@GET%0A%09@Produces(%22application/json%22)%0A%09public String helloJson(@PathParam(%22name%22) String name)%7B%0A%09%09return %22%7Bhello : %5C%22%22+hello(name)+%22%5C%22%7D%22;%0A%09%7D
 %0A%0A%7D%0A

Enhance the example.