Interface RequestContext
- All Known Implementing Classes:
- AbstractRequestContext
public interface RequestContext
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.
- 
Method SummaryModifier and TypeMethodDescriptionGets the character encoding for the request.default CharsetGets the character encoding for the request or null if unspecified.longGets the content length of the request.Gets the content type of the request.Gets the input stream for the request.booleanIs the Request of typemultipart/related?
- 
Method Details- 
getCharacterEncodingGets the character encoding for the request.- Returns:
- The character encoding for the request.
 
- 
getCharsetGets the character encoding for the request or null if unspecified.- Returns:
- The character encoding for the request or null.
- Throws:
- UnsupportedCharsetException- If the named Charset is unavailable.
 
- 
getContentLengthlong getContentLength()Gets the content length of the request.- Returns:
- The content length of the request.
 
- 
getContentTypeGets the content type of the request.- Returns:
- The content type of the request.
 
- 
getInputStreamGets the input stream for the request.- Returns:
- The input stream for the request.
- Throws:
- IOException- if a problem occurs.
 
- 
isMultipartRelatedboolean isMultipartRelated()Is the Request of typemultipart/related?- Returns:
- the Request is of type multipart/related
- Since:
- 2.0.0
 
 
-