| |
|
| java.lang.Object org.apache.struts.upload.MultipartRequestWrapper
MultipartRequestWrapper | public class MultipartRequestWrapper implements HttpServletRequest(Code) | | This class functions as a wrapper around HttpServletRequest to
provide working getParameter methods for multipart requests. Once
Struts requires Servlet 2.3, this class will definately be changed to
extend javax.servlet.http.HttpServletRequestWrapper instead of
implementing HttpServletRequest. Servlet 2.3 methods are implemented
to return null or do nothing if called on. Use
MultipartRequestWrapper.getRequest() getRequest to retrieve the underlying HttpServletRequest
object and call on the 2.3 method there, the empty methods are here only
so that this will compile with the Servlet 2.3 jar. This class exists temporarily
in the process() method of ActionServlet, just before the ActionForward is processed
and just after the Action is performed, the request is set back to the original
HttpServletRequest object.
|
parameters | protected Map parameters(Code) | | The parameters for this multipart request
|
getCharacterEncoding | public String getCharacterEncoding()(Code) | | |
getContentLength | public int getContentLength()(Code) | | |
getLocalPort | public int getLocalPort()(Code) | | |
getParameter | public String getParameter(String name)(Code) | | Attempts to get a parameter for this request. It first looks in the
underlying HttpServletRequest object for the parameter, and if that
doesn't exist it looks for the parameters retrieved from the multipart
request
|
getParameterMap | public Map getParameterMap()(Code) | | This method returns null. To use any Servlet 2.3 methods,
call on getRequest() and use that request object. Once Servlet 2.3
is required to build Struts, this will no longer be an issue.
|
getParameterNames | public Enumeration getParameterNames()(Code) | | Returns the names of the parameters for this request.
The enumeration consists of the normal request parameter
names plus the parameters read from the multipart request
|
getRemotePort | public int getRemotePort()(Code) | | |
getRequestURL | public StringBuffer getRequestURL()(Code) | | This method returns null. To use any Servlet 2.3 methods,
call on getRequest() and use that request object. Once Servlet 2.3
is required to build Struts, this will no longer be an issue.
|
getRequestedSessionId | public String getRequestedSessionId()(Code) | | |
getServerPort | public int getServerPort()(Code) | | |
isRequestedSessionIdFromCookie | public boolean isRequestedSessionIdFromCookie()(Code) | | This method returns false. To use any Servlet 2.3 methods,
call on getRequest() and use that request object. Once Servlet 2.3
is required to build Struts, this will no longer be an issue.
|
isRequestedSessionIdFromURL | public boolean isRequestedSessionIdFromURL()(Code) | | |
isRequestedSessionIdFromUrl | public boolean isRequestedSessionIdFromUrl()(Code) | | |
isRequestedSessionIdValid | public boolean isRequestedSessionIdValid()(Code) | | |
isSecure | public boolean isSecure()(Code) | | |
removeAttribute | public void removeAttribute(String name)(Code) | | |
setCharacterEncoding | public void setCharacterEncoding(String encoding)(Code) | | This method does nothing. To use any Servlet 2.3 methods,
call on getRequest() and use that request object. Once Servlet 2.3
is required to build Struts, this will no longer be an issue.
|
setParameter | public void setParameter(String name, String value)(Code) | | Sets a parameter for this request. The parameter is actually
separate from the request parameters, but calling on the
getParameter() methods of this class will work as if they weren't.
|
|
|
|