JAX-RS @BeanParam Example

You may also like...

Subscribe
Notify of
guest
1 Comment
Oldest
Newest
Inline Feedbacks
View all comments
Omprakash Bairagi
Omprakash Bairagi
May 10, 2017 07:13

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.

1
0
Would love your thoughts, please comment.x
()
x