Source Code Cross Referenced for Dispatch.java in  » 6.0-JDK-Modules » jax-ws-api » javax » xml » ws » 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 » 6.0 JDK Modules » jax ws api » javax.xml.ws 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
03:         * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
04:         */
05:
06:        package javax.xml.ws;
07:
08:        import java.util.concurrent.Future;
09:
10:        /** The <code>Dispatch</code> interface provides support 
11:         *  for the dynamic invocation of a service endpoint operations. The
12:         *  <code>javax.xml.ws.Service</code>
13:         *  interface acts as a factory for the creation of <code>Dispatch</code>
14:         *  instances.
15:         *
16:         *  @since JAX-WS 2.0
17:         **/
18:        public interface Dispatch<T> extends BindingProvider {
19:
20:            /** Invoke a service operation synchronously.
21:             * 
22:             * The client is responsible for ensuring that the <code>msg</code> object
23:             * when marshalled is formed according to the requirements of the protocol
24:             * binding in use.
25:             *
26:             * @param msg An object that will form the message or payload of
27:             *     the message used to invoke the operation.
28:             * @return The response message or message payload to the
29:             *     operation invocation.
30:             * @throws WebServiceException If a fault occurs during communication with
31:             *     the service
32:             * @throws WebServiceException If there is any error in the configuration of
33:             *     the <code>Dispatch</code> instance
34:             **/
35:            public T invoke(T msg);
36:
37:            /** Invoke a service operation asynchronously.  The
38:             *  method returns without waiting for the response to the operation
39:             *  invocation, the results of the operation are obtained by polling the
40:             *  returned <code>Response</code>.
41:             * <p>
42:             * The client is responsible for ensuring that the <code>msg</code> object 
43:             * when marshalled is formed according to the requirements of the protocol
44:             * binding in use.
45:             * 
46:             * @param msg An object that will form the message or payload of
47:             *     the message used to invoke the operation.
48:             * @return The response message or message payload to the
49:             *     operation invocation.
50:             * @throws WebServiceException If there is any error in the configuration of
51:             *     the <code>Dispatch</code> instance
52:             **/
53:            public Response<T> invokeAsync(T msg);
54:
55:            /** Invoke a service operation asynchronously. The
56:             *  method returns without waiting for the response to the operation
57:             *  invocation, the results of the operation are communicated to the client
58:             *  via the passed in <code>handler</code>.
59:             * <p>
60:             * The client is responsible for ensuring that the <code>msg</code> object 
61:             * when marshalled is formed according to the requirements of the protocol
62:             * binding in use.
63:             *
64:             * @param msg An object that will form the message or payload of
65:             *     the message used to invoke the operation.
66:             * @param handler The handler object that will receive the
67:             *     response to the operation invocation.
68:             * @return A <code>Future</code> object that may be used to check the status
69:             *     of the operation invocation. This object MUST NOT be used to try to
70:             *     obtain the results of the operation - the object returned from
71:             *     <code>Future&lt;?>.get()</code> is implementation dependent
72:             *     and any use of it will result in non-portable behaviour.
73:             * @throws WebServiceException If there is any error in the configuration of
74:             *     the <code>Dispatch</code> instance
75:             **/
76:            public Future<?> invokeAsync(T msg, AsyncHandler<T> handler);
77:
78:            /** Invokes a service operation using the one-way
79:             *  interaction mode. The operation invocation is logically non-blocking,
80:             *  subject to the capabilities of the underlying protocol, no results
81:             *  are returned. When
82:             *  the protocol in use is SOAP/HTTP, this method MUST block until
83:             *  an HTTP response code has been received or an error occurs.
84:             * <p>
85:             * The client is responsible for ensuring that the <code>msg</code> object 
86:             * when marshalled is formed according to the requirements of the protocol
87:             * binding in use.
88:             *
89:             * @param msg An object that will form the message or payload of
90:             *     the message used to invoke the operation.
91:             * @throws WebServiceException If there is any error in the configuration of
92:             *     the <code>Dispatch</code> instance or if an error occurs during the
93:             *     invocation.
94:             **/
95:            public void invokeOneWay(T msg);
96:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.