| |
|
| org.gridsphere.portlet.impl.PortletRequestImpl org.gridsphere.portlet.impl.ActionRequestImpl
ActionRequestImpl | public class ActionRequestImpl extends PortletRequestImpl implements ActionRequest(Code) | | The ActionRequest represents the request sent to the portlet
to handle an action.
It extends the PortletRequest interface to provide action request
information to portlets.
The portlet container creates an ActionRequest object and
passes it as argument to the portlet's processAction method.
See Also: PortletRequest See Also: RenderRequest |
Method Summary | |
public String | getCharacterEncoding() Returns the name of the character encoding used in the body of this request. | public int | getContentLength() Returns the length, in bytes, of the request body
which is made available by the input stream, or -1 if the
length is not known. | public String | getContentType() Returns the MIME type of the body of the request,
or null if the type is not known. | public java.io.InputStream | getPortletInputStream() Retrieves the body of the HTTP request from client to
portal as binary data using
an InputStream . | public java.io.BufferedReader | getReader() Retrieves the body of the HTTP request from the client to the portal
as character data using
a BufferedReader . | public void | setCharacterEncoding(String enc) Overrides the name of the character encoding used in the body of this
request. |
ActionRequestImpl | public ActionRequestImpl(HttpServletRequest req, PortletContext portletContext)(Code) | | Constructor creates a proxy for a HttpServletRequest
All PortletRequest objects come from request or session attributes
Parameters: req - the HttpServletRequest Parameters: portletContext - the PortletContext |
getCharacterEncoding | public String getCharacterEncoding()(Code) | | Returns the name of the character encoding used in the body of this request.
This method returns null if the request
does not specify a character encoding.
a String containing the name ofthe chararacter encoding, or null if the request does not specify a character encoding. |
getContentLength | public int getContentLength()(Code) | | Returns the length, in bytes, of the request body
which is made available by the input stream, or -1 if the
length is not known.
an integer containing the length of therequest body or -1 if the length is not known |
getContentType | public String getContentType()(Code) | | Returns the MIME type of the body of the request,
or null if the type is not known.
a String containing the nameof the MIME type of the request, or nullif the type is not known. |
getPortletInputStream | public java.io.InputStream getPortletInputStream() throws IOException, IllegalStateException(Code) | | Retrieves the body of the HTTP request from client to
portal as binary data using
an InputStream . Either this method or
ActionRequestImpl.getReader may be called to read the body, but not both.
For HTTP POST data of type application/x-www-form-urlencoded
this method throws an IllegalStateException
as this data has been already processed by the
portal/portlet-container and is available as request parameters.
an input stream containing the body of the request throws: IllegalStateException - if getReader was already called, or it is aHTTP POST data of type application/x-www-form-urlencoded throws: java.io.IOException - if an input or output exception occurred |
|
|
|