sombriks

Echo.java

Sep 3rd, 2011
164
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package teste;
  2.  
  3. import javax.ws.rs.GET;
  4. import javax.ws.rs.Path;
  5. import javax.ws.rs.PathParam;
  6. import javax.ws.rs.Produces;
  7.  
  8. @Path("/echo")
  9. public class Echo {
  10.    
  11.     @GET
  12.     @Path("/{id}")
  13.     @Produces("application/json")
  14.     public Pojo x(@PathParam("id") int k){
  15.         return new Pojo(k);
  16.     }
  17. }
RAW Paste Data