1 /* 2 * Copyright (c) 2008 Rodrigo Ruiz 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.axis.message.addressing; 17 18 import javax.xml.soap.SOAPHeaderElement; 19 20 import org.apache.axis.types.URI; 21 22 /** 23 * Java content class for MessageID element declaration. 24 * <p> 25 * The following schema fragment specifies the expected content contained within 26 * this java content object. (defined at 27 * http://schemas.xmlsoap.org/ws/2004/08/addressing line 76) 28 * 29 * <pre> 30 * <element 31 * xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" 32 * name="MessageID" 33 * type="wsa:AttributedURI"/> 34 * </pre> 35 * 36 * @author Davanum Srinivas 37 * @version $Revision: 14 $ 38 */ 39 public class MessageID extends AttributedURI { 40 /** 41 * <code>serialVersionUID</code> attribute. 42 */ 43 private static final long serialVersionUID = -52069924986621503L; 44 45 /** 46 * Constructor MessageID. 47 */ 48 public MessageID() { 49 } 50 51 /** 52 * Constructor MessageID. 53 * 54 * @param el Header element 55 * @throws MalformedURIException If an error occurs 56 */ 57 public MessageID(SOAPHeaderElement el) throws MalformedURIException { 58 super(el); 59 } 60 61 /** 62 * Constructor MessageID. 63 * 64 * @param uri Message URI 65 */ 66 public MessageID(URI uri) { 67 super(uri); 68 } 69 70 /** 71 * {@inheritDoc} 72 */ 73 public String getDefaultElementName() { 74 return Constants.MESSAGE_ID; 75 } 76 }