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


01:        /*
02:         * $Id: SOAPConnection.java,v 1.13 2006/03/30 00:59:40 ofung Exp $
03:         * $Revision: 1.13 $
04:         * $Date: 2006/03/30 00:59:40 $
05:         */
06:
07:        /*
08:         * The contents of this file are subject to the terms
09:         * of the Common Development and Distribution License
10:         * (the License).  You may not use this file except in
11:         * compliance with the License.
12:         * 
13:         * You can obtain a copy of the license at
14:         * https://glassfish.dev.java.net/public/CDDLv1.0.html.
15:         * See the License for the specific language governing
16:         * permissions and limitations under the License.
17:         * 
18:         * When distributing Covered Code, include this CDDL
19:         * Header Notice in each file and include the License file
20:         * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
21:         * If applicable, add the following below the CDDL Header,
22:         * with the fields enclosed by brackets [] replaced by
23:         * you own identifying information:
24:         * "Portions Copyrighted [year] [name of copyright owner]"
25:         * 
26:         * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
27:         */
28:        package javax.xml.soap;
29:
30:        /**
31:         * A point-to-point connection that a client can use for sending messages
32:         * directly to a remote party (represented by a URL, for instance).
33:         * <p>
34:         * The SOAPConnection class is optional. Some implementations may
35:         * not implement this interface in which case the call to
36:         * <code>SOAPConnectionFactory.newInstance()</code> (see below) will
37:         * throw an <code>UnsupportedOperationException</code>.
38:         * <p>
39:         * A client can obtain a <code>SOAPConnection</code> object using a
40:         * {@link SOAPConnectionFactory} object as in the following example:
41:         * <PRE>
42:         *      SOAPConnectionFactory factory = SOAPConnectionFactory.newInstance();
43:         *      SOAPConnection con = factory.createConnection();
44:         * </PRE>
45:         * A <code>SOAPConnection</code> object can be used to send messages
46:         * directly to a URL following the request/response paradigm.  That is,
47:         * messages are sent using the method <code>call</code>, which sends the
48:         * message and then waits until it gets a reply.
49:         */
50:        public abstract class SOAPConnection {
51:
52:            /**
53:             * Sends the given message to the specified endpoint and blocks until
54:             * it has returned the response.
55:             *
56:             * @param request the <code>SOAPMessage</code> object to be sent
57:             * @param to an <code>Object</code> that identifies
58:             *         where the message should be sent. It is required to
59:             *         support Objects of type
60:             *         <code>java.lang.String</code>,
61:             *         <code>java.net.URL</code>, and when JAXM is present
62:             *         <code>javax.xml.messaging.URLEndpoint</code>
63:             *
64:             * @return the <code>SOAPMessage</code> object that is the response to the
65:             *         message that was sent
66:             * @throws SOAPException if there is a SOAP error
67:             */
68:            public abstract SOAPMessage call(SOAPMessage request, Object to)
69:                    throws SOAPException;
70:
71:            /**
72:             * Gets a message from a specific endpoint and blocks until it receives,
73:             *
74:             * @param to an <code>Object</code> that identifies where
75:             *                  the request should be sent. Objects of type
76:             *                 <code>java.lang.String</code> and
77:             *                 <code>java.net.URL</code> must be supported.
78:             *
79:             * @return the <code>SOAPMessage</code> object that is the response to the
80:             *                  get message request
81:             * @throws SOAPException if there is a SOAP error
82:             * @since SAAJ 1.3
83:             */
84:            public SOAPMessage get(Object to) throws SOAPException {
85:                throw new UnsupportedOperationException(
86:                        "All subclasses of SOAPConnection must override get()");
87:            }
88:
89:            /**
90:             * Closes this <code>SOAPConnection</code> object.
91:             *
92:             * @throws SOAPException if there is a SOAP error
93:             */
94:            public abstract void close() throws SOAPException;
95:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.