ClientDataRequest represents the request information
of the HTTP request issued from the client to the portal.PortletRequest
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: aString containing the name of
the character encoding, or null
if the request does not specify a character encoding.Returns the name of the character encoding used in the body of this request. |
| public int | Returns: an integer containing the length of the request body or -1 if the length is not knownReturns 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 long | Returns: along containing the length of the
request body or -1 if the length is not known
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 | Returns: aString containing the name
of the MIME type of the request, or null
if the type is not known.Returns the MIME type of the body of the request, or null if the type is not known. |
| public String | Returns: a String specifying the name of the HTTP method with which this request was madeReturns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT. |
| public Part | |
| public Collection | Returns: a (possibly empty) Collection of the Part components of this request
Gets all the Part components of this request, provided that it is of type multipart/form-data.
|
| public InputStream | Returns: an input stream containing the body of the requestRetrieves the body of the HTTP request from client to
portal as binary data using
an |
| public BufferedReader | Returns: aBufferedReader
containing the body of the requestRetrieves the body of the HTTP request from the client to the portal
as character data using
a |
| public void | setCharacterEncoding(String
a enc)String containing the name of
the character encoding.Overrides the name of the character encoding used in the body of this request. |
| getCharacterEncoding | back to summary |
|---|---|
| public String getCharacterEncoding() Returns the name of the character encoding used in the body of this request.
This method returns
| |
| getContentLength | back to summary |
|---|---|
| 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.
| |
| getContentLengthLong | back to summary |
|---|---|
| public long getContentLengthLong()
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.
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Returns the MIME type of the body of the request, or null if the type is not known.
| |
| getMethod | back to summary |
|---|---|
| public String getMethod() Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT.
| |
| getPart | back to summary |
|---|---|
| public Part getPart(String name) throws IOException, PortletException
Gets the Part with the given name.
| |
| getParts | back to summary |
|---|---|
| public Collection
Gets all the Part components of this request, provided that it is of type multipart/form-data.
If this request is of type multipart/form-data, but does not contain any Part components, the returned Collection will be empty. Any changes to the returned Collection must not affect this request object.
| |
| getPortletInputStream | back to summary |
|---|---|
| public InputStream getPortletInputStream() throws IOException Retrieves the body of the HTTP request from client to
portal as binary data using
an
For HTTP POST data of type application/x-www-form-urlencoded
this method throws an
| |
| getReader | back to summary |
|---|---|
| public BufferedReader getReader() throws UnsupportedEncodingException, IOException Retrieves the body of the HTTP request from the client to the portal
as character data using
a
For HTTP POST data of type application/x-www-form-urlencoded
this method throws an
| |
| setCharacterEncoding | back to summary |
|---|---|
| public void setCharacterEncoding(String enc) throws UnsupportedEncodingException Overrides the name of the character encoding used in the body of this
request. This method must be called prior to reading input
using
This method only sets the character set for the Reader that the
| |