Source Code Cross Referenced for SJResponse.java in  » Source-Control » sourcejammer » org » sourcejammer » project » view » 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 » Source Control » sourcejammer » org.sourcejammer.project.view 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         *  Copyright (C) 2001, 2002 Robert MacGrogan
003:         *
004:         *  This library is free software; you can redistribute it and/or
005:         *  modify it under the terms of the GNU Lesser General Public
006:         *  License as published by the Free Software Foundation; either
007:         *  version 2.1 of the License, or (at your option) any later version.
008:         *
009:         *  This library is distributed in the hope that it will be useful,
010:         *  but WITHOUT ANY WARRANTY; without even the implied warranty of
011:         *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012:         *  Lesser General Public License for more details.
013:         *
014:         *  You should have received a copy of the GNU Lesser General Public
015:         *  License along with this library; if not, write to the Free Software
016:         *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
017:         *
018:         *
019:         * $Archive: SourceJammer$
020:         * $FileName: SJResponse.java$
021:         * $FileID: 4354$
022:         *
023:         * Last change:
024:         * $AuthorName: Rob MacGrogan$
025:         * $Date: 5/1/03 5:33 PM$
026:         * $Comment: $
027:         *
028:         * $KeyWordsOff: $
029:         */
030:
031:        package org.sourcejammer.project.view;
032:
033:        import java.util.Hashtable;
034:        import java.util.Vector;
035:
036:        /**
037:         * Title:        SourceJammer v 0.1.0
038:         * Description:
039:         * Copyright:    Copyright (c) 2001
040:         * Company:
041:         * @author Robert MacGrogan
042:         * @version $Revision: 1.3 $
043:         */
044:
045:        public class SJResponse implements  SJResponseParams {
046:
047:            private String msMessage = null;
048:            private boolean mbErrorEncountered = false;
049:            private long mlSessionID = -1;
050:
051:            private Hashtable params = new Hashtable();
052:
053:            public SJResponse() {
054:            }
055:
056:            public void setParams(Hashtable params) {
057:                this .params = params;
058:            }
059:
060:            public Hashtable getParams() {
061:                return params;
062:            }
063:
064:            public void putString(String key, String value) {
065:                params.put(key, value);
066:            }
067:
068:            public String stringValue(String key) {
069:                return (String) params.get(key);
070:            }
071:
072:            public void putObject(String key, Object o) {
073:                params.put(key, o);
074:            }
075:
076:            public Object objectValue(String key) {
077:                return params.get(key);
078:            }
079:
080:            public void putInt(String key, int value) {
081:                params.put(key, new Integer(value));
082:            }
083:
084:            public int intValue(String key) {
085:                Integer in = (Integer) params.get(key);
086:                if (in == null)
087:                    return -1;
088:                else
089:                    return in.intValue();
090:            }
091:
092:            public void putLong(String key, long value) {
093:                params.put(key, new Long(value));
094:            }
095:
096:            public long longValue(String key) {
097:                Long ln = (Long) params.get(key);
098:                if (ln == null)
099:                    return -1;
100:                else
101:                    return ln.longValue();
102:            }
103:
104:            public void putBoolean(String key, boolean value) {
105:                params.put(key, new Boolean(value));
106:            }
107:
108:            public boolean booleanValue(String key) {
109:                Boolean bl = (Boolean) params.get(key);
110:                if (bl == null)
111:                    return false;
112:                else
113:                    return bl.booleanValue();
114:            }
115:
116:            public void putFile(File value) {
117:                params.put(FILE, value);
118:            }
119:
120:            public File fileValue() {
121:                return (File) params.get(FILE);
122:            }
123:
124:            public void putProject(Project value) {
125:                params.put(PROJECT, value);
126:            }
127:
128:            public Project projectValue() {
129:                return (Project) params.get(PROJECT);
130:            }
131:
132:            public void putArchiveProperties(ArchiveProperties props) {
133:                params.put(res_ARCHIVE_PROPERTIES, props);
134:            }
135:
136:            public ArchiveProperties archivePropertiesValue() {
137:                return (ArchiveProperties) params.get(res_ARCHIVE_PROPERTIES);
138:            }
139:
140:            public void putDownloadFileIdentifier(DownloadFileIdentifier value) {
141:                params.put(DOWNLOAD_FILE_IDENTIFIER, value);
142:            }
143:
144:            public DownloadFileIdentifier downloadFileIdentifierValue() {
145:                return (DownloadFileIdentifier) params
146:                        .get(DOWNLOAD_FILE_IDENTIFIER);
147:            }
148:
149:            public String getMessage() {
150:                return msMessage;
151:            }
152:
153:            public void setMessage(String s) {
154:                msMessage = s;
155:            }
156:
157:            public long getSessionID() {
158:                return mlSessionID;
159:            }
160:
161:            public void setSessionID(long l) {
162:                mlSessionID = l;
163:            }
164:
165:            public boolean getErrorEncountered() {
166:                return mbErrorEncountered;
167:            }
168:
169:            public void setErrorEncountered(boolean b) {
170:                mbErrorEncountered = b;
171:            }
172:
173:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.