public class ISCHttpServletRequest
Constructor and Description |
---|
ISCHttpServletRequest(javax.servlet.http.HttpServletRequest request) ISCHttpServletRequest constructor. |
Modifier and Type | Method and Description |
---|---|
javax.servlet.http.HttpServletRequest | getHttpServletRequest() This method returns the actual container-provided HttpServletRequest object as it was passed to the entry point servlet for this request. |
ISCFileItem | getUploadedFile(java.lang.String fieldName) Retrieves an UploadedFile object (which contains the contentType and binary stream for the uploaded file) for a given field name. |
boolean | isMultipart() Returns true if the request's mimeType is multipart/form-data. |
public ISCHttpServletRequest(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
ISCHttpServletRequest
constructor. Instantiating this class does not cause the parsing of the request object - that is done lazily in getUploadedFile().java.lang.Exception
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
ISCHttpServletRequest
proxies all method calls (except the file upload logic) to the instance returned by this method.public boolean isMultipart()
public ISCFileItem getUploadedFile(java.lang.String fieldName) throws java.lang.Exception
Note: calling this method forces the parsing of the request. Once this method is called, you will not be able to call getInputStream() or getReader() on the HttpServletRequest object. Doing so will result in an IllegalStateException as per the servlet spec.
UploadedFile
for the named field or null if the request is not multipart or no file was provided for the given fieldName.java.lang.Exception