chkal / mvc-spec-migration-test

0 stars 0 forks source link

Discuss Data binding in MVC #6

Closed chkal closed 9 years ago

chkal commented 10 years ago

Original issue MVC_SPEC-6 created by Santiago Pericas-Geertsen:

One of the key functionalities that MVC frameworks provide is the ability of bind data from an HTTP request to Java objects. This data includes:

(1) headers (2) path segments (3) query parameters (4) matrix parameters (5) form data (including single name/value pairs) (6) Cookies (7) Entities (e.g., of content type application/json)

Binding also requires type conversions, which often need extensibility points for users to provide custom code. Most MVC frameworks use annotations for data binding (e.g., @QueryParam or @Form). In general these annotations can be used either on method parameters or instance variables.

(a) Should MVC use traditional annotations like other frameworks?

(b) If yes to "(a)", should MVC create its own set of annotations?

chkal commented 9 years ago

Comment by Santiago Pericas-Geertsen:

Data binding provided by JAX-RS.