• Home
  • Tags

Restful

1 post

#Java #Jersey #Restful

A Jersey POJOMapping Example in Mapping Form Parameters

Jersey, RESTful Web Services in Java. In Java Servlet circumstance, we usually harvest the form parameters by using request.getParameter(“FORM_FIELD_NAME”) syntax. Now we can do it more elegant while enabling Jsersey’s POJOMapping features. The following example demonstrates the account registration scenario. Here we have a Account class, i.e., Account.java: public class Account { private String email; @JsonProperty("email") public String getEmail() { return email; } public void setEmail(String email) { this. ...

Author 2 min
Page 1 of 1 
© 2019
Latest Posts Github LinkedIn