| java.lang.Object com.sun.portal.portlet.impl.PortletRequestImpl com.sun.portal.portlet.impl.ActionRequestImpl
Method Summary | |
void | clear() Clears the global variables. | 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
and 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.util.Map | getParameterMap() Returns a Map of the parameters of this request.
Request parameters are extra information sent with the request.
The returned parameters are "x-www-form-urlencoded" decoded.
The values in the returned Map are from type
String array (String[] ).
If no parameters exist this method returns an empty Map .
an immutable Map containing parameter names askeys and parameter values as map values, or an empty Map if no parameters exist. | public java.io.InputStream | getPortletInputStream() Retrieves the body of the HTTP request from client to
portal as binary data using
an InputStream . | public PortletMode | getPortletMode() Returns the current mode of the portlet. | public BufferedReader | getReader() Retrieves the body of the HTTP request from client to the portal
as character data using
a BufferedReader . | public WindowState | getWindowState() Returns the current window state of the portlet. | void | init(HttpServletRequest req, HttpServletResponse res, PortletContainerActionRequest pContReq, PortletContainerActionResponse pContRes, PortletContext context, PortalContext portalContext, PortletDescriptor pDescriptor, StringWriter writer, Logger logger) Initialize the global variables. | public void | setCharacterEncoding(String enc) Overrides the name of the character encoding used in the body of this
request. |
clear | void clear()(Code) | | Clears the global variables.
|
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 of the 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
and made available by the input stream, or -1 if the
length is not known.
an integer containing the length of the request 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 name of the MIME type of the request, or null if the type is not known |
getParameterMap | public java.util.Map getParameterMap()(Code) | | Returns a Map of the parameters of this request.
Request parameters are extra information sent with the request.
The returned parameters are "x-www-form-urlencoded" decoded.
The values in the returned Map are from type
String array (String[] ).
If no parameters exist this method returns an empty Map .
an immutable Map containing parameter names askeys and parameter values as map values, or an empty Map if no parameters exist. The keys in the parametermap are of type String. The values in the parameter map are of typeString array (String[] ). |
getPortletInputStream | public java.io.InputStream getPortletInputStream() throws IOException(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 exception: java.lang.IllegalStateException - if getReader was already called, or it is a HTTP POST data of type application/x-www-form-urlencoded exception: IOException - if an input or output exception occurred |
getPortletMode | public PortletMode getPortletMode()(Code) | | Returns the current mode of the portlet.
the portlet mode |
getWindowState | public WindowState getWindowState()(Code) | | Returns the current window state of the portlet.
the window state |
|
|