com.vaadin.external.apache.commons.fileupload2.
Interface RequestContext
All Known Subinterfaces:
All Known Implementing Classes:
Abstracts access to the request information needed for file uploads. This interface should be implemented for each type of request that may be handled by FileUpload, such as servlets and portlets.
Since:
1.1
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve the character encoding for the request.
int
Deprecated.
Retrieve the content type of the request.
Retrieve the input stream for the request.
-
Method Details
-
getCharacterEncoding
String getCharacterEncoding()Retrieve the character encoding for the request.
Returns:
The character encoding for the request.
-
getContentType
String getContentType()Retrieve the content type of the request.
Returns:
The content type of the request.
-
getContentLength
Deprecated.1.3 UseUploadContext.contentLength()
insteadRetrieve the content length of the request.
Returns:
The content length of the request.
-
getInputStream
Retrieve the input stream for the request.
Returns:
The input stream for the request.
Throws:
IOException
- if a problem occurs.
-
UploadContext.contentLength()
instead