request binding
A framework converting parts of an HTTP request, such as path variables, query parameters, headers and the body, into typed method arguments.
In more detail
Conversion is not validation: text may parse as a number and still be out of range. Binding produces a candidate object, validation then decides whether it is acceptable, and conversion failures should become a clear client error.
Related terms
- path variable — A placeholder segment in a route, such as {id} in /orders/{id}, whose value is taken from the request URL.
- query parameter — A name and value added after the question mark in a URL, such as ?verbose=true, that refines a request.
- request body — The main content of an HTTP request or response, such as a JSON object describing an order to create.
- Jakarta Validation — The Jakarta standard for declaring input rules as annotations on fields, such as @NotBlank and @Positive, and checking them automatically.
Taught in
- Reading The Request — Modern Java: Virtual Threads & High-Throughput Services
- Validation — Modern Java: Virtual Threads & High-Throughput Services