public class MethodNotAllowedException extends ResponseStatusException
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
method |
private java.util.Set<java.lang.String> |
supportedMethods |
Constructor and Description |
---|
MethodNotAllowedException(java.lang.String method,
java.util.Collection<java.lang.String> supportedMethods) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHttpMethod()
Return the HTTP method for the failed request.
|
java.util.Set<java.lang.String> |
getSupportedMethods()
Return the list of supported HTTP methods.
|
getReason, getStatus
contains, getMessage, getMostSpecificCause, getRootCause