View Javadoc

1   /*
2    * Copyright  1999-2004 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   */
17  
18  package org.apache.axis.message.addressing;
19  
20  import org.apache.axis.types.URI;
21  
22  import javax.xml.soap.SOAPEnvelope;
23  import javax.xml.soap.SOAPHeaderElement;
24  
25  /***
26   * Java content class for MessageID element declaration.
27   * <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 76)
28   * <p>
29   * <pre>
30   * &lt;element name="MessageID" type="{http://schemas.xmlsoap.org/ws/2004/08/addressing}AttributedURI"/>
31   * </pre>
32   * 
33   * @author Davanum Srinivas (dims@yahoo.com)
34   */
35  public class MessageID extends AttributedURI {
36      /***
37       * Constructor MessageID
38       * 
39       * @param uri 
40       */
41      public MessageID(URI uri) {
42          super(uri);
43      }
44  
45      /***
46       * Constructor MessageID
47       */
48      public MessageID() {
49      }
50  
51      /***
52       * Constructor MessageID
53       * 
54       * @param el 
55       * @throws Exception 
56       */
57      public MessageID(SOAPHeaderElement el) 
58          throws Exception {
59          super(el);
60      }
61  
62      public SOAPHeaderElement toSOAPHeaderElement(SOAPEnvelope env, 
63                                                   String actorURI) 
64          throws Exception {
65          return toSOAPHeaderElement(env, actorURI, Constants.MESSAGE_ID);
66      }
67      
68  }
69  
70  
71