Class PortletRequestContext
java.lang.Object
org.apache.commons.fileupload.portlet.PortletRequestContext
- All Implemented Interfaces:
RequestContext,UploadContext
Provides access to the request information needed for a request made to a portlet.
- Since:
- FileUpload 1.1
-
Constructor Summary
ConstructorsConstructorDescriptionPortletRequestContext(javax.portlet.ActionRequest request) Construct a context for this request. -
Method Summary
Modifier and TypeMethodDescriptionlongRetrieve the content length of the request.Retrieve the character encoding for the request.intDeprecated.Retrieve the content type of the request.Retrieve the input stream for the request.toString()Returns a string representation of this object.
-
Constructor Details
-
PortletRequestContext
Construct a context for this request.- Parameters:
request- The request to which this context applies.
-
-
Method Details
-
contentLength
Retrieve the content length of the request.- Specified by:
contentLengthin interfaceUploadContext- Returns:
- The content length of the request.
- Since:
- 1.3
-
getCharacterEncoding
Retrieve the character encoding for the request.- Specified by:
getCharacterEncodingin interfaceRequestContext- Returns:
- The character encoding for the request.
-
getContentLength
Deprecated.1.3 UsecontentLength()insteadRetrieve the content length of the request.- Specified by:
getContentLengthin interfaceRequestContext- Returns:
- The content length of the request.
-
getContentType
Retrieve the content type of the request.- Specified by:
getContentTypein interfaceRequestContext- Returns:
- The content type of the request.
-
getInputStream
Retrieve the input stream for the request.- Specified by:
getInputStreamin interfaceRequestContext- Returns:
- The input stream for the request.
- Throws:
IOException- if a problem occurs.
-
toString
Returns a string representation of this object.
-
contentLength()instead