JAX-RS @BeanParam Example

You may also like...

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Omprakash Bairagi Recent comment authors
  Subscribe  
newest oldest
Notify of
Omprakash Bairagi
Guest
Omprakash Bairagi

thanks you ,Nice explanation
A doubt: Can I put the same in get request like this…

@GET
Response getResource(@BeanParam UserInput user){

}

I want to wrap up all the user inputs at one place (in one object).
but if its coming a GET request, It ill not initialise
@FormParam(“name”)
private String name;

and throws error;

please comment on this scenario.

thanks again.