Java Doc for MultipartRequestWrapper.java in  » Project-Management » XPlanner-0.7b7 » org » apache » struts » upload » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Project Management » XPlanner 0.7b7 » org.apache.struts.upload 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.


Field Summary
protected  Mapparameters
    
protected  HttpServletRequestrequest
    

Constructor Summary
public  MultipartRequestWrapper(HttpServletRequest request)
    

Method Summary
public  ObjectgetAttribute(String name)
    
public  EnumerationgetAttributeNames()
    
public  StringgetAuthType()
    
public  StringgetCharacterEncoding()
    
public  intgetContentLength()
    
public  StringgetContentType()
    
public  StringgetContextPath()
    
public  Cookie[]getCookies()
    
public  longgetDateHeader(String name)
    
public  StringgetHeader(String name)
    
public  EnumerationgetHeaderNames()
    
public  EnumerationgetHeaders(String name)
    
public  ServletInputStreamgetInputStream()
    
public  intgetIntHeader(String name)
    
public  StringgetLocalAddr()
    
public  StringgetLocalName()
    
public  intgetLocalPort()
    
public  LocalegetLocale()
    
public  EnumerationgetLocales()
    
public  StringgetMethod()
    
public  StringgetParameter(String name)
     Attempts to get a parameter for this request.
public  MapgetParameterMap()
     This method returns null.
public  EnumerationgetParameterNames()
     Returns the names of the parameters for this request.
public  String[]getParameterValues(String name)
    
public  StringgetPathInfo()
    
public  StringgetPathTranslated()
    
public  StringgetProtocol()
    
public  StringgetQueryString()
    
public  BufferedReadergetReader()
    
public  StringgetRealPath(String path)
    
public  StringgetRemoteAddr()
    
public  StringgetRemoteHost()
    
public  intgetRemotePort()
    
public  StringgetRemoteUser()
    
public  HttpServletRequestgetRequest()
    
public  RequestDispatchergetRequestDispatcher(String path)
    
public  StringgetRequestURI()
    
public  StringBuffergetRequestURL()
     This method returns null.
public  StringgetRequestedSessionId()
    
public  StringgetScheme()
    
public  StringgetServerName()
    
public  intgetServerPort()
    
public  StringgetServletPath()
    
public  HttpSessiongetSession(boolean create)
    
public  HttpSessiongetSession()
    
public  PrincipalgetUserPrincipal()
    
public  booleanisRequestedSessionIdFromCookie()
     This method returns false.
public  booleanisRequestedSessionIdFromURL()
    
public  booleanisRequestedSessionIdFromUrl()
    
public  booleanisRequestedSessionIdValid()
    
public  booleanisSecure()
    
public  booleanisUserInRole(String user)
    
public  voidremoveAttribute(String name)
    
public  voidsetAttribute(String name, Object o)
    
public  voidsetCharacterEncoding(String encoding)
     This method does nothing.
public  voidsetParameter(String name, String value)
     Sets a parameter for this request.

Field Detail
parameters
protected Map parameters(Code)
The parameters for this multipart request



request
protected HttpServletRequest request(Code)
The underlying HttpServletRequest




Constructor Detail
MultipartRequestWrapper
public MultipartRequestWrapper(HttpServletRequest request)(Code)




Method Detail
getAttribute
public Object getAttribute(String name)(Code)



getAttributeNames
public Enumeration getAttributeNames()(Code)



getAuthType
public String getAuthType()(Code)



getCharacterEncoding
public String getCharacterEncoding()(Code)



getContentLength
public int getContentLength()(Code)



getContentType
public String getContentType()(Code)



getContextPath
public String getContextPath()(Code)



getCookies
public Cookie[] getCookies()(Code)



getDateHeader
public long getDateHeader(String name)(Code)



getHeader
public String getHeader(String name)(Code)



getHeaderNames
public Enumeration getHeaderNames()(Code)



getHeaders
public Enumeration getHeaders(String name)(Code)



getInputStream
public ServletInputStream getInputStream() throws IOException(Code)



getIntHeader
public int getIntHeader(String name)(Code)



getLocalAddr
public String getLocalAddr()(Code)



getLocalName
public String getLocalName()(Code)



getLocalPort
public int getLocalPort()(Code)



getLocale
public Locale getLocale()(Code)



getLocales
public Enumeration getLocales()(Code)



getMethod
public String getMethod()(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



getParameterValues
public String[] getParameterValues(String name)(Code)



getPathInfo
public String getPathInfo()(Code)



getPathTranslated
public String getPathTranslated()(Code)



getProtocol
public String getProtocol()(Code)



getQueryString
public String getQueryString()(Code)



getReader
public BufferedReader getReader() throws IOException(Code)



getRealPath
public String getRealPath(String path)(Code)



getRemoteAddr
public String getRemoteAddr()(Code)



getRemoteHost
public String getRemoteHost()(Code)



getRemotePort
public int getRemotePort()(Code)



getRemoteUser
public String getRemoteUser()(Code)



getRequest
public HttpServletRequest getRequest()(Code)
Returns the underlying HttpServletRequest for this wrapper



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)(Code)



getRequestURI
public String getRequestURI()(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)



getScheme
public String getScheme()(Code)



getServerName
public String getServerName()(Code)



getServerPort
public int getServerPort()(Code)



getServletPath
public String getServletPath()(Code)



getSession
public HttpSession getSession(boolean create)(Code)



getSession
public HttpSession getSession()(Code)



getUserPrincipal
public Principal getUserPrincipal()(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)



isUserInRole
public boolean isUserInRole(String user)(Code)



removeAttribute
public void removeAttribute(String name)(Code)



setAttribute
public void setAttribute(String name, Object o)(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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.