Package com.helger.web.fileupload
Interface IRequestContext
-
- All Known Implementing Classes:
ServletRequestContext
public interface IRequestContextAbstracts access to the request information needed for file uploads. This interfsace should be implemented for each type of request that may be handled by FileUpload, such as servlets and portlets.
- Since:
- FileUpload 1.1
- Version:
- $Id: RequestContext.java 479262 2006-11-26 03:09:24Z niallp $
- Author:
- Martin Cooper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCharacterEncoding()Retrieve the character encoding for the request.longgetContentLength()Retrieve the content length of the request.StringgetContentType()Retrieve the content type of the request.InputStreamgetInputStream()Retrieve the input stream for the request.
-
-
-
Method Detail
-
getCharacterEncoding
@Nullable String getCharacterEncoding()
Retrieve the character encoding for the request.- Returns:
- The character encoding for the request.
-
getContentType
@Nullable String getContentType()
Retrieve the content type of the request.- Returns:
- The content type of the request.
-
getContentLength
@CheckForSigned long getContentLength()
Retrieve the content length of the request.- Returns:
- The content length of the request. My be -1 to indicate an unknown content length.
-
getInputStream
@Nonnull InputStream getInputStream() throws IOException
Retrieve the input stream for the request.- Returns:
- The input stream for the request.
- Throws:
IOException- if a problem occurs.
-
-