public class PortletRequestMethodNotSupportedException
extends PortletException
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
method |
private java.lang.String[] |
supportedMethods |
Constructor and Description |
---|
PortletRequestMethodNotSupportedException(java.lang.String method)
Create a new PortletRequestMethodNotSupportedException.
|
PortletRequestMethodNotSupportedException(java.lang.String[] supportedMethods)
Create a new PortletRequestMethodNotSupportedException.
|
PortletRequestMethodNotSupportedException(java.lang.String method,
java.lang.String[] supportedMethods)
Create a new PortletRequestMethodNotSupportedException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMethod()
Return the HTTP request method that caused the failure.
|
java.lang.String[] |
getSupportedMethods()
Return the actually supported HTTP methods, if known.
|
private java.lang.String method
private java.lang.String[] supportedMethods
public PortletRequestMethodNotSupportedException(java.lang.String method)
method
- the unsupported HTTP request methodpublic PortletRequestMethodNotSupportedException(java.lang.String method, java.lang.String[] supportedMethods)
method
- the unsupported HTTP request methodsupportedMethods
- the actually supported HTTP methodspublic PortletRequestMethodNotSupportedException(java.lang.String[] supportedMethods)
supportedMethods
- the actually supported HTTP methods