public class MethodNotAllowedException extends ResponseStatusException
Constructor and Description |
---|
MethodNotAllowedException(HttpMethod method,
Collection<HttpMethod> supportedMethods) |
MethodNotAllowedException(String method,
Collection<HttpMethod> supportedMethods) |
Modifier and Type | Method and Description |
---|---|
String |
getHttpMethod()
Return the HTTP method for the failed request.
|
Set<HttpMethod> |
getSupportedMethods()
Return the list of supported HTTP methods.
|
getMessage, getReason, getStatus
contains, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MethodNotAllowedException(HttpMethod method, Collection<HttpMethod> supportedMethods)
public MethodNotAllowedException(String method, @Nullable Collection<HttpMethod> supportedMethods)
public String getHttpMethod()
public Set<HttpMethod> getSupportedMethods()