public class HttpRequestMethodNotSupportedException extends ServletException
Constructor and Description |
---|
HttpRequestMethodNotSupportedException(String method)
Create a new HttpRequestMethodNotSupportedException.
|
HttpRequestMethodNotSupportedException(String method,
Collection<String> supportedMethods)
Create a new HttpRequestMethodNotSupportedException.
|
HttpRequestMethodNotSupportedException(String method,
String msg)
Create a new HttpRequestMethodNotSupportedException.
|
HttpRequestMethodNotSupportedException(String method,
String[] supportedMethods)
Create a new HttpRequestMethodNotSupportedException.
|
HttpRequestMethodNotSupportedException(String method,
String[] supportedMethods,
String msg)
Create a new HttpRequestMethodNotSupportedException.
|
Modifier and Type | Method and Description |
---|---|
String |
getMethod()
Return the HTTP request method that caused the failure.
|
Set<HttpMethod> |
getSupportedHttpMethods()
Return the actually supported HTTP methods, if known, as
HttpMethod instances. |
String[] |
getSupportedMethods()
Return the actually supported HTTP methods, if known.
|
getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HttpRequestMethodNotSupportedException(String method)
method
- the unsupported HTTP request methodpublic HttpRequestMethodNotSupportedException(String method, String[] supportedMethods)
method
- the unsupported HTTP request methodsupportedMethods
- the actually supported HTTP methodspublic HttpRequestMethodNotSupportedException(String method, Collection<String> supportedMethods)
method
- the unsupported HTTP request methodsupportedMethods
- the actually supported HTTP methodspublic HttpRequestMethodNotSupportedException(String method, String msg)
method
- the unsupported HTTP request methodmsg
- the detail messagepublic HttpRequestMethodNotSupportedException(String method, String[] supportedMethods, String msg)
method
- the unsupported HTTP request methodsupportedMethods
- the actually supported HTTP methodsmsg
- the detail messagepublic String getMethod()
public String[] getSupportedMethods()
public Set<HttpMethod> getSupportedHttpMethods()
HttpMethod
instances.