Created
October 17, 2010 10:11
-
-
Save kenglxn/630715 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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