Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhirockzz/d894a6de108b7a9d821a to your computer and use it in GitHub Desktop.
Save abhirockzz/d894a6de108b7a9d821a to your computer and use it in GitHub Desktop.
public class ClientRequestBean{
@FormParam("tweeter_id")
private String id;
@FormParam("tweeter_email")
private String email;
@HeaderParam("referrer")
private String referrer;
// rest of the class
}
@Path("info/{tweeter}")
@POST
@Consumes("application/x-www-form-urlencoded")
public Response postInfo(@BeanParam ClientRequestBean requestInfo){
//extract required info from the requestInfo object
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment