KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > saaj > SOAPHeaderElementImpl


1 /*
2  * Copyright 2004,2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.axis2.saaj;
17
18 import org.apache.axis2.soap.SOAPHeaderBlock;
19
20 import javax.xml.soap.SOAPHeaderElement JavaDoc;
21
22 /**
23  * Class SOAPHeaderImpl
24  *
25  * @author Ashutosh Shahi
26  * ashutosh.shahi@gmail.com
27  */

28 public class SOAPHeaderElementImpl extends SOAPElementImpl implements
29         SOAPHeaderElement JavaDoc {
30     
31     /**
32      * Field omHeaderElement
33      */

34     SOAPHeaderBlock omHeaderElement;
35     
36     /**
37      * Constructor SOAPHeaderElementImpl
38      * @param headerElement
39      */

40     public SOAPHeaderElementImpl(org.apache.axis2.soap.SOAPHeaderBlock headerElement){
41         super(headerElement);
42         this.omHeaderElement = headerElement;
43     }
44
45     /**
46      * method setActor
47      *
48      * @param actorURI
49      * @see javax.xml.soap.SOAPHeaderElement#setActor(java.lang.String)
50      */

51     public void setActor(String JavaDoc actorURI) {
52     
53         omHeaderElement.setRole(actorURI);
54     }
55
56     /**
57      * method getActor
58      *
59      * @return
60      * @see javax.xml.soap.SOAPHeaderElement#getActor()
61      */

62     public String JavaDoc getActor() {
63
64         return omHeaderElement.getRole();
65     }
66
67     /**
68      * method setMustUnderstand
69      *
70      * @param mustUnderstand
71      * @see javax.xml.soap.SOAPHeaderElement#setMustUnderstand(boolean)
72      */

73     public void setMustUnderstand(boolean mustUnderstand) {
74         
75         omHeaderElement.setMustUnderstand(mustUnderstand);
76     }
77
78     /**
79      * method getMustUnderstand
80      *
81      * @return
82      * @see javax.xml.soap.SOAPHeaderElement#getMustUnderstand()
83      */

84     public boolean getMustUnderstand() {
85         
86         return omHeaderElement.getMustUnderstand();
87     }
88
89 }
90
Popular Tags