|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
net.jot.web.JOTFlowRequest
public class JOTFlowRequest
This is a custom extension of the standard HttpServletRequestWrapper with added functionality. In particular it supports a setParameter() method that allows to overide/manipulates parameter values. It also provides basic for multipartRequest support (ie: file uploads from forms)
| Field Summary |
|---|
| Fields inherited from interface javax.servlet.http.HttpServletRequest |
|---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Constructor Summary | |
|---|---|
JOTFlowRequest(javax.servlet.http.HttpServletRequest request)
|
|
| Method Summary | |
|---|---|
void |
addFile(JOTMultiPartItem item)
Called internally by JOTMultiPartParser, if a file was uploaded from the form. |
void |
finalize()
When the request is completed/terminated tries to delete the temporary multipart data (uploaded files) |
java.util.Hashtable |
getCustomParams()
|
JOTMultiPartItem |
getFile(java.lang.String name)
Return a file handle(JOTMultiPartItem) from the request(multipart request) for an uploaded file, which you can then save somewhere NOTE: parseMultiPartContent() MUST have been called first otherwise it will return nothing(null). |
java.lang.String |
getParameter(java.lang.String name)
Overload of getParameter, to take into account our custom setRequest feature |
void |
parseMultiPartContent(java.lang.String tempDataFolder,
long maxSize)
Call this if you want to parse the request as a multipart content. |
void |
setCustomParams(java.util.Hashtable customParams)
|
void |
setParameter(java.lang.String name,
java.lang.String value)
SetParameter will save the new parameter value (valid through the java request.) |
| Methods inherited from class javax.servlet.http.HttpServletRequestWrapper |
|---|
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole |
| Methods inherited from class javax.servlet.ServletRequestWrapper |
|---|
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.ServletRequest |
|---|
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding |
| Constructor Detail |
|---|
public JOTFlowRequest(javax.servlet.http.HttpServletRequest request)
| Method Detail |
|---|
public java.util.Hashtable getCustomParams()
public void setCustomParams(java.util.Hashtable customParams)
public void setParameter(java.lang.String name,
java.lang.String value)
name - value - public java.lang.String getParameter(java.lang.String name)
getParameter in interface javax.servlet.ServletRequestgetParameter in class javax.servlet.ServletRequestWrapper
public void parseMultiPartContent(java.lang.String tempDataFolder,
long maxSize)
throws java.lang.Exception
java.lang.Exception
public void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void addFile(JOTMultiPartItem item)
item - public JOTMultiPartItem getFile(java.lang.String name)
name - : the name of the file (HTML input name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||