Class JavaxServletRequestContext
java.lang.Object
org.apache.commons.fileupload2.core.AbstractRequestContext<javax.servlet.http.HttpServletRequest>
org.apache.commons.fileupload2.javax.JavaxServletRequestContext
- All Implemented Interfaces:
- RequestContext
public class JavaxServletRequestContext
extends AbstractRequestContext<javax.servlet.http.HttpServletRequest>
Provides access to the request information needed for a request made to an HTTP servlet.
- 
Constructor SummaryConstructorsConstructorDescriptionJavaxServletRequestContext(javax.servlet.http.HttpServletRequest request) Constructs a context for this request.
- 
Method SummaryModifier and TypeMethodDescriptionGets the character encoding for the request.Gets the content type of the request.Gets the input stream for the request.Methods inherited from class org.apache.commons.fileupload2.core.AbstractRequestContextgetContentLength, getRequest, isMultipartRelated, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.fileupload2.core.RequestContextgetCharset
- 
Constructor Details- 
JavaxServletRequestContextConstructs a context for this request.- Parameters:
- request- The request to which this context applies.
 
 
- 
- 
Method Details- 
getCharacterEncodingGets the character encoding for the request.- Returns:
- The character encoding for 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.
 
 
-