com.sun.xml.ws.addressing
Class WsaPropertyBag

java.lang.Object
  extended by com.sun.xml.ws.api.PropertySet
      extended by com.sun.xml.ws.addressing.WsaPropertyBag

public class WsaPropertyBag
extends PropertySet

Provides access to the Addressing headers.

Since:
2.1.3

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.xml.ws.api.PropertySet
PropertySet.Accessor, PropertySet.Property, PropertySet.PropertyMap
 
Constructor Summary
WsaPropertyBag(AddressingVersion addressingVersion, SOAPVersion soapVersion, Packet packet)
           
 
Method Summary
 String getAction()
          Gets the wsa:Action header content as String.
 WSEndpointReference getFrom()
          Gets the wsa:From header.
 String getMessageID()
          Gets the wsa:MessageID header content as String.
protected  PropertySet.PropertyMap getPropertyMap()
          Map representing the Fields and Methods annotated with PropertySet.Property.
 WSEndpointReference getTo()
          Gets the wsa:To header.
 
Methods inherited from class com.sun.xml.ws.api.PropertySet
containsKey, createMapView, get, parse, put, remove, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsaPropertyBag

WsaPropertyBag(AddressingVersion addressingVersion,
               SOAPVersion soapVersion,
               Packet packet)
Method Detail

getTo

public WSEndpointReference getTo()
                          throws javax.xml.stream.XMLStreamException
Gets the wsa:To header.

Returns:
null if the incoming SOAP message didn't have the header.
Throws:
javax.xml.stream.XMLStreamException

getFrom

public WSEndpointReference getFrom()
                            throws javax.xml.stream.XMLStreamException
Gets the wsa:From header.

Returns:
null if the incoming SOAP message didn't have the header.
Throws:
javax.xml.stream.XMLStreamException

getAction

public String getAction()
Gets the wsa:Action header content as String.

Returns:
null if the incoming SOAP message didn't have the header.

getMessageID

public String getMessageID()
Gets the wsa:MessageID header content as String.

Returns:
null if the incoming SOAP message didn't have the header.

getPropertyMap

protected PropertySet.PropertyMap getPropertyMap()
Description copied from class: PropertySet
Map representing the Fields and Methods annotated with PropertySet.Property. Model of PropertySet class.

At the end of the derivation chain this method just needs to be implemented as:

 private static final PropertyMap model;
 static {
   model = parse(MyDerivedClass.class);
 }
 protected PropertyMap getPropertyMap() {
   return model;
 }
 

Specified by:
getPropertyMap in class PropertySet