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


java.lang.Object
   org.springframework.mock.web.portlet.MockPortletRequest

All known Subclasses:   org.springframework.mock.web.portlet.MockActionRequest,  org.springframework.mock.web.portlet.MockRenderRequest,
MockPortletRequest
public class MockPortletRequest implements PortletRequest(Code)
Mock implementation of the javax.portlet.PortletRequest interface.
author:
   John A. Lewis
author:
   Juergen Hoeller
since:
   2.0



Constructor Summary
public  MockPortletRequest()
     Create a new MockPortletRequest with a default MockPortalContext and a default MockPortletContext .
public  MockPortletRequest(PortletContext portletContext)
     Create a new MockPortletRequest with a default MockPortalContext .
public  MockPortletRequest(PortalContext portalContext, PortletContext portletContext)
     Create a new MockPortletRequest.

Method Summary
public  voidaddLocale(Locale locale)
    
public  voidaddParameter(String name, String value)
    
public  voidaddParameter(String name, String[] values)
    
public  voidaddPreferredLocale(Locale locale)
    
public  voidaddPreferredResponseContentType(String responseContentType)
    
public  voidaddProperty(String key, String value)
     Add a single value for the specified property.
public  voidaddResponseContentType(String responseContentType)
    
public  voidaddUserRole(String role)
    
protected  voidcheckActive()
     Check whether this request is still active (that is, not completed yet), throwing an IllegalStateException if not active anymore.
public  voidclose()
     Mark this request as completed.
public  ObjectgetAttribute(String name)
    
public  EnumerationgetAttributeNames()
    
public  StringgetAuthType()
    
public  StringgetContextPath()
    
public  LocalegetLocale()
    
public  EnumerationgetLocales()
    
public  StringgetParameter(String name)
    
public  MapgetParameterMap()
    
public  EnumerationgetParameterNames()
    
public  String[]getParameterValues(String name)
    
public  PortalContextgetPortalContext()
    
public  PortletModegetPortletMode()
    
public  PortletSessiongetPortletSession()
    
public  PortletSessiongetPortletSession(boolean create)
    
public  PortletPreferencesgetPreferences()
    
public  EnumerationgetProperties(String key)
    
public  StringgetProperty(String key)
    
public  EnumerationgetPropertyNames()
    
public  StringgetRemoteUser()
    
public  StringgetRequestedSessionId()
    
public  StringgetResponseContentType()
    
public  EnumerationgetResponseContentTypes()
    
public  StringgetScheme()
    
public  StringgetServerName()
    
public  intgetServerPort()
    
public  PrincipalgetUserPrincipal()
    
public  WindowStategetWindowState()
    
public  booleanisActive()
     Return whether this request is still active (that is, not completed yet).
public  booleanisPortletModeAllowed(PortletMode portletMode)
    
public  booleanisRequestedSessionIdValid()
    
public  booleanisSecure()
    
public  booleanisUserInRole(String role)
    
public  booleanisWindowStateAllowed(WindowState windowState)
    
public  voidremoveAttribute(String name)
    
public  voidsetAttribute(String name, Object value)
    
public  voidsetAuthType(String authType)
    
public  voidsetContextPath(String contextPath)
    
public  voidsetParameter(String key, String value)
    
public  voidsetParameter(String key, String[] values)
    
public  voidsetParameters(Map parameters)
    
public  voidsetPortletMode(PortletMode portletMode)
    
public  voidsetPreferences(PortletPreferences preferences)
    
public  voidsetProperty(String key, String value)
     Set a single value for the specified property.
public  voidsetRemoteUser(String remoteUser)
    
public  voidsetRequestedSessionIdValid(boolean requestedSessionIdValid)
    
public  voidsetScheme(String scheme)
    
public  voidsetSecure(boolean secure)
    
public  voidsetServerName(String serverName)
    
public  voidsetServerPort(int serverPort)
    
public  voidsetSession(PortletSession session)
    
public  voidsetUserPrincipal(Principal userPrincipal)
    
public  voidsetWindowState(WindowState windowState)
    


Constructor Detail
MockPortletRequest
public MockPortletRequest()(Code)
Create a new MockPortletRequest with a default MockPortalContext and a default MockPortletContext .
See Also:   MockPortalContext
See Also:   MockPortletContext



MockPortletRequest
public MockPortletRequest(PortletContext portletContext)(Code)
Create a new MockPortletRequest with a default MockPortalContext .
Parameters:
  portletContext - the PortletContext that the request runs in
See Also:   MockPortalContext



MockPortletRequest
public MockPortletRequest(PortalContext portalContext, PortletContext portletContext)(Code)
Create a new MockPortletRequest.
Parameters:
  portalContext - the PortalContext that the request runs in
Parameters:
  portletContext - the PortletContext that the request runs in




Method Detail
addLocale
public void addLocale(Locale locale)(Code)



addParameter
public void addParameter(String name, String value)(Code)



addParameter
public void addParameter(String name, String[] values)(Code)



addPreferredLocale
public void addPreferredLocale(Locale locale)(Code)



addPreferredResponseContentType
public void addPreferredResponseContentType(String responseContentType)(Code)



addProperty
public void addProperty(String key, String value)(Code)
Add a single value for the specified property.

If there are already one or more values registered for the given property key, the given value will be added to the end of the list.




addResponseContentType
public void addResponseContentType(String responseContentType)(Code)



addUserRole
public void addUserRole(String role)(Code)



checkActive
protected void checkActive() throws IllegalStateException(Code)
Check whether this request is still active (that is, not completed yet), throwing an IllegalStateException if not active anymore.



close
public void close()(Code)
Mark this request as completed.



getAttribute
public Object getAttribute(String name)(Code)



getAttributeNames
public Enumeration getAttributeNames()(Code)



getAuthType
public String getAuthType()(Code)



getContextPath
public String getContextPath()(Code)



getLocale
public Locale getLocale()(Code)



getLocales
public Enumeration getLocales()(Code)



getParameter
public String getParameter(String name)(Code)



getParameterMap
public Map getParameterMap()(Code)



getParameterNames
public Enumeration getParameterNames()(Code)



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



getPortalContext
public PortalContext getPortalContext()(Code)



getPortletMode
public PortletMode getPortletMode()(Code)



getPortletSession
public PortletSession getPortletSession()(Code)



getPortletSession
public PortletSession getPortletSession(boolean create)(Code)



getPreferences
public PortletPreferences getPreferences()(Code)



getProperties
public Enumeration getProperties(String key)(Code)



getProperty
public String getProperty(String key)(Code)



getPropertyNames
public Enumeration getPropertyNames()(Code)



getRemoteUser
public String getRemoteUser()(Code)



getRequestedSessionId
public String getRequestedSessionId()(Code)



getResponseContentType
public String getResponseContentType()(Code)



getResponseContentTypes
public Enumeration getResponseContentTypes()(Code)



getScheme
public String getScheme()(Code)



getServerName
public String getServerName()(Code)



getServerPort
public int getServerPort()(Code)



getUserPrincipal
public Principal getUserPrincipal()(Code)



getWindowState
public WindowState getWindowState()(Code)



isActive
public boolean isActive()(Code)
Return whether this request is still active (that is, not completed yet).



isPortletModeAllowed
public boolean isPortletModeAllowed(PortletMode portletMode)(Code)



isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()(Code)



isSecure
public boolean isSecure()(Code)



isUserInRole
public boolean isUserInRole(String role)(Code)



isWindowStateAllowed
public boolean isWindowStateAllowed(WindowState windowState)(Code)



removeAttribute
public void removeAttribute(String name)(Code)



setAttribute
public void setAttribute(String name, Object value)(Code)



setAuthType
public void setAuthType(String authType)(Code)



setContextPath
public void setContextPath(String contextPath)(Code)



setParameter
public void setParameter(String key, String value)(Code)



setParameter
public void setParameter(String key, String[] values)(Code)



setParameters
public void setParameters(Map parameters)(Code)



setPortletMode
public void setPortletMode(PortletMode portletMode)(Code)



setPreferences
public void setPreferences(PortletPreferences preferences)(Code)



setProperty
public void setProperty(String key, String value)(Code)
Set a single value for the specified property.

If there are already one or more values registered for the given property key, they will be replaced.




setRemoteUser
public void setRemoteUser(String remoteUser)(Code)



setRequestedSessionIdValid
public void setRequestedSessionIdValid(boolean requestedSessionIdValid)(Code)



setScheme
public void setScheme(String scheme)(Code)



setSecure
public void setSecure(boolean secure)(Code)



setServerName
public void setServerName(String serverName)(Code)



setServerPort
public void setServerPort(int serverPort)(Code)



setSession
public void setSession(PortletSession session)(Code)



setUserPrincipal
public void setUserPrincipal(Principal userPrincipal)(Code)



setWindowState
public void setWindowState(WindowState windowState)(Code)



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.