Source Code Cross Referenced for ProcessorResult.java in  » Portal » stringbeans-3.5 » com » nabhinc » portlet » mvcportlet » core » 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 » stringbeans 3.5 » com.nabhinc.portlet.mvcportlet.core 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * (C) Copyright 2004 Nabh Information Systems, Inc.
003:         *
004:         * All copyright notices regarding Nabh's products MUST remain
005:         * intact in the scripts and in the outputted HTML.
006:         * This program is free software; you can redistribute it and/or
007:         * modify it under the terms of the GNU Lesser General Public License
008:         * as published by the Free Software Foundation; either version 2.1 
009:         * of the License, or (at your option) any later version.
010:         *
011:         * This program is distributed in the hope that it will be useful,
012:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
013:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014:         * GNU Lesser General Public License for more details.
015:         *
016:         * You should have received a copy of the GNU Lesser General Public License
017:         * along with this program; if not, write to the Free Software
018:         * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
019:         *
020:         */
021:        package com.nabhinc.portlet.mvcportlet.core;
022:
023:        import javax.portlet.PortletException;
024:
025:        /**
026:         * The result mapping of a Request Processor.
027:         *
028:         * @author Padmanabh Dabke
029:         * (c) 2004 Nabh Information Systems, Inc. All Rights Reserved.
030:         */
031:        public class ProcessorResult {
032:            public static final int TYPE_RENDER = 0;
033:            public static final int TYPE_REDIRECT = 1;
034:            public static final int TYPE_PROCESS = 2;
035:
036:            private int prType = TYPE_RENDER;
037:            private String prValue = null;
038:            private MessageInfo prMessageInfo = null;
039:            private String prWindowState = null;
040:            private String prPortletMode = null;
041:            private String prSetRenderParameters = null;
042:            private String prParams = null;
043:
044:            public ProcessorResult(int type, String value, MessageInfo mInfo,
045:                    String pMode, String winState, String setRenderParams,
046:                    String params) throws PortletException {
047:
048:                if (setRenderParams != null && type != TYPE_RENDER) {
049:                    throw new PortletException(
050:                            "You cannot specify setRenderParameters attribute for process/redirect result mappng.");
051:                }
052:
053:                prType = type;
054:                prValue = value;
055:                prMessageInfo = mInfo;
056:                prPortletMode = pMode;
057:                prWindowState = winState;
058:                prSetRenderParameters = setRenderParams;
059:                prParams = params;
060:            }
061:
062:            public int getType() {
063:                return prType;
064:            }
065:
066:            public void setType(int type) {
067:                prType = type;
068:            }
069:
070:            public String getValue() {
071:                return prValue;
072:            }
073:
074:            public void setValue(String value) {
075:                prValue = value;
076:            }
077:
078:            /**
079:             * Returns a message info (i.e. the type of message and message key)
080:             * corresponding to a result string returned by the ActionProcessor.
081:             * This will be passed on to the subsequent render call as a parameter.
082:             * This can be used by the JSP to display info/status/warning/error
083:             * messages. Please look at nav.jsp provided in the distribution for
084:             * the usage.
085:             * @return MessageInfo object associated with processor result.
086:             */
087:            public MessageInfo getMessageInfo() {
088:                return prMessageInfo;
089:            }
090:
091:            public void setMessageInfo(MessageInfo mInfo) {
092:                prMessageInfo = mInfo;
093:            }
094:
095:            public String getWindowState() {
096:                return prWindowState;
097:            }
098:
099:            public void setWindowState(String winState) {
100:                prWindowState = winState;
101:            }
102:
103:            public String getPortletMode() {
104:                return prPortletMode;
105:            }
106:
107:            public void setPortletMode(String pMode) {
108:                prPortletMode = pMode;
109:            }
110:
111:            public String getSetRenderParameters() {
112:                return prSetRenderParameters;
113:            }
114:
115:            public String getParams() {
116:                return prParams;
117:            }
118:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.