public class HttpRequestMethodNotSupportedException extends ServletException
Constructor and Description |
---|
HttpRequestMethodNotSupportedException(java.lang.String method)
Create a new HttpRequestMethodNotSupportedException.
|
HttpRequestMethodNotSupportedException(java.lang.String method,
java.util.Collection<java.lang.String> supportedMethods)
Create a new HttpRequestMethodNotSupportedException.
|
HttpRequestMethodNotSupportedException(java.lang.String method,
java.lang.String msg)
Create a new HttpRequestMethodNotSupportedException.
|
HttpRequestMethodNotSupportedException(java.lang.String method,
java.lang.String[] supportedMethods)
Create a new HttpRequestMethodNotSupportedException.
|
HttpRequestMethodNotSupportedException(java.lang.String method,
java.lang.String[] supportedMethods,
java.lang.String msg)
Create a new HttpRequestMethodNotSupportedException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMethod()
Return the HTTP request method that caused the failure.
|
java.util.Set<HttpMethod> |
getSupportedHttpMethods()
Return the actually supported HTTP methods as
HttpMethod instances,
or null if not known. |
java.lang.String[] |
getSupportedMethods()
Return the actually supported HTTP methods, or
null if not known. |
getRootCause
public HttpRequestMethodNotSupportedException(java.lang.String method)
method
- the unsupported HTTP request methodpublic HttpRequestMethodNotSupportedException(java.lang.String method, java.lang.String msg)
method
- the unsupported HTTP request methodmsg
- the detail messagepublic HttpRequestMethodNotSupportedException(java.lang.String method, @Nullable java.util.Collection<java.lang.String> supportedMethods)
method
- the unsupported HTTP request methodsupportedMethods
- the actually supported HTTP methods (may be null
)public HttpRequestMethodNotSupportedException(java.lang.String method, @Nullable java.lang.String[] supportedMethods)
method
- the unsupported HTTP request methodsupportedMethods
- the actually supported HTTP methods (may be null
)public HttpRequestMethodNotSupportedException(java.lang.String method, @Nullable java.lang.String[] supportedMethods, java.lang.String msg)
method
- the unsupported HTTP request methodsupportedMethods
- the actually supported HTTP methodsmsg
- the detail messagepublic java.lang.String getMethod()
@Nullable public java.lang.String[] getSupportedMethods()
null
if not known.@Nullable public java.util.Set<HttpMethod> getSupportedHttpMethods()
HttpMethod
instances,
or null
if not known.