1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.axis.message.addressing;
19
20 import org.apache.axis.types.URI;
21
22 import javax.xml.soap.SOAPHeaderElement;
23 import javax.xml.soap.SOAPEnvelope;
24
25 import org.w3c.dom.Document;
26 import org.w3c.dom.Element;
27
28 /***
29 * Java content class for From element declaration.
30 * <p>The following schema fragment specifies the expected content contained within this java content object. (defined at http://schemas.xmlsoap.org/ws/2004/08/addressing line 80)
31 * <p>
32 * <pre>
33 * <element name="From" type="{http://schemas.xmlsoap.org/ws/2004/08/addressing}EndpointReferenceType"/>
34 * </pre>
35 *
36 * @author Davanum Srinivas (dims@yahoo.com)
37 */
38 public class From extends EndpointReference {
39 /***
40 * Constructor From
41 *
42 * @param address
43 */
44 public From(Address address) {
45 super(address);
46 }
47
48 /***
49 * Constructor From
50 *
51 * @param uri
52 */
53 public From(URI uri) {
54 super(uri);
55 }
56
57 /***
58 * Constructor From
59 *
60 * @param endpoint
61 */
62 public From(EndpointReferenceType endpoint) {
63 super(endpoint);
64 }
65
66 /***
67 * Constructor From
68 *
69 * @param element
70 * @throws Exception
71 */
72 public From(SOAPHeaderElement element)
73 throws Exception {
74 super(element);
75 }
76
77 public SOAPHeaderElement toSOAPHeaderElement(SOAPEnvelope env,
78 String actorURI)
79 throws Exception {
80 return toSOAPHeaderElement(env, actorURI, Constants.FROM);
81 }
82
83 /***
84 * Method toDOM.
85 *
86 * @param doc
87 */
88 public Element toDOM(Document doc) {
89 return toDOM(doc, Constants.FROM);
90 }
91 }
92
93