Source Code Cross Referenced for MockPortletRequest.java in  » Portal » jetspeed-2.1.3 » org » apache » jetspeed » mockobjects » 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 » Portal » jetspeed 2.1.3 » org.apache.jetspeed.mockobjects.portlet 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Licensed to the Apache Software Foundation (ASF) under one or more
003:         * contributor license agreements.  See the NOTICE file distributed with
004:         * this work for additional information regarding copyright ownership.
005:         * The ASF licenses this file to You under the Apache License, Version 2.0
006:         * (the "License"); you may not use this file except in compliance with
007:         * the License.  You may obtain a copy of the License at
008:         * 
009:         *      http://www.apache.org/licenses/LICENSE-2.0
010:         * 
011:         * Unless required by applicable law or agreed to in writing, software
012:         * distributed under the License is distributed on an "AS IS" BASIS,
013:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014:         * See the License for the specific language governing permissions and
015:         * limitations under the License.
016:         */
017:        package org.apache.jetspeed.mockobjects.portlet;
018:
019:        import java.security.Principal;
020:        import java.util.Enumeration;
021:        import java.util.Locale;
022:        import java.util.Map;
023:
024:        import javax.portlet.PortalContext;
025:        import javax.portlet.PortletMode;
026:        import javax.portlet.PortletPreferences;
027:        import javax.portlet.PortletRequest;
028:        import javax.portlet.PortletSession;
029:        import javax.portlet.WindowState;
030:
031:        /**
032:         * A mock portlet request, useful for unit testing and offline utilities
033:         * 
034:         * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
035:         * @version $Id: MockPortletRequest.java 516448 2007-03-09 16:25:47Z ate $
036:         */
037:        public class MockPortletRequest implements  PortletRequest {
038:            MockPortletSession session = null;
039:
040:            public MockPortletRequest() {
041:                session = new MockPortletSession();
042:            }
043:
044:            /* (non-Javadoc)
045:             * @see javax.portlet.PortletRequest#isWindowStateAllowed(javax.portlet.WindowState)
046:             */
047:            public boolean isWindowStateAllowed(WindowState state) {
048:                // TODO Auto-generated method stub
049:                return false;
050:            }
051:
052:            /* (non-Javadoc)
053:             * @see javax.portlet.PortletRequest#isPortletModeAllowed(javax.portlet.PortletMode)
054:             */
055:            public boolean isPortletModeAllowed(PortletMode mode) {
056:                // TODO Auto-generated method stub
057:                return false;
058:            }
059:
060:            /* (non-Javadoc)
061:             * @see javax.portlet.PortletRequest#getPortletMode()
062:             */
063:            public PortletMode getPortletMode() {
064:                // TODO Auto-generated method stub
065:                return null;
066:            }
067:
068:            /* (non-Javadoc)
069:             * @see javax.portlet.PortletRequest#getWindowState()
070:             */
071:            public WindowState getWindowState() {
072:                // TODO Auto-generated method stub
073:                return null;
074:            }
075:
076:            /* (non-Javadoc)
077:             * @see javax.portlet.PortletRequest#getPreferences()
078:             */
079:            public PortletPreferences getPreferences() {
080:                // TODO Auto-generated method stub
081:                return null;
082:            }
083:
084:            /* (non-Javadoc)
085:             * @see javax.portlet.PortletRequest#getPortletSession()
086:             */
087:            public PortletSession getPortletSession() {
088:                return session;
089:            }
090:
091:            /* (non-Javadoc)
092:             * @see javax.portlet.PortletRequest#getPortletSession(boolean)
093:             */
094:            public PortletSession getPortletSession(boolean create) {
095:                if (session == null) {
096:                    session = new MockPortletSession();
097:                }
098:                return session;
099:            }
100:
101:            /* (non-Javadoc)
102:             * @see javax.portlet.PortletRequest#getProperty(java.lang.String)
103:             */
104:            public String getProperty(String name) {
105:                // TODO Auto-generated method stub
106:                return null;
107:            }
108:
109:            /* (non-Javadoc)
110:             * @see javax.portlet.PortletRequest#getProperties(java.lang.String)
111:             */
112:            public Enumeration getProperties(String name) {
113:                // TODO Auto-generated method stub
114:                return null;
115:            }
116:
117:            /* (non-Javadoc)
118:             * @see javax.portlet.PortletRequest#getPropertyNames()
119:             */
120:            public Enumeration getPropertyNames() {
121:                // TODO Auto-generated method stub
122:                return null;
123:            }
124:
125:            /* (non-Javadoc)
126:             * @see javax.portlet.PortletRequest#getPortalContext()
127:             */
128:            public PortalContext getPortalContext() {
129:                // TODO Auto-generated method stub
130:                return null;
131:            }
132:
133:            /* (non-Javadoc)
134:             * @see javax.portlet.PortletRequest#getAuthType()
135:             */
136:            public String getAuthType() {
137:                // TODO Auto-generated method stub
138:                return null;
139:            }
140:
141:            /* (non-Javadoc)
142:             * @see javax.portlet.PortletRequest#getContextPath()
143:             */
144:            public String getContextPath() {
145:                // TODO Auto-generated method stub
146:                return null;
147:            }
148:
149:            /* (non-Javadoc)
150:             * @see javax.portlet.PortletRequest#getRemoteUser()
151:             */
152:            public String getRemoteUser() {
153:                // TODO Auto-generated method stub
154:                return null;
155:            }
156:
157:            /* (non-Javadoc)
158:             * @see javax.portlet.PortletRequest#getUserPrincipal()
159:             */
160:            public Principal getUserPrincipal() {
161:                // TODO Auto-generated method stub
162:                return null;
163:            }
164:
165:            /* (non-Javadoc)
166:             * @see javax.portlet.PortletRequest#isUserInRole(java.lang.String)
167:             */
168:            public boolean isUserInRole(String role) {
169:                // TODO Auto-generated method stub
170:                return false;
171:            }
172:
173:            /* (non-Javadoc)
174:             * @see javax.portlet.PortletRequest#getAttribute(java.lang.String)
175:             */
176:            public Object getAttribute(String name) {
177:                // TODO Auto-generated method stub
178:                return null;
179:            }
180:
181:            /* (non-Javadoc)
182:             * @see javax.portlet.PortletRequest#getAttributeNames()
183:             */
184:            public Enumeration getAttributeNames() {
185:                // TODO Auto-generated method stub
186:                return null;
187:            }
188:
189:            /* (non-Javadoc)
190:             * @see javax.portlet.PortletRequest#getParameter(java.lang.String)
191:             */
192:            public String getParameter(String name) {
193:                // TODO Auto-generated method stub
194:                return null;
195:            }
196:
197:            /* (non-Javadoc)
198:             * @see javax.portlet.PortletRequest#getParameterNames()
199:             */
200:            public Enumeration getParameterNames() {
201:                // TODO Auto-generated method stub
202:                return null;
203:            }
204:
205:            /* (non-Javadoc)
206:             * @see javax.portlet.PortletRequest#getParameterValues(java.lang.String)
207:             */
208:            public String[] getParameterValues(String name) {
209:                // TODO Auto-generated method stub
210:                return null;
211:            }
212:
213:            /* (non-Javadoc)
214:             * @see javax.portlet.PortletRequest#getParameterMap()
215:             */
216:            public Map getParameterMap() {
217:                // TODO Auto-generated method stub
218:                return null;
219:            }
220:
221:            /* (non-Javadoc)
222:             * @see javax.portlet.PortletRequest#isSecure()
223:             */
224:            public boolean isSecure() {
225:                // TODO Auto-generated method stub
226:                return false;
227:            }
228:
229:            /* (non-Javadoc)
230:             * @see javax.portlet.PortletRequest#setAttribute(java.lang.String, java.lang.Object)
231:             */
232:            public void setAttribute(String name, Object o) {
233:                // TODO Auto-generated method stub
234:            }
235:
236:            /* (non-Javadoc)
237:             * @see javax.portlet.PortletRequest#removeAttribute(java.lang.String)
238:             */
239:            public void removeAttribute(String name) {
240:                // TODO Auto-generated method stub
241:            }
242:
243:            /* (non-Javadoc)
244:             * @see javax.portlet.PortletRequest#getRequestedSessionId()
245:             */
246:            public String getRequestedSessionId() {
247:                // TODO Auto-generated method stub
248:                return null;
249:            }
250:
251:            /* (non-Javadoc)
252:             * @see javax.portlet.PortletRequest#isRequestedSessionIdValid()
253:             */
254:            public boolean isRequestedSessionIdValid() {
255:                // TODO Auto-generated method stub
256:                return false;
257:            }
258:
259:            /* (non-Javadoc)
260:             * @see javax.portlet.PortletRequest#getResponseContentType()
261:             */
262:            public String getResponseContentType() {
263:                // TODO Auto-generated method stub
264:                return null;
265:            }
266:
267:            /* (non-Javadoc)
268:             * @see javax.portlet.PortletRequest#getResponseContentTypes()
269:             */
270:            public Enumeration getResponseContentTypes() {
271:                // TODO Auto-generated method stub
272:                return null;
273:            }
274:
275:            /* (non-Javadoc)
276:             * @see javax.portlet.PortletRequest#getLocale()
277:             */
278:            public Locale getLocale() {
279:                // TODO Auto-generated method stub
280:                return null;
281:            }
282:
283:            /* (non-Javadoc)
284:             * @see javax.portlet.PortletRequest#getScheme()
285:             */
286:            public String getScheme() {
287:                // TODO Auto-generated method stub
288:                return null;
289:            }
290:
291:            /* (non-Javadoc)
292:             * @see javax.portlet.PortletRequest#getServerName()
293:             */
294:            public String getServerName() {
295:                // TODO Auto-generated method stub
296:                return null;
297:            }
298:
299:            /* (non-Javadoc)
300:             * @see javax.portlet.PortletRequest#getServerPort()
301:             */
302:            public int getServerPort() {
303:                // TODO Auto-generated method stub
304:                return 0;
305:            }
306:
307:            public Enumeration getLocales() {
308:                return null;
309:            }
310:
311:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.