Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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