
package no.deichman.ls.parasite;

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

/** Example resource class hosted at the URI path "/myresource"
 */
@Path("/myresource")
public class MyResource {
    
    /** Method processing HTTP GET requests, producing "text/plain" MIME media
     * type.
     * @return String that will be send back as a response of type "text/plain".
     */
    @GET 
    @Produces("text/plain")
    public String getIt() {
        return "Hi there!";
    }
}

@@ -77,16 +77,46 @@
 s.Path;%0A
+import javax.ws.rs.PathParam;%0A
 import j
@@ -213,24 +213,21 @@
 @Path(%22/
-myresour
+servi
 ce%22)%0Apub
@@ -240,25 +240,367 @@
 ass 
-MyResource %7B%0A    
+Service %7B%0A    %0A    /** Method processing HTTP GET requests, producing %22text/turtle%22 MIME media%0A     * type.%0A     * @return String that will be send back as a response of type %22text/turtle%22.%0A     */%0A%09@Path(%22work/%7Bid%7D%22)%0A    @GET %0A    @Produces(%22text/turtle;qs=0.1%22)%0A    public String getTurtle(@PathParam(%22id%22) String id) %7B%0A        return %22Turtle: %22 + id;%0A    %7D
 %0A   
@@ -657,21 +657,20 @@
 g %22text/
-plain
+html
 %22 MIME m
@@ -760,21 +760,20 @@
 e %22text/
-plain
+html
 %22.%0A     
@@ -775,16 +775,36 @@
      */%0A
+%09@Path(%22work/%7Bid%7D%22)%0A
     @GET
@@ -829,76 +829,903 @@
 ext/
-plain%22)%0A    public String getIt() %7B%0A        return %22Hi there!%22;%0A    %7D
+html;qs=2%22)%0A    public String getHTML(@PathParam(%22id%22) String id) %7B%0A        return %22%3Chtml%3E%3Cbody%3ERequested work was: %22 + id + %22%3C/body%3E%3C/html%3E%22;%0A    %7D%0A    /** Method processing HTTP GET requests, producing %22application/json%22 MIME media%0A     * type.%0A     * @return String that will be send back as a response of type %22application/json%22.%0A     */%0A%09@Path(%22work/%7Bid%7D%22)%0A    @GET %0A    @Produces(%22application/json;qs=0.2%22)%0A    public String getJSON(@PathParam(%22id%22) String id) %7B%0A        return %22JSON: %22 + id;%0A    %7D%0A    /** Method processing HTTP GET requests, producing %22application/rdf+xml%22 MIME media%0A     * type.%0A     * @return String that will be send back as a response of type %22application/rdf+xml%22.%0A     */%0A%09@Path(%22work/%7Bid%7D%22)%0A    @GET %0A    @Produces(%22application/rdf+xml;qs=0.3%22)%0A    public String getRDFXML(@PathParam(%22id%22) String id) %7B%0A        return %22RDF/XML: %22 + id;%0A    %7D%0A                %0A    
 %0A%7D%0A

Change classname, add basic framework