-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add BeanParam support in Jersey 2 client #3493
Comments
@glassfishrobot Commented |
@glassfishrobot Commented It makes natural sense to have this supported on the server side - you can inject Query/Path/Form/... params and other, runtime related obects. Most of them are not available on client side, because they simply don't exists in that scope. Also, how would that be accessed by the user? (Client is "a builder which returns a Response.. how would you get the instance of the annotated object? There is no "client resource" .. ). Thanks and regards, |
@glassfishrobot Commented I have analysed jersey client code and I found issue. Please find code impact of jersey client to support BeanParam :-
|
@glassfishrobot Commented |
@glassfishrobot Commented |
|
Any chance to get the PR reviewed and merged? 😕 |
In order for this ( 235 ) PR to be reviewed some enthusiast shall re-publish it here (to new Jersey) with valid ECA signed. Afterwards it will be reviewed. |
The bean params are supported by the MP Rest Client which has similar functionality as the proxy client. The #4086 is using BeanParams. Would it help? |
@lucastsa any chance you would re-publish your PR here? @jansupol not sure, in theory there's a single place where we create these client proxies, so the changes should be minimal, but I would also have to check if the MP Rest Client requires any other changes (we use the JAX-RS / Jersey / Spring / Spring Boot stack). One other thing is that #4086 seems yet to be merged, so I can't actually test. |
@jansupol -- WebResourceFactory is still better, more mature, more battle-tested than MP Rest Client in several respects, despite missing For example, eclipse/microprofile-rest-client#217 It would be a good idea to continue to maintain WebResourceFactory & have WRF & MP Rest Client use the same backend abstractions/proxies. I'd like to see MP Rest Client move away from the fat, clunky |
Allows the proxy client holding a resource interface to supply a bean of the corresponding type for the method fields annotated with @BeanParam, instead of having to supply the associated parameters individually. This also works if BeanParams themselves contain fields annotated with @BeanParam.
Allows the proxy client holding a resource interface to supply a bean of the corresponding type for the method fields annotated with @BeanParam, instead of having to supply the associated parameters individually. This also works if BeanParams themselves contain fields annotated with @BeanParam.
Allows the proxy client holding a resource interface to supply a bean of the corresponding type for the method fields annotated with @BeanParam, instead of having to supply the associated parameters individually. This also works if BeanParams themselves contain fields annotated with @BeanParam.
Allows the proxy client holding a resource interface to supply a bean of the corresponding type for the method fields annotated with @BeanParam, instead of having to supply the associated parameters individually. This also works if BeanParams themselves contain fields annotated with @BeanParam.
* Issue #3493 - Add BeanParam support to WebResourceFactory Allows the proxy client holding a resource interface to supply a bean of the corresponding type for the method fields annotated with @BeanParam, instead of having to supply the associated parameters individually. This also works if BeanParams themselves contain fields annotated with @BeanParam.
…eclipse-ee4j#4919) * Issue eclipse-ee4j#3493 - Add BeanParam support to WebResourceFactory Allows the proxy client holding a resource interface to supply a bean of the corresponding type for the method fields annotated with @BeanParam, instead of having to supply the associated parameters individually. This also works if BeanParams themselves contain fields annotated with @BeanParam.
* Issue #3493 - Add BeanParam support to WebResourceFactory Allows the proxy client holding a resource interface to supply a bean of the corresponding type for the method fields annotated with @BeanParam, instead of having to supply the associated parameters individually. This also works if BeanParams themselves contain fields annotated with @BeanParam.
I saw |
I would like that as well. This would be a helpful feature addition in v2. |
Co-Authored-By: Richard Obersheimer <[email protected]> Signed-off-by: Denis Karabetsky <[email protected]>
This issue could be closed, as BeanParams support already backported to jersey#2.41 |
closed as resolved |
Affected Versions
[2.25]
The text was updated successfully, but these errors were encountered: