org.apache.axis.message.addressing
Class From

java.lang.Object
  extended by org.apache.axis.message.addressing.EndpointReferenceType
      extended by org.apache.axis.message.addressing.EndpointReference
          extended by org.apache.axis.message.addressing.From
All Implemented Interfaces:
java.io.Serializable, org.apache.axis.encoding.AnyContentType, AddressingHeaderItem

public class From
extends EndpointReference

Java content class for From element declaration.

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)

 <element
   xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
   name="From"
   type="wsa:EndpointReferenceType"/>
 

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

Field Summary
 
Fields inherited from class org.apache.axis.message.addressing.EndpointReferenceType
metaData
 
Constructor Summary
From(EndpointReferenceType endpoint)
          Constructor From.
From(javax.xml.soap.SOAPHeaderElement element)
          Constructor From.
From(java.lang.String uri)
          Creates an instance.
From(org.apache.axis.types.URI uri)
          Constructor From.
 
Method Summary
 org.w3c.dom.Element toDOM(org.w3c.dom.Document doc)
          Method toDOM.
 javax.xml.soap.SOAPHeaderElement toSOAPHeaderElement(AddressingVersion version, javax.xml.soap.SOAPEnvelope env, java.lang.String actorURI)
          Gets a SOAP Header Element from this instance.
 
Methods inherited from class org.apache.axis.message.addressing.EndpointReference
addMetadata, addReferenceParameter, addReferenceProperty, toDOM, toSOAPHeaderElement, toSOAPHeaderElement
 
Methods inherited from class org.apache.axis.message.addressing.EndpointReferenceType
get_any, getAddress, getDeserializer, getMetadata, getParameters, getPortType, getProperties, getSerializer, getServiceName, getTypeDesc, set_any, setAddress, setMetadata, setParameters, setPortType, setProperties, setServiceName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

From

public From(EndpointReferenceType endpoint)
Constructor From.

Parameters:
endpoint - Source end-point

From

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

Parameters:
element - Source element
Throws:
org.apache.axis.types.URI.MalformedURIException - If an error occurs

From

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

Parameters:
uri - Source URI

From

public From(java.lang.String uri)
     throws org.apache.axis.types.URI.MalformedURIException
Creates an instance.

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

toDOM

public org.w3c.dom.Element toDOM(org.w3c.dom.Document doc)
Method toDOM.

Overrides:
toDOM in class EndpointReference
Parameters:
doc - Document to use for Node creation
Returns:
DOM Element

toSOAPHeaderElement

public javax.xml.soap.SOAPHeaderElement toSOAPHeaderElement(AddressingVersion version,
                                                            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
Overrides:
toSOAPHeaderElement in class EndpointReference
Parameters:
version - WS-Addressing version to use
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.