Skip to content

Instantly share code, notes, and snippets.

@kenglxn
Created October 17, 2010 10:11
Show Gist options
  • Save kenglxn/630715 to your computer and use it in GitHub Desktop.
Save kenglxn/630715 to your computer and use it in GitHub Desktop.
package demo.resteasy;
import javax.ws.rs.*;
@Path("foo")
public class Foo{
@Path("{id}")
@GET
public String get(@QueryParam("order") String order, @HeaderParam("X-Foo") String header,
@MatrixParam("colour") String colour, @CookieParam("Foo-Cookie") String cookie){
return "Hello";
}
@POST
public void post(String text){
System.out.println("posted:"+text);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment