Supported for annotated handler methods in Spring MVC and Spring WebFlux.
If the method parameter is Map<String, String>,
MultiValueMap<String, String>,
or HttpHeaders then the map is
populated with all header names and values.
RequestMapping, RequestParam, CookieValue
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public boolean | |
| public String |
| defaultValue | back to summary |
|---|---|
| public String defaultValue() The default value to use as a fallback. Supplying a default value implicitly sets | |
| name | back to summary |
|---|---|
| public String name() The name of the request header to bind to.
| |
| required | back to summary |
|---|---|
| public boolean required() Whether the header is required. Defaults to Alternatively, provide a | |
| value | back to summary |
|---|---|
| public String value() Alias for
| |