当前页面:
在线文档首页 >
Spring Framework 2.1.0 API 文档英文版
HttpRequestMethodNotSupportedException (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版
org.springframework.web
Class HttpRequestMethodNotSupportedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.servlet.ServletException
org.springframework.web.HttpRequestMethodNotSupportedException
- All Implemented Interfaces:
- Serializable
public class HttpRequestMethodNotSupportedException
- extends ServletException
Exception thrown when a request handler does not support a
specific request method.
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
- Serialized Form
Method Summary |
String |
getMethod()
Return the HTTP request method that caused the failure. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
HttpRequestMethodNotSupportedException
public HttpRequestMethodNotSupportedException(String method)
- Create a new HttpRequestMethodNotSupportedException.
- Parameters:
method
- the unsupported HTTP request method
HttpRequestMethodNotSupportedException
public HttpRequestMethodNotSupportedException(String method,
String msg)
- Create a new HttpRequestMethodNotSupportedException.
- Parameters:
method
- the unsupported HTTP request methodmsg
- the detail message
getMethod
public String getMethod()
- Return the HTTP request method that caused the failure.
Copyright © 2002-2007 The Spring Framework.