Last active
August 29, 2015 14:13
-
-
Save abhirockzz/d894a6de108b7a9d821a 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
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