-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancementA general enhancement
Description
Ankur Pathak opened SPR-17237 and commented
We can collect various parameters of HTTP Request like Path, Query, Header inside bean using @BeanParam in JAX-RS.
public class MyBean {
@FormParam("myData") private String data;
@HeaderParam("myHeader") private String header;
@PathParam("id") public void setResourceId(String id) {
// ...
}
// ...
}We should have something similar to same in Spring to collect them inside Bean and also apply Bean Validation API for them at once. Listing all those parameters as method parameter list is inelegant way of handling them and does not allow to transfer them at once from one layer to other layer.
Affects: 5.1 RC2
Reference URL: https://docs.oracle.com/javaee/7/api/javax/ws/rs/BeanParam.html
DaBlick and VILLAN3LL3
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancementA general enhancement