org.apache.struts.upload
public class MultipartRequestWrapper extends Object implements HttpServletRequest
null
or do nothing if called on. Use
{@link #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.
Field Summary | |
---|---|
static Log | log Logging instance |
protected Map | parameters
The parameters for this multipart request |
protected HttpServletRequest | request
The underlying HttpServletRequest |
Constructor Summary | |
---|---|
MultipartRequestWrapper(HttpServletRequest request) |
Method Summary | |
---|---|
Object | getAttribute(String name) |
Enumeration | getAttributeNames() |
String | getAuthType() |
String | getCharacterEncoding() |
int | getContentLength() |
String | getContentType() |
String | getContextPath() |
Cookie[] | getCookies() |
long | getDateHeader(String name) |
String | getHeader(String name) |
Enumeration | getHeaderNames() |
Enumeration | getHeaders(String name) |
ServletInputStream | getInputStream() |
int | getIntHeader(String name) |
String | getLocalAddr()
Use Reflection to invoke Servlet 2.4 getLocalAddr
method on the wrapped Request. |
Locale | getLocale() |
Enumeration | getLocales() |
String | getLocalName()
Use Reflection to invoke Servlet 2.4 getLocalName
method on the wrapped Request. |
int | getLocalPort()
Use Reflection to invoke Servlet 2.4 getLocalPort
method on the wrapped Request. |
String | getMethod() |
String | getParameter(String name)
Attempts to get a parameter for this request. |
Map | getParameterMap()
Implements the Servlet 2.3 getParameterMap method. |
Enumeration | getParameterNames()
Returns the names of the parameters for this request.
|
String[] | getParameterValues(String name) |
String | getPathInfo() |
String | getPathTranslated() |
String | getProtocol() |
String | getQueryString() |
BufferedReader | getReader() |
String | getRealPath(String path) |
String | getRemoteAddr() |
String | getRemoteHost() |
int | getRemotePort()
Use Reflection to invoke Servlet 2.4 getRemotePort
method on the wrapped Request. |
String | getRemoteUser() |
HttpServletRequest | getRequest()
Returns the underlying HttpServletRequest for this wrapper |
RequestDispatcher | getRequestDispatcher(String path) |
String | getRequestedSessionId() |
String | getRequestURI() |
StringBuffer | getRequestURL()
Use Reflection to invoke Servlet 2.3 getRequestURL
method on the wrapped Request. |
String | getScheme() |
String | getServerName() |
int | getServerPort() |
String | getServletPath() |
HttpSession | getSession(boolean create) |
HttpSession | getSession() |
Principal | getUserPrincipal() |
Object | invokeRequestMethod(String name, Object[] args)
Convenience method which uses reflection to invoke a method
on the Request. |
boolean | isRequestedSessionIdFromCookie()
Use Reflection to invoke Servlet 2.3 isRequestedSessionIdFromCookie
method on the wrapped Request. |
boolean | isRequestedSessionIdFromUrl() |
boolean | isRequestedSessionIdFromURL() |
boolean | isRequestedSessionIdValid() |
boolean | isSecure() |
boolean | isUserInRole(String user) |
void | removeAttribute(String name) |
void | setAttribute(String name, Object o) |
void | setCharacterEncoding(String encoding)
Use Reflection to invoke Servlet 2.3 setCharacterEncoding
method on the wrapped Request. |
void | setParameter(String name, String value)
Sets a parameter for this request. |