org.apache.axis.message.addressing
Class AttributedURI

java.lang.Object
  extended by org.apache.axis.types.URI
      extended by org.apache.axis.message.addressing.AttributedURI
All Implemented Interfaces:
java.io.Serializable, AddressingHeaderItem, DOMAppendable
Direct Known Subclasses:
Action, Address, MessageID, To

public class AttributedURI
extends org.apache.axis.types.URI
implements DOMAppendable, AddressingHeaderItem

Java content class for AttributedURI complex type.

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 105)

 <complexType name="AttributedURI">
   <simpleContent>
     <extension base="<http://www.w3.org/2001/XMLSchema>anyURI">
     </extension>
   </simpleContent>
 </complexType>
 

Version:
$Revision: 14 $
Author:
Davanum Srinivas, Rodrigo Ruiz
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.axis.types.URI
org.apache.axis.types.URI.MalformedURIException
 
Constructor Summary
AttributedURI()
          Constructor AttributedURI.
AttributedURI(javax.xml.soap.SOAPHeaderElement el)
          Constructor AttributedURI.
AttributedURI(java.lang.String uri)
          Constructor Address.
AttributedURI(org.apache.axis.types.URI uri)
          Constructor AttributedURI.
 
Method Summary
 void append(AddressingVersion version, org.w3c.dom.Element parent, java.lang.String elemName)
          Appends a DOM representation of this instance to the specified element.
 void append(org.w3c.dom.Element parent)
          Appends a DOM representation of this instance to the specified element.
 void append(org.w3c.dom.Element parent, java.lang.String elementName)
          Appends a DOM representation of this instance to the specified element.
 java.lang.String getDefaultElementName()
          Gets the default name of the element to create in DOMAppendable and AddressingHeaderItem methods.
 javax.xml.soap.SOAPHeaderElement toSOAPHeaderElement(AddressingVersion version, javax.xml.soap.SOAPEnvelope env, java.lang.String actorURI)
          Converts this instance into a SOAP header element.
protected  javax.xml.soap.SOAPHeaderElement toSOAPHeaderElement(AddressingVersion version, javax.xml.soap.SOAPEnvelope env, java.lang.String actorURI, java.lang.String name)
          Converts this instance into a SOAP header element.
 javax.xml.soap.SOAPHeaderElement toSOAPHeaderElement(javax.xml.soap.SOAPEnvelope env, java.lang.String actorURI)
          Gets a SOAP Header Element from this instance.
 
Methods inherited from class org.apache.axis.types.URI
absolutize, appendPath, equals, getFragment, getHost, getPath, getPath, getPort, getQueryString, getRegBasedAuthority, getScheme, getSchemeSpecificPart, getUserinfo, hashCode, isAbsoluteURI, isConformantSchemeName, isGenericURI, isWellFormedAddress, isWellFormedIPv4Address, isWellFormedIPv6Reference, setFragment, setHost, setPath, setPort, setQueryString, setRegBasedAuthority, setScheme, setUserinfo, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributedURI

public AttributedURI()
Constructor AttributedURI.


AttributedURI

public AttributedURI(javax.xml.soap.SOAPHeaderElement el)
              throws org.apache.axis.types.URI.MalformedURIException
Constructor AttributedURI.

Parameters:
el - Element to extract the URI from
Throws:
URI.MalformedURIException - If the extracted URI is not valid

AttributedURI

public AttributedURI(java.lang.String uri)
              throws org.apache.axis.types.URI.MalformedURIException
Constructor Address.

Parameters:
uri - URI
Throws:
MalformedURIException - If the URI is not valid
org.apache.axis.types.URI.MalformedURIException

AttributedURI

public AttributedURI(org.apache.axis.types.URI uri)
Constructor AttributedURI.

Parameters:
uri - URI
Method Detail

getDefaultElementName

public java.lang.String getDefaultElementName()
Gets the default name of the element to create in DOMAppendable and AddressingHeaderItem methods.

Returns:
Element name

append

public final void append(org.w3c.dom.Element parent)
Appends a DOM representation of this instance to the specified element.

This method should call DOMAppendable.append(Element, String) with a default value for the elementName parameter. Abstract classes, or those to be always subclassed may optionally throw UnsupportedOperationException instead.

Specified by:
append in interface DOMAppendable
Parameters:
parent - Parent element

append

public final void append(org.w3c.dom.Element parent,
                         java.lang.String elementName)
Appends a DOM representation of this instance to the specified element.

Specified by:
append in interface DOMAppendable
Parameters:
parent - Parent element
elementName - The name of the element to create

append

public final void append(AddressingVersion version,
                         org.w3c.dom.Element parent,
                         java.lang.String elemName)
Appends a DOM representation of this instance to the specified element.

Specified by:
append in interface DOMAppendable
Parameters:
version - WS-Addressing version to use
parent - Parent element
elemName - Name of the element to create

toSOAPHeaderElement

public final javax.xml.soap.SOAPHeaderElement toSOAPHeaderElement(AddressingVersion version,
                                                                  javax.xml.soap.SOAPEnvelope env,
                                                                  java.lang.String actorURI)
                                                           throws javax.xml.soap.SOAPException
Converts this instance into a SOAP header element.

Specified by:
toSOAPHeaderElement in interface AddressingHeaderItem
Parameters:
version - WS-Addressing version to use
env - Envelope to put the header into
actorURI - Actor URI
Returns:
Created element
Throws:
javax.xml.soap.SOAPException - If an error occurs

toSOAPHeaderElement

protected javax.xml.soap.SOAPHeaderElement toSOAPHeaderElement(AddressingVersion version,
                                                               javax.xml.soap.SOAPEnvelope env,
                                                               java.lang.String actorURI,
                                                               java.lang.String name)
                                                        throws javax.xml.soap.SOAPException
Converts this instance into a SOAP header element.

Parameters:
version - WS-Addressing version to use
env - Envelope to put the header into
actorURI - Actor URI
name - Element name
Returns:
Created element
Throws:
javax.xml.soap.SOAPException - If an error occurs

toSOAPHeaderElement

public final javax.xml.soap.SOAPHeaderElement toSOAPHeaderElement(javax.xml.soap.SOAPEnvelope env,
                                                                  java.lang.String actorURI)
                                                           throws javax.xml.soap.SOAPException
Gets a SOAP Header Element from this instance.

Specified by:
toSOAPHeaderElement in interface AddressingHeaderItem
Parameters:
env - SOAP envelope to append to
actorURI - Actor URI
Returns:
Header Element
Throws:
javax.xml.soap.SOAPException - If an error occurs


Copyright © 2008-2009 Rodrigo Ruiz. All Rights Reserved.