Source Code Cross Referenced for UserModuleURLMapHandler.java in  » Forum » mvnforum-1.1 » com » mvnforum » user » 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 » Forum » mvnforum 1.1 » com.mvnforum.user 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/user/UserModuleURLMapHandler.java,v 1.96 2008/01/21 03:53:12 tbtrung Exp $
003:         * $Author: tbtrung $
004:         * $Revision: 1.96 $
005:         * $Date: 2008/01/21 03:53:12 $
006:         *
007:         * ====================================================================
008:         *
009:         * Copyright (C) 2002-2007 by MyVietnam.net
010:         *
011:         * All copyright notices regarding mvnForum MUST remain
012:         * intact in the scripts and in the outputted HTML.
013:         * The "powered by" text/logo with a link back to
014:         * http://www.mvnForum.com and http://www.MyVietnam.net in
015:         * the footer of the pages MUST remain visible when the pages
016:         * are viewed on the internet or intranet.
017:         *
018:         * This program is free software; you can redistribute it and/or modify
019:         * it under the terms of the GNU General Public License as published by
020:         * the Free Software Foundation; either version 2 of the License, or
021:         * any later version.
022:         *
023:         * This program is distributed in the hope that it will be useful,
024:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
025:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
026:         * GNU General Public License for more details.
027:         *
028:         * You should have received a copy of the GNU General Public License
029:         * along with this program; if not, write to the Free Software
030:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
031:         *
032:         * Support can be obtained from support forums at:
033:         * http://www.mvnForum.com/mvnforum/index
034:         *
035:         * Correspondence and Marketing Questions can be sent to:
036:         * info at MyVietnam net
037:         *
038:         * @author: Minh Nguyen
039:         * @author: Mai  Nguyen
040:         */
041:        package com.mvnforum.user;
042:
043:        import java.util.Locale;
044:
045:        import net.myvietnam.mvncore.exception.MissingURLMapEntryException;
046:        import net.myvietnam.mvncore.mvnframework.URLMap;
047:        import net.myvietnam.mvncore.util.*;
048:        import net.myvietnam.mvncore.web.GenericRequest;
049:
050:        import com.mvnforum.MVNForumConfig;
051:        import com.mvnforum.MVNForumResourceBundle;
052:        import com.mvnforum.MyUtil;
053:
054:        public class UserModuleURLMapHandler {
055:
056:            public UserModuleURLMapHandler() {
057:            }
058:
059:            /**
060:             * We must pass the requestURI to this method, instead of from request,
061:             * because requestURI may be changed from Processor before call this method
062:             * NOTE: Currently we dont use the param request
063:             */
064:            public URLMap getMap(String requestURI, GenericRequest request,
065:                    String localeName) throws MissingURLMapEntryException {
066:
067:                //localeName = MyUtil.getLocaleNameAndSlash(localeName);
068:                URLMap map = new URLMap();
069:
070:                String userModuleJSPDirectory = "user";
071:                if (MyUtil.isRequestFromMobileDevice(request)) {
072:                    userModuleJSPDirectory = "user_xhtml";
073:                }
074:
075:                if (requestURI.equals("/error")) {
076:                    map.setResponse("/mvnplugin/mvnforum/"
077:                            + userModuleJSPDirectory + "/error.jsp");
078:                } else if (requestURI.equals("") || requestURI.equals("/")) {
079:                    map
080:                            .setResponse(UserModuleConfig.getUrlPattern()
081:                                    + "/index");
082:                } else if (requestURI.equals("/index")) {
083:                    if (MVNForumConfig.getEnablePortalLikeIndexPage()) {
084:                        map.setResponse("/mvnplugin/mvnforum/"
085:                                + userModuleJSPDirectory + "/index.jsp");//index.jsp
086:                    } else {
087:                        map.setResponse("/mvnplugin/mvnforum/"
088:                                + userModuleJSPDirectory + "/listforums.jsp");//index.jsp
089:                    }
090:                } else if (requestURI.equals("/listonlineusers")) {
091:                    map.setResponse("/mvnplugin/mvnforum/"
092:                            + userModuleJSPDirectory + "/listonlineusers.jsp");
093:
094:                } else if (requestURI.equals("/listforums")) {
095:                    map.setResponse("/mvnplugin/mvnforum/"
096:                            + userModuleJSPDirectory + "/listforums.jsp");
097:                } else if (requestURI.equals("/listthreads")) {
098:                    map.setResponse("/mvnplugin/mvnforum/"
099:                            + userModuleJSPDirectory + "/listthreads.jsp");
100:                } else if (requestURI.equals("/listunansweredthreads")) {
101:                    map.setResponse("/mvnplugin/mvnforum/"
102:                            + userModuleJSPDirectory
103:                            + "/listunansweredthreads.jsp");
104:                } else if (requestURI.equals("/listrecentthreads")) {
105:                    map
106:                            .setResponse("/mvnplugin/mvnforum/"
107:                                    + userModuleJSPDirectory
108:                                    + "/listrecentthreads.jsp");
109:
110:                } else if (requestURI.equals("/addpost")) {
111:                    map.setResponse("/mvnplugin/mvnforum/"
112:                            + userModuleJSPDirectory + "/addpost.jsp");
113:                } else if (requestURI.equals("/addpostprocess")) {
114:                    map.setResponse("/mvnplugin/mvnforum/"
115:                            + userModuleJSPDirectory + "/addpostsuccess.jsp");
116:                } else if (requestURI.equals("/editpost")) {
117:                    map.setResponse("/mvnplugin/mvnforum/"
118:                            + userModuleJSPDirectory + "/addpost.jsp");//editpost.jsp
119:                } else if (requestURI.equals("/updatepost")) {
120:                    map
121:                            .setResponse("/mvnplugin/mvnforum/"
122:                                    + userModuleJSPDirectory
123:                                    + "/updatepostsuccess.jsp");
124:                } else if (requestURI.equals("/printpost")) {
125:                    map.setResponse("/mvnplugin/mvnforum/"
126:                            + userModuleJSPDirectory + "/printpost.jsp");
127:                } else if (requestURI.equals("/deletepost")) {
128:                    map.setResponse("/mvnplugin/mvnforum/"
129:                            + userModuleJSPDirectory + "/deletepost.jsp");
130:                } else if (requestURI.equals("/deletepostprocess")) {
131:                    map
132:                            .setResponse("/mvnplugin/mvnforum/"
133:                                    + userModuleJSPDirectory
134:                                    + "/deletepostsuccess.jsp");
135:
136:                } else if (requestURI.equals("/addattachment")) {
137:                    map.setResponse("/mvnplugin/mvnforum/"
138:                            + userModuleJSPDirectory + "/addattachment.jsp");
139:                } else if (requestURI.equals("/addattachmentprocess")) {
140:                    map.setResponse("/mvnplugin/mvnforum/"
141:                            + userModuleJSPDirectory
142:                            + "/addattachmentsuccess.jsp");
143:                } else if (requestURI.equals("/deleteattachment")) {
144:                    map.setResponse("/mvnplugin/mvnforum/"
145:                            + userModuleJSPDirectory + "/deleteattachment.jsp");
146:                } else if (requestURI.equals("/deleteattachmentprocess")) {
147:                    map.setResponse("/mvnplugin/mvnforum/"
148:                            + userModuleJSPDirectory
149:                            + "/deleteattachmentsuccess.jsp");
150:                } else if (requestURI.equals("/editattachment")) {
151:                    map.setResponse("/mvnplugin/mvnforum/"
152:                            + userModuleJSPDirectory + "/editattachment.jsp");
153:                } else if (requestURI.equals("/editattachmentprocess")) {
154:                    map.setResponse("/mvnplugin/mvnforum/"
155:                            + userModuleJSPDirectory
156:                            + "/editattachmentsuccess.jsp");
157:                } else if (requestURI.equals("/listattachments")) {
158:                    map.setResponse("/mvnplugin/mvnforum/"
159:                            + userModuleJSPDirectory + "/listattachments.jsp");
160:
161:                } else if (requestURI.equals("/viewthread")) {
162:                    map.setResponse("/mvnplugin/mvnforum/"
163:                            + userModuleJSPDirectory + "/viewthread.jsp");
164:                } else if (requestURI.equals("/printthread")) {
165:                    map.setResponse("/mvnplugin/mvnforum/"
166:                            + userModuleJSPDirectory + "/printthread.jsp");
167:
168:                } else if (requestURI.equals("/modcp")) {
169:                    map.setResponse("/mvnplugin/mvnforum/"
170:                            + userModuleJSPDirectory + "/modcp.jsp");
171:                } else if (requestURI.equals("/listrecentpendingthreads")) {
172:                    map.setResponse("/mvnplugin/mvnforum/"
173:                            + userModuleJSPDirectory
174:                            + "/listrecentpendingthreads.jsp");
175:                } else if (requestURI.equals("/listthreadswithpendingposts")) {
176:                    map.setResponse("/mvnplugin/mvnforum/"
177:                            + userModuleJSPDirectory
178:                            + "/listthreadswithpendingposts.jsp");
179:                } else if (requestURI
180:                        .equals("/listrecentthreadswithpendingposts")) {
181:                    map.setResponse("/mvnplugin/mvnforum/"
182:                            + userModuleJSPDirectory
183:                            + "/listrecentthreadswithpendingposts.jsp");
184:                } else if (requestURI.equals("/moderatependingthreads")) {
185:                    map.setResponse("/mvnplugin/mvnforum/"
186:                            + userModuleJSPDirectory
187:                            + "/moderatependingthreads.jsp");
188:                } else if (requestURI.equals("/moderatependingthreadsprocess")) {
189:                    map.setResponse("/mvnplugin/mvnforum/"
190:                            + userModuleJSPDirectory
191:                            + "/moderatependingthreadssuccess.jsp");
192:                } else if (requestURI.equals("/moderatependingposts")) {
193:                    map.setResponse("/mvnplugin/mvnforum/"
194:                            + userModuleJSPDirectory
195:                            + "/moderatependingposts.jsp");
196:                } else if (requestURI.equals("/moderatependingpostsprocess")) {
197:                    map.setResponse("/mvnplugin/mvnforum/"
198:                            + userModuleJSPDirectory
199:                            + "/moderatependingpostssuccess.jsp");
200:
201:                } else if (requestURI.equals("/listpendingthreadsxml")) {
202:                    map.setResponse("/mvnplugin/mvnforum/"
203:                            + userModuleJSPDirectory
204:                            + "/listpendingthreadsxml.jsp");
205:
206:                } else if (requestURI.equals("/splitthread")) {
207:                    map.setResponse("/mvnplugin/mvnforum/"
208:                            + userModuleJSPDirectory + "/splitthread.jsp");
209:                } else if (requestURI.equals("/splitthreadprocess")) {
210:                    map.setResponse("/mvnplugin/mvnforum/"
211:                            + userModuleJSPDirectory
212:                            + "/splitthreadsuccess.jsp");
213:
214:                } else if (requestURI.equals("/deletethread")) {
215:                    map.setResponse("/mvnplugin/mvnforum/"
216:                            + userModuleJSPDirectory + "/deletethread.jsp");
217:                } else if (requestURI.equals("/deletethreadprocess")) {
218:                    map.setResponse("/mvnplugin/mvnforum/"
219:                            + userModuleJSPDirectory
220:                            + "/deletethreadsuccess.jsp");
221:
222:                } else if (requestURI.equals("/editthreadstatus")) {
223:                    map.setResponse("/mvnplugin/mvnforum/"
224:                            + userModuleJSPDirectory + "/editthreadstatus.jsp");
225:                } else if (requestURI.equals("/editthreadstatusprocess")) {
226:                    map.setResponse("/mvnplugin/mvnforum/"
227:                            + userModuleJSPDirectory
228:                            + "/editthreadstatussuccess.jsp");
229:                } else if (requestURI.equals("/editthreadtype")) {
230:                    map.setResponse("/mvnplugin/mvnforum/"
231:                            + userModuleJSPDirectory + "/editthreadtype.jsp");
232:                } else if (requestURI.equals("/editthreadtypeprocess")) {
233:                    map.setResponse("/mvnplugin/mvnforum/"
234:                            + userModuleJSPDirectory
235:                            + "/editthreadtypesuccess.jsp");
236:
237:                } else if (requestURI.equals("/movethread")) {
238:                    map.setResponse("/mvnplugin/mvnforum/"
239:                            + userModuleJSPDirectory + "/movethread.jsp");
240:                } else if (requestURI.equals("/movethreadprocess")) {
241:                    map
242:                            .setResponse("/mvnplugin/mvnforum/"
243:                                    + userModuleJSPDirectory
244:                                    + "/movethreadsuccess.jsp");
245:
246:                } else if (requestURI.equals("/viewmember")) {
247:                    map.setResponse("/mvnplugin/mvnforum/"
248:                            + userModuleJSPDirectory + "/viewmember.jsp");
249:                } else if (requestURI.equals("/listmembers")) {
250:                    map.setResponse("/mvnplugin/mvnforum/"
251:                            + userModuleJSPDirectory + "/listmembers.jsp");
252:                } else if (requestURI.equals("/editmember")) {
253:                    map.setResponse("/mvnplugin/mvnforum/"
254:                            + userModuleJSPDirectory + "/editmember.jsp");
255:                } else if (requestURI.equals("/updatemember")) {
256:                    map.setResponse("/mvnplugin/mvnforum/"
257:                            + userModuleJSPDirectory
258:                            + "/updatemembersuccess.jsp");
259:
260:                } else if (requestURI.equals("/login")) {
261:                    map.setResponse("/mvnplugin/mvnforum/"
262:                            + userModuleJSPDirectory + "/login.jsp");
263:                } else if (requestURI.equals("/loginprocess")) {
264:                    //map.setResponse("/mvnplugin/mvnforum/user/loginsuccess.jsp");
265:                    map
266:                            .setResponse(UserModuleConfig.getUrlPattern()
267:                                    + "/index");
268:                } else if (requestURI.equals("/logout")) {
269:                    map.setResponse("/mvnplugin/mvnforum/"
270:                            + userModuleJSPDirectory + "/login.jsp");
271:                } else if (requestURI.equals("/deletecookieprocess")) {
272:                    map.setResponse("/mvnplugin/mvnforum/"
273:                            + userModuleJSPDirectory
274:                            + "/deletecookiesuccess.jsp");
275:
276:                } else if (requestURI.equals("/rsssummary")) {
277:                    map.setResponse("/mvnplugin/mvnforum/"
278:                            + userModuleJSPDirectory + "/rsssummary.jsp");
279:                } else if (requestURI.equals("/atom")) {
280:                    map.setResponse("/mvnplugin/mvnforum/"
281:                            + userModuleJSPDirectory + "/atom.jsp");
282:                } else if (requestURI.equals("/rss")) {
283:                    map.setResponse("/mvnplugin/mvnforum/"
284:                            + userModuleJSPDirectory + "/rss.jsp");
285:                } else if (requestURI.equals("/rss2")) {
286:                    map.setResponse("/mvnplugin/mvnforum/"
287:                            + userModuleJSPDirectory + "/rss2.jsp");
288:
289:                } else if (requestURI.equals("/help")) {
290:                    map.setResponse("/mvnplugin/mvnforum/"
291:                            + userModuleJSPDirectory + "/help.jsp");
292:                } else if (requestURI.equals("/helpintro")) {
293:                    map.setResponse("/mvnplugin/mvnforum/docs/intro.html");
294:                } else if (requestURI.equals("/helpinstall")) {
295:                    map.setResponse("/mvnplugin/mvnforum/docs/install.html");
296:                } else if (requestURI.equals("/helpuser")) {
297:                    map.setResponse("/mvnplugin/mvnforum/docs/user.html");
298:                } else if (requestURI.equals("/helpadmin")) {
299:                    map.setResponse("/mvnplugin/mvnforum/docs/admin.html");
300:                } else if (requestURI.equals("/helpdeveloper")) {
301:                    map.setResponse("/mvnplugin/mvnforum/docs/developer.html");
302:                } else if (requestURI.equals("/faq")) {
303:                    map.setResponse("/mvnplugin/mvnforum/docs/faq.html");
304:
305:                } else if (requestURI.equals("/search")) {
306:                    map.setResponse("/mvnplugin/mvnforum/"
307:                            + userModuleJSPDirectory + "/search.jsp");
308:                } else if (requestURI.equals("/searchmember")) {
309:                    map.setResponse("/mvnplugin/mvnforum/"
310:                            + userModuleJSPDirectory + "/searchmember.jsp");
311:                } else if (requestURI.equals("/registermember")) {
312:                    boolean agree = GenericParamUtil.getParameterBoolean(
313:                            request, "agree");
314:                    if ((MVNForumConfig.getEnableRegisterRule() == false)
315:                            || (agree == true)) {
316:                        map.setResponse("/mvnplugin/mvnforum/"
317:                                + userModuleJSPDirectory + "/addmember.jsp");
318:                    } else {
319:                        map.setResponse("/mvnplugin/mvnforum/"
320:                                + userModuleJSPDirectory + "/viewrule.jsp");
321:                    }
322:                } else if (requestURI.equals("/registermemberprocess")) {
323:                    map.setResponse("/mvnplugin/mvnforum/"
324:                            + userModuleJSPDirectory + "/addmembersuccess.jsp");
325:
326:                } else if (requestURI.equals("/searchattachments")) {
327:                    map
328:                            .setResponse("/mvnplugin/mvnforum/"
329:                                    + userModuleJSPDirectory
330:                                    + "/searchattachments.jsp");
331:
332:                } else if (requestURI.equals("/myprofile")) {
333:                    map.setResponse("/mvnplugin/mvnforum/"
334:                            + userModuleJSPDirectory + "/myprofile.jsp");
335:                } else if (requestURI.equals("/changemypassword")) {
336:                    map.setResponse("/mvnplugin/mvnforum/"
337:                            + userModuleJSPDirectory + "/changemypassword.jsp");
338:                } else if (requestURI.equals("/changemypasswordprocess")) {
339:                    map.setResponse("/mvnplugin/mvnforum/"
340:                            + userModuleJSPDirectory
341:                            + "/changemypasswordsuccess.jsp");
342:                } else if (requestURI.equals("/changeemail")) {
343:                    map.setResponse("/mvnplugin/mvnforum/"
344:                            + userModuleJSPDirectory + "/changeemail.jsp");
345:                } else if (requestURI.equals("/changeemailprocess")) {
346:                    map.setResponse("/mvnplugin/mvnforum/"
347:                            + userModuleJSPDirectory
348:                            + "/changeemailsuccess.jsp");
349:                } else if (requestURI.equals("/changesignature")) {
350:                    map.setResponse("/mvnplugin/mvnforum/"
351:                            + userModuleJSPDirectory + "/changesignature.jsp");
352:                } else if (requestURI.equals("/changesignatureprocess")) {
353:                    map.setResponse("/mvnplugin/mvnforum/"
354:                            + userModuleJSPDirectory
355:                            + "/changesignaturesuccess.jsp");
356:
357:                } else if (requestURI.equals("/changeavatar")) {
358:                    map.setResponse("/mvnplugin/mvnforum/"
359:                            + userModuleJSPDirectory + "/changeavatar.jsp");
360:                } else if (requestURI.equals("/uploadavatar")) {
361:                    map.setResponse(UserModuleConfig.getUrlPattern()
362:                            + "/myprofile");
363:                } else if (requestURI.equals("/updateavatar")) {
364:                    map.setResponse(UserModuleConfig.getUrlPattern()
365:                            + "/myprofile");
366:                } else if (requestURI.equals("/mywatch")) {
367:                    map.setResponse("/mvnplugin/mvnforum/"
368:                            + userModuleJSPDirectory + "/mywatch.jsp");
369:                } else if (requestURI.equals("/addwatch")) {
370:                    map.setResponse("/mvnplugin/mvnforum/"
371:                            + userModuleJSPDirectory + "/addwatch.jsp");
372:                } else if (requestURI.equals("/addwatchprocess")) {
373:                    map.setResponse("/mvnplugin/mvnforum/"
374:                            + userModuleJSPDirectory + "/addwatchsuccess.jsp");
375:                } else if (requestURI.equals("/deletewatchprocess")) {
376:                    map.setResponse("/mvnplugin/mvnforum/"
377:                            + userModuleJSPDirectory
378:                            + "/deletewatchsuccess.jsp");
379:                } else if (requestURI.equals("/editwatch")) {
380:                    map.setResponse("/mvnplugin/mvnforum/"
381:                            + userModuleJSPDirectory + "/editwatch.jsp");
382:                } else if (requestURI.equals("/editwatchprocess")) {
383:                    map.setResponse("/mvnplugin/mvnforum/"
384:                            + userModuleJSPDirectory + "/editwatchsuccess.jsp");
385:
386:                } else if (requestURI.equals("/mymessage")) {
387:                    map.setResponse("/mvnplugin/mvnforum/"
388:                            + userModuleJSPDirectory + "/mymessage.jsp");
389:                } else if (requestURI.equals("/addmessage")) {
390:                    map.setResponse("/mvnplugin/mvnforum/"
391:                            + userModuleJSPDirectory + "/addmessage.jsp");
392:                } else if (requestURI.equals("/addmessageprocess")) {
393:                    map
394:                            .setResponse("/mvnplugin/mvnforum/"
395:                                    + userModuleJSPDirectory
396:                                    + "/addmessagesuccess.jsp");
397:                } else if (requestURI.equals("/sendmail")) {
398:                    map.setResponse("/mvnplugin/mvnforum/"
399:                            + userModuleJSPDirectory + "/sendmail.jsp");
400:                } else if (requestURI.equals("/sendmailprocess")) {
401:                    map.setResponse("/mvnplugin/mvnforum/"
402:                            + userModuleJSPDirectory + "/sendmailsuccess.jsp");
403:                } else if (requestURI.equals("/viewmessage")) {
404:                    map.setResponse("/mvnplugin/mvnforum/"
405:                            + userModuleJSPDirectory + "/viewmessage.jsp");
406:                } else if (requestURI.equals("/sendmessageprocess")) {
407:                    map
408:                            .setResponse("/mvnplugin/mvnforum/"
409:                                    + userModuleJSPDirectory
410:                                    + "/addmessagesuccess.jsp");
411:                } else if (requestURI.equals("/deletemessageprocess")) {
412:                    map.setResponse("/mvnplugin/mvnforum/"
413:                            + userModuleJSPDirectory
414:                            + "/deletemessagesuccess.jsp");
415:                } else if (requestURI.equals("/processmessage")) {
416:                    map.setResponse("/mvnplugin/mvnforum/"
417:                            + userModuleJSPDirectory
418:                            + "/processmessagesuccess.jsp");
419:                } else if (requestURI.equals("/addmessageattachment")) {
420:                    map.setResponse("/mvnplugin/mvnforum/"
421:                            + userModuleJSPDirectory
422:                            + "/addmessageattachment.jsp");
423:                } else if (requestURI.equals("/addmessageattachmentprocess")) {
424:                    map.setResponse("/mvnplugin/mvnforum/"
425:                            + userModuleJSPDirectory
426:                            + "/addmessageattachmentsuccess.jsp");
427:
428:                } else if (requestURI.equals("/mymessagefolder")) {
429:                    map.setResponse("/mvnplugin/mvnforum/"
430:                            + userModuleJSPDirectory + "/mymessagefolder.jsp");
431:                } else if (requestURI.equals("/addmessagefolder")) {
432:                    map.setResponse("/mvnplugin/mvnforum/"
433:                            + userModuleJSPDirectory + "/addmessagefolder.jsp");
434:                } else if (requestURI.equals("/addmessagefolderprocess")) {
435:                    map.setResponse("/mvnplugin/mvnforum/"
436:                            + userModuleJSPDirectory
437:                            + "/addmessagefoldersuccess.jsp");
438:                } else if (requestURI.equals("/deletemessagefolder")) {
439:                    map.setResponse("/mvnplugin/mvnforum/"
440:                            + userModuleJSPDirectory
441:                            + "/deletemessagefolder.jsp");
442:                } else if (requestURI.equals("/deletemessagefolderprocess")) {
443:                    map.setResponse("/mvnplugin/mvnforum/"
444:                            + userModuleJSPDirectory
445:                            + "/deletemessagefoldersuccess.jsp");
446:                } else if (requestURI.equals("/updatefolderorder")) {
447:                    map.setResponse(UserModuleConfig.getUrlPattern()
448:                            + "/mymessagefolder");
449:
450:                } else if (requestURI.equals("/myfavoritethread")) {
451:                    map.setResponse("/mvnplugin/mvnforum/"
452:                            + userModuleJSPDirectory + "/myfavoritethread.jsp");
453:                } else if (requestURI.equals("/addfavoritethreadprocess")) {
454:                    map.setResponse("/mvnplugin/mvnforum/"
455:                            + userModuleJSPDirectory
456:                            + "/addfavoritethreadsuccess.jsp");
457:                } else if (requestURI.equals("/deletefavoritethreadprocess")) {
458:                    map.setResponse("/mvnplugin/mvnforum/"
459:                            + userModuleJSPDirectory
460:                            + "/deletefavoritethreadsuccess.jsp");
461:
462:                } else if (requestURI.equals("/iforgotpasswords")) {
463:                    map.setResponse("/mvnplugin/mvnforum/"
464:                            + userModuleJSPDirectory + "/forgotpassword.jsp");
465:                } else if (requestURI.equals("/forgotpasswordprocess")) {
466:                    map.setResponse("/mvnplugin/mvnforum/"
467:                            + userModuleJSPDirectory
468:                            + "/forgotpasswordsuccess.jsp");
469:                } else if (requestURI.equals("/resetpassword")) {
470:                    map.setResponse("/mvnplugin/mvnforum/"
471:                            + userModuleJSPDirectory + "/resetpassword.jsp");
472:                } else if (requestURI.equals("/resetpasswordprocess")) {
473:                    map.setResponse("/mvnplugin/mvnforum/"
474:                            + userModuleJSPDirectory
475:                            + "/resetpasswordsuccess.jsp");
476:                } else if (requestURI.equals("/bbcode")) {
477:                    map.setResponse("/mvnplugin/mvnforum/"
478:                            + userModuleJSPDirectory + "/bbcode.jsp");
479:
480:                } else if (requestURI.equals("/sendactivationcode")) {
481:                    map.setResponse("/mvnplugin/mvnforum/"
482:                            + userModuleJSPDirectory
483:                            + "/sendactivationcode.jsp");
484:                } else if (requestURI.equals("/sendactivationcodeprocess")) {
485:                    map.setResponse("/mvnplugin/mvnforum/"
486:                            + userModuleJSPDirectory
487:                            + "/sendactivationcodesuccess.jsp");
488:                } else if (requestURI.equals("/activatemember")) {
489:                    map.setResponse("/mvnplugin/mvnforum/"
490:                            + userModuleJSPDirectory + "/activatemember.jsp");
491:                } else if (requestURI.equals("/activatememberprocess")) {
492:                    map.setResponse("/mvnplugin/mvnforum/"
493:                            + userModuleJSPDirectory
494:                            + "/activatemembersuccess.jsp");
495:                }
496:
497:                Locale locale = I18nUtil.getLocaleInRequest(request);
498:                // unknown module, we throw an exception
499:                if (map.getResponse() == null) {
500:                    //String errorMessage = "Cannot find matching entry in URLMap for '" + requestURI + "'. Please contact the administrator.";
501:                    String localizedMessage = MVNForumResourceBundle
502:                            .getString(
503:                                    locale,
504:                                    "mvncore.exception.MissingURLMapEntryException.cannot_find_matching_entry",
505:                                    new Object[] { requestURI });
506:                    throw new MissingURLMapEntryException(localizedMessage);
507:                    //throw new MissingURLMapEntryException(errorMessage);
508:                }
509:                return map;
510:            }
511:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.