Java Doc for MockMultipartHttpServletRequest.java in  » J2EE » spring-framework-2.0.6 » org » springframework » mock » web » 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 » J2EE » spring framework 2.0.6 » org.springframework.mock.web 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.springframework.mock.web.MockHttpServletRequest
      org.springframework.mock.web.MockMultipartHttpServletRequest

MockMultipartHttpServletRequest
public class MockMultipartHttpServletRequest extends MockHttpServletRequest implements MultipartHttpServletRequest(Code)
Mock implementation of the org.springframework.web.multipart.MultipartHttpServletRequest interface.

Useful for testing application controllers that access multipart uploads. The MockMultipartFile can be used to populate these mock requests with files.
author:
   Juergen Hoeller
author:
   Eric Crampton
since:
   2.0
See Also:   MockMultipartFile





Method Summary
public  voidaddFile(MultipartFile file)
     Add a file to this request.
public  MultipartFilegetFile(String name)
    
public  MapgetFileMap()
    
public  IteratorgetFileNames()
    



Method Detail
addFile
public void addFile(MultipartFile file)(Code)
Add a file to this request. The parameter name from the multipart form is taken from the MultipartFile.getName .
Parameters:
  file - multipart file to be added



getFile
public MultipartFile getFile(String name)(Code)



getFileMap
public Map getFileMap()(Code)



getFileNames
public Iterator getFileNames()(Code)



Fields inherited from org.springframework.mock.web.MockHttpServletRequest
final public static String DEFAULT_PROTOCOL(Code)(Java Doc)
final public static String DEFAULT_REMOTE_ADDR(Code)(Java Doc)
final public static String DEFAULT_REMOTE_HOST(Code)(Java Doc)
final public static String DEFAULT_SERVER_ADDR(Code)(Java Doc)
final public static String DEFAULT_SERVER_NAME(Code)(Java Doc)
final public static int DEFAULT_SERVER_PORT(Code)(Java Doc)

Methods inherited from org.springframework.mock.web.MockHttpServletRequest
public void addHeader(String name, Object value)(Code)(Java Doc)
public void addParameter(String name, String value)(Code)(Java Doc)
public void addParameter(String name, String[] values)(Code)(Java Doc)
public void addPreferredLocale(Locale locale)(Code)(Java Doc)
public void addRole(String role)(Code)(Java Doc)
public void addUserRole(String role)(Code)(Java Doc)
protected void checkActive() throws IllegalStateException(Code)(Java Doc)
public void clearAttributes()(Code)(Java Doc)
public void close()(Code)(Java Doc)
public Object getAttribute(String name)(Code)(Java Doc)
public Enumeration getAttributeNames()(Code)(Java Doc)
public String getAuthType()(Code)(Java Doc)
public String getCharacterEncoding()(Code)(Java Doc)
public int getContentLength()(Code)(Java Doc)
public String getContentType()(Code)(Java Doc)
public String getContextPath()(Code)(Java Doc)
public Cookie[] getCookies()(Code)(Java Doc)
public long getDateHeader(String name)(Code)(Java Doc)
public String getHeader(String name)(Code)(Java Doc)
public Enumeration getHeaderNames()(Code)(Java Doc)
public Enumeration getHeaders(String name)(Code)(Java Doc)
public ServletInputStream getInputStream()(Code)(Java Doc)
public int getIntHeader(String name)(Code)(Java Doc)
public String getLocalAddr()(Code)(Java Doc)
public String getLocalName()(Code)(Java Doc)
public int getLocalPort()(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public Enumeration getLocales()(Code)(Java Doc)
public String getMethod()(Code)(Java Doc)
public String getParameter(String name)(Code)(Java Doc)
public Map getParameterMap()(Code)(Java Doc)
public Enumeration getParameterNames()(Code)(Java Doc)
public String[] getParameterValues(String name)(Code)(Java Doc)
public String getPathInfo()(Code)(Java Doc)
public String getPathTranslated()(Code)(Java Doc)
public String getProtocol()(Code)(Java Doc)
public String getQueryString()(Code)(Java Doc)
public BufferedReader getReader() throws UnsupportedEncodingException(Code)(Java Doc)
public String getRealPath(String path)(Code)(Java Doc)
public String getRemoteAddr()(Code)(Java Doc)
public String getRemoteHost()(Code)(Java Doc)
public int getRemotePort()(Code)(Java Doc)
public String getRemoteUser()(Code)(Java Doc)
public RequestDispatcher getRequestDispatcher(String path)(Code)(Java Doc)
public String getRequestURI()(Code)(Java Doc)
public StringBuffer getRequestURL()(Code)(Java Doc)
public String getRequestedSessionId()(Code)(Java Doc)
public String getScheme()(Code)(Java Doc)
public String getServerName()(Code)(Java Doc)
public int getServerPort()(Code)(Java Doc)
public String getServletPath()(Code)(Java Doc)
public HttpSession getSession(boolean create)(Code)(Java Doc)
public HttpSession getSession()(Code)(Java Doc)
public Principal getUserPrincipal()(Code)(Java Doc)
public void invalidate()(Code)(Java Doc)
public boolean isActive()(Code)(Java Doc)
public boolean isRequestedSessionIdFromCookie()(Code)(Java Doc)
public boolean isRequestedSessionIdFromURL()(Code)(Java Doc)
public boolean isRequestedSessionIdFromUrl()(Code)(Java Doc)
public boolean isRequestedSessionIdValid()(Code)(Java Doc)
public boolean isSecure()(Code)(Java Doc)
public boolean isUserInRole(String role)(Code)(Java Doc)
public void removeAttribute(String name)(Code)(Java Doc)
public void removeParameter(String name)(Code)(Java Doc)
public void setAttribute(String name, Object value)(Code)(Java Doc)
public void setAuthType(String authType)(Code)(Java Doc)
public void setCharacterEncoding(String characterEncoding)(Code)(Java Doc)
public void setContent(byte[] content)(Code)(Java Doc)
public void setContentType(String contentType)(Code)(Java Doc)
public void setContextPath(String contextPath)(Code)(Java Doc)
public void setCookies(Cookie[] cookies)(Code)(Java Doc)
public void setLocalAddr(String localAddr)(Code)(Java Doc)
public void setLocalName(String localName)(Code)(Java Doc)
public void setLocalPort(int localPort)(Code)(Java Doc)
public void setMethod(String method)(Code)(Java Doc)
public void setParameter(String name, String value)(Code)(Java Doc)
public void setParameter(String name, String[] values)(Code)(Java Doc)
public void setPathInfo(String pathInfo)(Code)(Java Doc)
public void setProtocol(String protocol)(Code)(Java Doc)
public void setQueryString(String queryString)(Code)(Java Doc)
public void setRemoteAddr(String remoteAddr)(Code)(Java Doc)
public void setRemoteHost(String remoteHost)(Code)(Java Doc)
public void setRemotePort(int remotePort)(Code)(Java Doc)
public void setRemoteUser(String remoteUser)(Code)(Java Doc)
public void setRequestURI(String requestURI)(Code)(Java Doc)
public void setRequestedSessionIdFromCookie(boolean requestedSessionIdFromCookie)(Code)(Java Doc)
public void setRequestedSessionIdFromURL(boolean requestedSessionIdFromURL)(Code)(Java Doc)
public void setRequestedSessionIdValid(boolean requestedSessionIdValid)(Code)(Java Doc)
public void setScheme(String scheme)(Code)(Java Doc)
public void setSecure(boolean secure)(Code)(Java Doc)
public void setServerName(String serverName)(Code)(Java Doc)
public void setServerPort(int serverPort)(Code)(Java Doc)
public void setServletPath(String servletPath)(Code)(Java Doc)
public void setSession(HttpSession session)(Code)(Java Doc)
public void setUserPrincipal(Principal userPrincipal)(Code)(Java Doc)

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.