public class

HttpRequestMethodNotSupportedException

extends ServletException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ javax.servlet.ServletException
         ↳ org.springframework.web.HttpRequestMethodNotSupportedException

Class Overview

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

Summary

Public Constructors
HttpRequestMethodNotSupportedException(String method)
Create a new HttpRequestMethodNotSupportedException.
HttpRequestMethodNotSupportedException(String method, String[] supportedMethods)
Create a new HttpRequestMethodNotSupportedException.
HttpRequestMethodNotSupportedException(String method, String msg)
Create a new HttpRequestMethodNotSupportedException.
HttpRequestMethodNotSupportedException(String method, String[] supportedMethods, String msg)
Create a new HttpRequestMethodNotSupportedException.
Public Methods
String getMethod()
Return the HTTP request method that caused the failure.
String[] getSupportedMethods()
Return the actually supported HTTP methods, if known.
[Expand]
Inherited Methods
From class javax.servlet.ServletException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public HttpRequestMethodNotSupportedException (String method)

Create a new HttpRequestMethodNotSupportedException.

Parameters
method the unsupported HTTP request method

public HttpRequestMethodNotSupportedException (String method, String[] supportedMethods)

Create a new HttpRequestMethodNotSupportedException.

Parameters
method the unsupported HTTP request method
supportedMethods the actually supported HTTP methods

public HttpRequestMethodNotSupportedException (String method, String msg)

Create a new HttpRequestMethodNotSupportedException.

Parameters
method the unsupported HTTP request method
msg the detail message

public HttpRequestMethodNotSupportedException (String method, String[] supportedMethods, String msg)

Create a new HttpRequestMethodNotSupportedException.

Parameters
method the unsupported HTTP request method
supportedMethods the actually supported HTTP methods
msg the detail message

Public Methods

public String getMethod ()

Return the HTTP request method that caused the failure.

public String[] getSupportedMethods ()

Return the actually supported HTTP methods, if known.