spring-framework / org.springframework.web / HttpRequestMethodNotSupportedException

HttpRequestMethodNotSupportedException

open class HttpRequestMethodNotSupportedException : ServletException

Exception thrown when a request handler does not support a specific request method.

Author
Juergen Hoeller

Since
2.0

Constructors

<init>

HttpRequestMethodNotSupportedException(method: String)
HttpRequestMethodNotSupportedException(method: String, msg: String)
HttpRequestMethodNotSupportedException(method: String, supportedMethods: MutableCollection<String>)
HttpRequestMethodNotSupportedException(method: String, supportedMethods: Array<String>)
HttpRequestMethodNotSupportedException(method: String, supportedMethods: Array<String>, msg: String)

Create a new HttpRequestMethodNotSupportedException.

Functions

getMethod

open fun getMethod(): String

Return the HTTP request method that caused the failure.

getSupportedHttpMethods

open fun getSupportedHttpMethods(): MutableSet<HttpMethod>

Return the actually supported HTTP methods as HttpMethod instances, or null if not known.

getSupportedMethods

open fun getSupportedMethods(): Array<String>

Return the actually supported HTTP methods, or null if not known.