Source Code Cross Referenced for SOAPBody.java in  » Web-Services-AXIS2 » 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 » Web Services AXIS2 » saaj » javax.xml.soap 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Licensed to the Apache Software Foundation (ASF) under one
003:         * or more contributor license agreements. See the NOTICE file
004:         * distributed with this work for additional information
005:         * regarding copyright ownership. The ASF licenses this file
006:         * to you under the Apache License, Version 2.0 (the
007:         * "License"); you may not use this file except in compliance
008:         * with the License. You may obtain a copy of the License at
009:         *
010:         * http://www.apache.org/licenses/LICENSE-2.0
011:         *
012:         * Unless required by applicable law or agreed to in writing,
013:         * software distributed under the License is distributed on an
014:         * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015:         * KIND, either express or implied. See the License for the
016:         * specific language governing permissions and limitations
017:         * under the License.
018:         */
019:        package javax.xml.soap;
020:
021:        import org.w3c.dom.Document;
022:
023:        import java.util.Locale;
024:
025:        /**
026:         * An object that represents the contents of the SOAP body element in a SOAP message. A SOAP body
027:         * element consists of XML data that affects the way the application-specific content is processed.
028:         * <p/>
029:         * A <code>SOAPBody</code> object contains <code>SOAPBodyElement</code> objects, which have the
030:         * content for the SOAP body. A <code>SOAPFault</code> object, which carries status and/or error
031:         * information, is an example of a <code>SOAPBodyElement</code> object.
032:         *
033:         * @see SOAPFault SOAPFault
034:         */
035:        public interface SOAPBody extends SOAPElement {
036:
037:            /**
038:             * Creates a new <code>SOAPFault</code> object and adds it to this <code>SOAPBody</code>
039:             * object.
040:             *
041:             * @return the new <code>SOAPFault</code> object
042:             * @throws SOAPException if there is a SOAP error
043:             */
044:            public abstract SOAPFault addFault() throws SOAPException;
045:
046:            /**
047:             * Indicates whether a <code>SOAPFault</code> object exists in this <code>SOAPBody</code>
048:             * object.
049:             *
050:             * @return <code>true</code> if a <code>SOAPFault</code> object exists in this
051:             *         <code>SOAPBody</code> object; <code>false</code> otherwise
052:             */
053:            public abstract boolean hasFault();
054:
055:            /**
056:             * Returns the <code>SOAPFault</code> object in this <code>SOAPBody</code> object.
057:             *
058:             * @return the <code>SOAPFault</code> object in this <code>SOAPBody</code> object
059:             */
060:            public abstract SOAPFault getFault();
061:
062:            /**
063:             * Creates a new <code>SOAPBodyElement</code> object with the specified name and adds it to this
064:             * <code>SOAPBody</code> object.
065:             *
066:             * @param name a <code>Name</code> object with the name for the new <code>SOAPBodyElement</code>
067:             *             object
068:             * @return the new <code>SOAPBodyElement</code> object
069:             * @throws SOAPException if a SOAP error occurs
070:             */
071:            public abstract SOAPBodyElement addBodyElement(Name name)
072:                    throws SOAPException;
073:
074:            /**
075:             * Creates a new <code>SOAPFault</code> object and adds it to this <code>SOAPBody</code> object.
076:             * The new <code>SOAPFault</code> will have a <code>faultcode</code> element that is set to the
077:             * <code>faultCode</code> parameter and a <code>faultstring</code> set to
078:             * <code>faultstring</code> and localized to <code>locale</code>.
079:             *
080:             * @param faultCode   a <code>Name</code> object giving the fault code to be set; must be one of
081:             *                    the fault codes defined in the SOAP 1.1 specification and of type QName
082:             * @param faultString a <code>String</code> giving an explanation of the fault
083:             * @param locale      a <code>Locale</code> object indicating the native language of the
084:             *                    <ocde>faultString</code>
085:             * @return the new <code>SOAPFault</code> object
086:             * @throws SOAPException if there is a SOAP error
087:             */
088:            public abstract SOAPFault addFault(Name faultCode,
089:                    String faultString, Locale locale) throws SOAPException;
090:
091:            /**
092:             * Creates a new <code>SOAPFault</code> object and adds it to this <code>SOAPBody</code> object.
093:             * The new <code>SOAPFault</code> will have a <code>faultcode</code> element that is set to the
094:             * <code>faultCode</code> parameter and a <code>faultstring</code> set to
095:             * <code>faultstring</code>.
096:             *
097:             * @param faultCode   a <code>Name</code> object giving the fault code to be set; must be one of
098:             *                    the fault codes defined in the SOAP 1.1 specification and of type QName
099:             * @param faultString a <code>String</code> giving an explanation of the fault
100:             * @return the new <code>SOAPFault</code> object
101:             * @throws SOAPException if there is a SOAP error
102:             */
103:            public abstract SOAPFault addFault(Name faultCode,
104:                    String faultString) throws SOAPException;
105:
106:            /**
107:             * Adds the root node of the DOM <code>Document</code> to this <code>SOAPBody</code> object.
108:             * <p/>
109:             * Calling this method invalidates the <code>document</code> parameter. The client application
110:             * should discard all references to this <code>Document</code> and its contents upon calling
111:             * <code>addDocument</code>. The behavior of an application that continues to use such
112:             * references is undefined.
113:             *
114:             * @param document the <code>Document</code> object whose root node will be added to this
115:             *                 <code>SOAPBody</code>
116:             * @return the <code>SOAPBodyElement</code> that represents the root node that was added
117:             * @throws SOAPException if the <code>Document</code> cannot be added
118:             */
119:            public abstract SOAPBodyElement addDocument(Document document)
120:                    throws SOAPException;
121:
122:            public abstract SOAPBodyElement addBodyElement(
123:                    javax.xml.namespace.QName qname) throws SOAPException;
124:
125:            public abstract SOAPFault addFault(javax.xml.namespace.QName qname,
126:                    java.lang.String s) throws SOAPException;
127:
128:            public abstract SOAPFault addFault(javax.xml.namespace.QName qname,
129:                    java.lang.String s, java.util.Locale locale)
130:                    throws SOAPException;
131:
132:            public abstract org.w3c.dom.Document extractContentAsDocument()
133:                    throws SOAPException;
134:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.