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 Action 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 79) 28 * 29 * <pre> 30 * <element xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" 31 * name="Action" 32 * type="wsa:AttributedURI"/> 33 * </pre> 34 * 35 * @author Davanum Srinivas 36 * @author Rodrigo Ruiz 37 * @version $Revision: 14 $ 38 */ 39 public class Action extends AttributedURI { 40 41 /** 42 * <code>serialVersionUID</code> attribute. 43 */ 44 private static final long serialVersionUID = 3647655849007062112L; 45 46 /** 47 * Creates an instance. 48 */ 49 public Action() { 50 } 51 52 /** 53 * Creates an instance. 54 * 55 * @param el Element to extract the action URI from 56 * @throws URI.MalformedURIException If the URI is not valid 57 */ 58 public Action(SOAPHeaderElement el) throws URI.MalformedURIException { 59 super(el); 60 } 61 62 /** 63 * Creates an instance. 64 * 65 * @param uri Action URI 66 * @throws URI.MalformedURIException If the URI is not valid 67 */ 68 public Action(String uri) throws URI.MalformedURIException { 69 super(uri); 70 } 71 72 /** 73 * Creates an instance. 74 * 75 * @param uri Action URI 76 */ 77 public Action(URI uri) { 78 super(uri); 79 } 80 81 /** 82 * {@inheritDoc} 83 */ 84 public String getDefaultElementName() { 85 return Constants.ACTION; 86 } 87 88 }