Source Code Cross Referenced for CallRequest.java in  » Web-Services » xins » org » xins » common » service » 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 Services » xins » org.xins.common.service 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * $Id: CallRequest.java,v 1.20 2007/03/15 17:08:27 agoubard Exp $
003:         *
004:         * Copyright 2003-2007 Orange Nederland Breedband B.V.
005:         * See the COPYRIGHT file for redistribution and use restrictions.
006:         */
007:        package org.xins.common.service;
008:
009:        import java.io.Serializable;
010:
011:        /**
012:         * Abstraction of a request for a <code>ServiceCaller</code> call. Specific
013:         * service callers typically only accept a single type of request, derived
014:         * from this class.
015:         *
016:         * <p>This class is not thread-safe.
017:         *
018:         * <h2>Implementations</h2>
019:         *
020:         * <p>Implementations of this class should stick to the following rules:
021:         *
022:         * <ul>
023:         *    <li>the {@link #describe()} method must be implemented;
024:         *    <li>only a single non-argument constructor should be provided, all
025:         *        settings should be done using setter methods;
026:         *    <li>a service caller-specific getter should be added for the associated
027:         *        call config object, this method should return the caller-specific
028:         *        call config object (a subclass of class {@link CallConfig}).
029:         * </ul>
030:         *
031:         * @version $Revision: 1.20 $ $Date: 2007/03/15 17:08:27 $
032:         * @author <a href="mailto:ernst@ernstdehaan.com">Ernst de Haan</a>
033:         *
034:         * @since XINS 1.0.0
035:         *
036:         * @see ServiceCaller
037:         */
038:        public abstract class CallRequest implements  Serializable {
039:
040:            /**
041:             * The <code>CallConfig</code> associated with this request, if any. Can be
042:             * -and initially is- <code>null</code>.
043:             */
044:            private CallConfig _callConfig;
045:
046:            /**
047:             * Describes this request. The description should be trimmed and should fit
048:             * in a sentence. Good examples include <code>"LDAP request #1592"</code>
049:             * and <code>"request #12903"</code>.
050:             *
051:             * @return
052:             *    the description of this request, should never be <code>null</code>,
053:             *    should never be empty and should never start or end with whitespace
054:             *    characters.
055:             */
056:            public abstract String describe();
057:
058:            /**
059:             * Constructs a new <code>CallRequest</code>. This constructor is only
060:             * available to subclasses, since this class is <code>abstract</code>.
061:             */
062:            protected CallRequest() {
063:
064:                // empty
065:            }
066:
067:            /**
068:             * Returns a textual presentation of this object.
069:             *
070:             * <p>The implementation of this method in class {@link CallRequest}
071:             * returns {@link #describe()}.
072:             *
073:             * @return
074:             *    a textual presentation of this object, should never be
075:             *    <code>null</code>.
076:             */
077:            public String toString() {
078:                return describe();
079:            }
080:
081:            /**
082:             * Retrieves the associated call configuration, if any.
083:             *
084:             * @return
085:             *    the associated call configuration, or <code>null</code> if none is.
086:             *
087:             * @since XINS 1.1.0
088:             */
089:            protected final CallConfig getCallConfig() {
090:                return _callConfig;
091:            }
092:
093:            /**
094:             * Sets the call configuration associated with this request.
095:             *
096:             * @param config
097:             *    the call configuration to associate with this request, or
098:             *    <code>null</code> if none should be.
099:             *
100:             * @since XINS 1.1.0
101:             */
102:            protected final void setCallConfig(CallConfig config) {
103:                _callConfig = config;
104:            }
105:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.