RequestContextpublic class PortletRequestContext extends java.lang.Object implements RequestContext
Provides access to the request information needed for a request made to a portlet.
| Modifier and Type | Field | Description |
|---|---|---|
private javax.portlet.ActionRequest |
request |
The request for which the context is being provided.
|
| Constructor | Description |
|---|---|
PortletRequestContext(javax.portlet.ActionRequest request) |
Construct a context for this request.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getCharacterEncoding() |
Retrieve the character encoding for the request.
|
int |
getContentLength() |
Retrieve the content length of the request.
|
java.lang.String |
getContentType() |
Retrieve the content type of the request.
|
java.io.InputStream |
getInputStream() |
Retrieve the input stream for the request.
|
java.lang.String |
toString() |
Returns a string representation of this object.
|
private javax.portlet.ActionRequest request
public PortletRequestContext(javax.portlet.ActionRequest request)
request - The request to which this context applies.public java.lang.String getCharacterEncoding()
getCharacterEncoding in interface RequestContextpublic java.lang.String getContentType()
getContentType in interface RequestContextpublic int getContentLength()
getContentLength in interface RequestContextpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface RequestContextjava.io.IOException - if a problem occurs.public java.lang.String toString()
toString in class java.lang.Object