ServletRequestBindingException subclass that indicates
that a request header expected in the method parameters of an
@RequestMapping method is not present.
MissingRequestCookieException
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final MethodParameter |
| Access | Constructor and Description |
|---|---|
| public | MissingRequestHeaderException(String
the name of the missing request header headerName, MethodParameter the method parameter parameter)Constructor for MissingRequestHeaderException. |
| public | MissingRequestHeaderException(String
the name of the missing request header headerName, MethodParameter the method parameter parameter, boolean whether the value became null after conversion missingAfterConversion)Constructor for use when a value was present but converted to |
| Modifier and Type | Method and Description |
|---|---|
| public final String | |
| public String | getMessage()
Overrides java. |
| public final MethodParameter |
| headerName | back to summary |
|---|---|
| private final String headerName | |
| parameter | back to summary |
|---|---|
| private final MethodParameter parameter | |
| MissingRequestHeaderException | back to summary |
|---|---|
| public MissingRequestHeaderException(String headerName, MethodParameter parameter) Constructor for MissingRequestHeaderException.
| |
| MissingRequestHeaderException | back to summary |
|---|---|
| public MissingRequestHeaderException(String headerName, MethodParameter parameter, boolean missingAfterConversion) Constructor for use when a value was present but converted to
| |
| getHeaderName | back to summary |
|---|---|
| public final String getHeaderName() Return the expected name of the request header. | |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Doc from java. Returns the detail message string of this throwable. | |
| getParameter | back to summary |
|---|---|
| public final MethodParameter getParameter() Return the method parameter bound to the request header. | |