Source Code Cross Referenced for ActionMapping.java in  » Web-Framework » struts-2.0.11 » org » apache » struts2 » dispatcher » mapper » 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 » Web Framework » struts 2.0.11 » org.apache.struts2.dispatcher.mapper 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * $Id: ActionMapping.java 471756 2006-11-06 15:01:43Z husted $
003:         *
004:         * Licensed to the Apache Software Foundation (ASF) under one
005:         * or more contributor license agreements.  See the NOTICE file
006:         * distributed with this work for additional information
007:         * regarding copyright ownership.  The ASF licenses this file
008:         * to you under the Apache License, Version 2.0 (the
009:         * "License"); you may not use this file except in compliance
010:         * with the License.  You may obtain a copy of the License at
011:         *
012:         *  http://www.apache.org/licenses/LICENSE-2.0
013:         *
014:         * Unless required by applicable law or agreed to in writing,
015:         * software distributed under the License is distributed on an
016:         * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017:         * KIND, either express or implied.  See the License for the
018:         * specific language governing permissions and limitations
019:         * under the License.
020:         */
021:        package org.apache.struts2.dispatcher.mapper;
022:
023:        import java.util.Map;
024:
025:        import com.opensymphony.xwork2.Result;
026:
027:        /**
028:         * Simple class that holds the action mapping information used to invoke a
029:         * Struts action. The name and namespace are required, but the params map
030:         * is optional, and as such may be null. If a params map is supplied,
031:         * it <b>must</b> be a mutable map, such as a HashMap.
032:         *
033:         */
034:        public class ActionMapping {
035:
036:            private String name;
037:            private String namespace;
038:            private String method;
039:            private Map params;
040:            private Result result;
041:
042:            /**
043:             * Constructs an ActionMapping
044:             */
045:            public ActionMapping() {
046:            }
047:
048:            /**
049:             * Constructs an ActionMapping with a default result
050:             *
051:             * @param result The default result
052:             */
053:            public ActionMapping(Result result) {
054:                this .result = result;
055:            }
056:
057:            /**
058:             * Constructs an ActionMapping with its values
059:             *
060:             * @param name The action name
061:             * @param namespace The action namespace
062:             * @param method The method
063:             * @param params The extra parameters
064:             */
065:            public ActionMapping(String name, String namespace, String method,
066:                    Map params) {
067:                this .name = name;
068:                this .namespace = namespace;
069:                this .method = method;
070:                this .params = params;
071:            }
072:
073:            /**
074:             * @return The action name
075:             */
076:            public String getName() {
077:                return name;
078:            }
079:
080:            /**
081:             * @return The action namespace
082:             */
083:            public String getNamespace() {
084:                return namespace;
085:            }
086:
087:            /**
088:             * @return The extra parameters
089:             */
090:            public Map getParams() {
091:                return params;
092:            }
093:
094:            /**
095:             * @return The method
096:             */
097:            public String getMethod() {
098:                if (null != method && "".equals(method)) {
099:                    return null;
100:                } else {
101:                    return method;
102:                }
103:            }
104:
105:            /**
106:             * @return The default result
107:             */
108:            public Result getResult() {
109:                return result;
110:            }
111:
112:            /**
113:             * @param result The result
114:             */
115:            public void setResult(Result result) {
116:                this .result = result;
117:            }
118:
119:            /**
120:             * @param name The action name
121:             */
122:            public void setName(String name) {
123:                this .name = name;
124:            }
125:
126:            /**
127:             * @param namespace The action namespace
128:             */
129:            public void setNamespace(String namespace) {
130:                this .namespace = namespace;
131:            }
132:
133:            /**
134:             * @param method The method name to call on the action
135:             */
136:            public void setMethod(String method) {
137:                this .method = method;
138:            }
139:
140:            /**
141:             * @param params The extra parameters for this mapping
142:             */
143:            public void setParams(Map params) {
144:                this.params = params;
145:            }
146:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.