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