Source Code Cross Referenced for SOAPHeaderElement.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) 


001:        /*
002:         * $Id: SOAPHeaderElement.java,v 1.10 2006/03/30 00:59:42 ofung Exp $
003:         * $Revision: 1.10 $
004:         * $Date: 2006/03/30 00:59:42 $
005:         */
006:
007:        /*
008:         * The contents of this file are subject to the terms
009:         * of the Common Development and Distribution License
010:         * (the License).  You may not use this file except in
011:         * compliance with the License.
012:         * 
013:         * You can obtain a copy of the license at
014:         * https://glassfish.dev.java.net/public/CDDLv1.0.html.
015:         * See the License for the specific language governing
016:         * permissions and limitations under the License.
017:         * 
018:         * When distributing Covered Code, include this CDDL
019:         * Header Notice in each file and include the License file
020:         * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
021:         * If applicable, add the following below the CDDL Header,
022:         * with the fields enclosed by brackets [] replaced by
023:         * you own identifying information:
024:         * "Portions Copyrighted [year] [name of copyright owner]"
025:         * 
026:         * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
027:         */
028:        package javax.xml.soap;
029:
030:        /**
031:         * An object representing the contents in the SOAP header part of the
032:         * SOAP envelope.
033:         * The immediate children of a <code>SOAPHeader</code> object can
034:         * be represented only as <code>SOAPHeaderElement</code> objects.
035:         * <P>
036:         * A <code>SOAPHeaderElement</code> object can have other
037:         * <code>SOAPElement</code> objects as its children.
038:         */
039:        public interface SOAPHeaderElement extends SOAPElement {
040:
041:            /**
042:             * Sets the actor associated with this <code>SOAPHeaderElement</code>
043:             * object to the specified actor. The default value of an actor is:
044:             *          <code>SOAPConstants.URI_SOAP_ACTOR_NEXT</code>
045:             * <P>
046:             * If this <code>SOAPHeaderElement</code> supports SOAP 1.2 then this call is
047:             * equivalent to {@link #setRole(String)}
048:             * 
049:             * @param  actorURI a <code>String</code> giving the URI of the actor
050:             *           to set
051:             *
052:             * @exception IllegalArgumentException if there is a problem in
053:             * setting the actor.
054:             *
055:             * @see #getActor
056:             */
057:            public void setActor(String actorURI);
058:
059:            /**
060:             * Sets the <code>Role</code> associated with this <code>SOAPHeaderElement</code>
061:             * object to the specified <code>Role</code>.
062:             *
063:             * @param uri - the URI of the <code>Role</code>
064:             * 
065:             * @throws SOAPException if there is an error in setting the role
066:             * 
067:             * @exception UnsupportedOperationException if this message does not 
068:             *      support the SOAP 1.2 concept of Fault Role. 
069:             * 
070:             * @since SAAJ 1.3
071:             */
072:            public void setRole(String uri) throws SOAPException;
073:
074:            /**
075:             * Returns the uri of the <i>actor</i> attribute of this
076:             * <code>SOAPHeaderElement</code>.
077:             *<P>
078:             * If this <code>SOAPHeaderElement</code> supports SOAP 1.2 then this call is
079:             * equivalent to {@link #getRole()}
080:             * @return  a <code>String</code> giving the URI of the actor
081:             * @see #setActor
082:             */
083:            public String getActor();
084:
085:            /**
086:             * Returns the value of the <i>Role</i> attribute of this
087:             * <code>SOAPHeaderElement</code>.
088:             *
089:             * @return a <code>String</code> giving the URI of the <code>Role</code>
090:             * 
091:             * @exception UnsupportedOperationException if this message does not 
092:             *      support the SOAP 1.2 concept of Fault Role. 
093:             * 
094:             * @since SAAJ 1.3
095:             */
096:            public String getRole();
097:
098:            /**
099:             * Sets the mustUnderstand attribute for this <code>SOAPHeaderElement</code>
100:             * object to be either true or false.
101:             * <P>
102:             * If the mustUnderstand attribute is on, the actor who receives the
103:             * <code>SOAPHeaderElement</code> must process it correctly. This
104:             * ensures, for example, that if the <code>SOAPHeaderElement</code>
105:             * object modifies the message, that the message is being modified correctly.
106:             *
107:             * @param mustUnderstand <code>true</code> to set the mustUnderstand
108:             *        attribute to true; <code>false</code> to set it to false
109:             *
110:             * @exception IllegalArgumentException if there is a problem in
111:             * setting the mustUnderstand attribute
112:             * @see #getMustUnderstand 
113:             * @see #setRelay
114:             */
115:            public void setMustUnderstand(boolean mustUnderstand);
116:
117:            /**
118:             * Returns the boolean value of the mustUnderstand attribute for this
119:             * <code>SOAPHeaderElement</code>.
120:             *
121:             * @return <code>true</code> if the mustUnderstand attribute of this
122:             *        <code>SOAPHeaderElement</code> object is turned on; <code>false</code>
123:             *         otherwise
124:             */
125:            public boolean getMustUnderstand();
126:
127:            /**
128:             * Sets the <i>relay</i> attribute for this <code>SOAPHeaderElement</code> to be 
129:             * either true or false.
130:             * <P>
131:             * The SOAP relay attribute is set to true to indicate that the SOAP header 
132:             * block must be relayed by any node that is targeted by the header block 
133:             * but not actually process it. This attribute is ignored on header blocks
134:             * whose mustUnderstand attribute is set to true or that are targeted at 
135:             * the ultimate reciever (which is the default). The default value of this 
136:             * attribute is <code>false</code>.
137:             * 
138:             * @param relay the new value of the <i>relay</i> attribute
139:             * 
140:             * @exception SOAPException if there is a problem in setting the 
141:             * relay attribute. 
142:             * @exception UnsupportedOperationException if this message does not 
143:             *      support the SOAP 1.2 concept of Relay attribute.
144:             * 
145:             * @see #setMustUnderstand 
146:             * @see #getRelay
147:             * 
148:             * @since SAAJ 1.3
149:             */
150:            public void setRelay(boolean relay) throws SOAPException;
151:
152:            /**
153:             * Returns the boolean value of the <i>relay</i> attribute for this 
154:             * <code>SOAPHeaderElement</code>
155:             * 
156:             * @return <code>true</code> if the relay attribute is turned on; 
157:             * <code>false</code> otherwise
158:             *
159:             * @exception UnsupportedOperationException if this message does not 
160:             *      support the SOAP 1.2 concept of Relay attribute. 
161:             * 
162:             * @see #getMustUnderstand 
163:             * @see #setRelay
164:             * 
165:             * @since SAAJ 1.3
166:             */
167:            public boolean getRelay();
168:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.