类 PortletRequestMethodNotSupportedException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- javax.portlet.PortletException
- org.springframework.web.portlet.handler.PortletRequestMethodNotSupportedException
- 所有已实现的接口:
Serializable
public class PortletRequestMethodNotSupportedException extends PortletException
Exception thrown when a request handler does not support a specific request method.- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 PortletRequestMethodNotSupportedException(String method)
Create a new PortletRequestMethodNotSupportedException.PortletRequestMethodNotSupportedException(String[] supportedMethods)
Create a new PortletRequestMethodNotSupportedException.PortletRequestMethodNotSupportedException(String method, String[] supportedMethods)
Create a new PortletRequestMethodNotSupportedException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getMethod()
Return the HTTP request method that caused the failure.String[]
getSupportedMethods()
Return the actually supported HTTP methods, if known.
构造器详细资料
PortletRequestMethodNotSupportedException
public PortletRequestMethodNotSupportedException(String method)
Create a new PortletRequestMethodNotSupportedException.- 参数:
method
- the unsupported HTTP request method
PortletRequestMethodNotSupportedException
public PortletRequestMethodNotSupportedException(String method, String[] supportedMethods)
Create a new PortletRequestMethodNotSupportedException.- 参数:
method
- the unsupported HTTP request methodsupportedMethods
- the actually supported HTTP methods
PortletRequestMethodNotSupportedException
public PortletRequestMethodNotSupportedException(String[] supportedMethods)
Create a new PortletRequestMethodNotSupportedException.- 参数:
supportedMethods
- the actually supported HTTP methods
方法详细资料
getSupportedMethods
public String[] getSupportedMethods()
Return the actually supported HTTP methods, if known.