ServletRequestBindingException subclass that indicates
that a request cookie expected in the method parameters of an
@RequestMapping method is not present.
MissingRequestHeaderException
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final MethodParameter |
| Access | Constructor and Description |
|---|---|
| public | MissingRequestCookieException(String
the name of the missing request cookie cookieName, MethodParameter the method parameter parameter)Constructor for MissingRequestCookieException. |
| public | MissingRequestCookieException(String
the name of the missing request cookie cookieName, 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 |
| cookieName | back to summary |
|---|---|
| private final String cookieName | |
| parameter | back to summary |
|---|---|
| private final MethodParameter parameter | |
| MissingRequestCookieException | back to summary |
|---|---|
| public MissingRequestCookieException(String cookieName, MethodParameter parameter) Constructor for MissingRequestCookieException.
| |
| MissingRequestCookieException | back to summary |
|---|---|
| public MissingRequestCookieException(String cookieName, MethodParameter parameter, boolean missingAfterConversion) Constructor for use when a value was present but converted to
| |
| getCookieName | back to summary |
|---|---|
| public final String getCookieName() Return the expected name of the request cookie. | |
| 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 cookie. | |