public class PortletRequestContext extends Object implements RequestContext
Provides access to the request information needed for a request made to a portlet.
Constructor and Description |
---|
PortletRequestContext(javax.portlet.ActionRequest request)
Construct a context for this request.
|
Modifier and Type | Method and Description |
---|---|
String |
getCharacterEncoding()
Retrieve the character encoding for the request.
|
int |
getContentLength()
Retrieve the content length of the request.
|
String |
getContentType()
Retrieve the content type of the request.
|
InputStream |
getInputStream()
Retrieve the input stream for the request.
|
String |
toString()
Returns a string representation of this object.
|
public PortletRequestContext(javax.portlet.ActionRequest request)
request
- The request to which this context applies.public String getCharacterEncoding()
getCharacterEncoding
in interface RequestContext
public String getContentType()
getContentType
in interface RequestContext
public int getContentLength()
getContentLength
in interface RequestContext
public InputStream getInputStream() throws IOException
getInputStream
in interface RequestContext
IOException
- if a problem occurs.Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.