org.apache.axis2.addressing
Class EndpointReference

java.lang.Object
  extended byorg.apache.axis2.addressing.EndpointReference
All Implemented Interfaces:
Serializable

public class EndpointReference
extends Object
implements Serializable

Class EndpointReference Contents of this class differs between WS-A Submission and WS-Final. Without having a inheritance hierarchy for this small difference, lets have all the properties in the same class.

See Also:
Serialized Form

Constructor Summary
EndpointReference(String address)
           
 
Method Summary
 void addReferenceParameter(OMElement omElement)
           
 void addReferenceParameter(QName qname, String value)
           
 void addReferenceProperty(OMElement omElement)
          Remember that reference properties are only supported in WS-A Submission version.
 void addReferenceProperty(QName qname, String value)
          Remember that reference properties are only supported in WS-A Submission version.
 String getAddress()
          Method getAddress
 Map getAllReferenceParameters()
          This will return a Map of reference parameters with QName as the key and an OMElement as the value
 Map getAllReferenceProperties()
          This will return a Map of reference properties with QName as the key and an OMElement as the value
 OMElement getMetaData()
           
 OMElement getPolicy()
           
 QName getPortType()
           
 void setAddress(String address)
          Method setAddress
 void setMetaData(OMElement metaData)
           
 void setPolicy(OMElement policy)
           
 void setPortType(QName portType)
           
 void setReferenceParameters(Map referenceParameters)
          Set a Map with QName as the key and an OMElement as the value
 void setReferenceProperties(HashMap referenceProperties)
          Set a Map with QName as the key and an OMElement as the value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointReference

public EndpointReference(String address)
Parameters:
address -
Method Detail

addReferenceParameter

public void addReferenceParameter(OMElement omElement)
Parameters:
omElement -

addReferenceParameter

public void addReferenceParameter(QName qname,
                                  String value)
Parameters:
qname -
value - - the text of the OMElement. Remember that this is a convenient method for the user, which has limited capability. If you want more power use @See EndpointReference#addReferenceParameter(OMElement)

addReferenceProperty

public void addReferenceProperty(OMElement omElement)
Remember that reference properties are only supported in WS-A Submission version.

Parameters:
omElement -

addReferenceProperty

public void addReferenceProperty(QName qname,
                                 String value)
Remember that reference properties are only supported in WS-A Submission version.

Parameters:
qname -
value -

getAddress

public String getAddress()
Method getAddress


getAllReferenceParameters

public Map getAllReferenceParameters()
This will return a Map of reference parameters with QName as the key and an OMElement as the value

Returns:
- map of the reference parameters, where the key is the QName of the reference parameter and the value is an OMElement

getAllReferenceProperties

public Map getAllReferenceProperties()
This will return a Map of reference properties with QName as the key and an OMElement as the value

Returns:
- map of the reference parameters, where the key is the QName of the reference parameter and the value is an OMElement

getMetaData

public OMElement getMetaData()

getPolicy

public OMElement getPolicy()

getPortType

public QName getPortType()

setAddress

public void setAddress(String address)
Method setAddress

Parameters:
address -

setMetaData

public void setMetaData(OMElement metaData)

setPolicy

public void setPolicy(OMElement policy)

setPortType

public void setPortType(QName portType)

setReferenceParameters

public void setReferenceParameters(Map referenceParameters)
Set a Map with QName as the key and an OMElement as the value

Parameters:
referenceParameters -

setReferenceProperties

public void setReferenceProperties(HashMap referenceProperties)
Set a Map with QName as the key and an OMElement as the value

Parameters:
referenceProperties -