com.sun.xml.ws.addressing
Class WsaPropertyBag

java.lang.Object
  extended by org.jvnet.ws.message.BasePropertySet
      extended by com.sun.xml.ws.addressing.WsaPropertyBag
All Implemented Interfaces:
org.jvnet.ws.message.PropertySet

public class WsaPropertyBag
extends org.jvnet.ws.message.BasePropertySet

Provides access to the Addressing headers.

Since:
2.1.3

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jvnet.ws.message.BasePropertySet
org.jvnet.ws.message.BasePropertySet.Accessor, org.jvnet.ws.message.BasePropertySet.PropertyMap
 
Nested classes/interfaces inherited from interface org.jvnet.ws.message.PropertySet
org.jvnet.ws.message.PropertySet.Property
 
Field Summary
static String WSA_FAULTTO_FROM_REQUEST
           
static String WSA_MSGID_FROM_REQUEST
           
static String WSA_REPLYTO_FROM_REQUEST
           
static String WSA_TO
           
 
Constructor Summary
WsaPropertyBag(AddressingVersion addressingVersion, SOAPVersion soapVersion, Packet packet)
           
 
Method Summary
 String getAction()
          Gets the wsa:Action header content as String.
 WSEndpointReference getFaultToFromRequest()
           
 WSEndpointReference getFrom()
          Gets the wsa:From header.
 String getMessageID()
          Gets the wsa:MessageID header content as String.
 String getMessageIdFromRequest()
           
protected  org.jvnet.ws.message.BasePropertySet.PropertyMap getPropertyMap()
          Map representing the Fields and Methods annotated with Property.
 WSEndpointReference getReplyToFromRequest()
           
 String getTo()
          Gets the wsa:To header.
 WSEndpointReference getToAsReference()
          Gets the wsa:To header.
 void setFaultToFromRequest(WSEndpointReference ref)
           
 void setMessageIdFromRequest(String id)
           
 void setReplyToFromRequest(WSEndpointReference ref)
           
 
Methods inherited from class org.jvnet.ws.message.BasePropertySet
asMap, containsKey, createEntrySet, createMapView, createView, get, mapAllowsAdditionalProperties, parse, put, remove, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WSA_REPLYTO_FROM_REQUEST

public static final String WSA_REPLYTO_FROM_REQUEST
See Also:
Constant Field Values

WSA_FAULTTO_FROM_REQUEST

public static final String WSA_FAULTTO_FROM_REQUEST
See Also:
Constant Field Values

WSA_MSGID_FROM_REQUEST

public static final String WSA_MSGID_FROM_REQUEST
See Also:
Constant Field Values

WSA_TO

public static final String WSA_TO
See Also:
Constant Field Values
Constructor Detail

WsaPropertyBag

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

getTo

public String 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

getToAsReference

public WSEndpointReference getToAsReference()
                                     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 org.jvnet.ws.message.BasePropertySet.PropertyMap getPropertyMap()
Description copied from class: org.jvnet.ws.message.BasePropertySet
Map representing the Fields and Methods annotated with 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 org.jvnet.ws.message.BasePropertySet

getReplyToFromRequest

public WSEndpointReference getReplyToFromRequest()

setReplyToFromRequest

public void setReplyToFromRequest(WSEndpointReference ref)

getFaultToFromRequest

public WSEndpointReference getFaultToFromRequest()

setFaultToFromRequest

public void setFaultToFromRequest(WSEndpointReference ref)

getMessageIdFromRequest

public String getMessageIdFromRequest()

setMessageIdFromRequest

public void setMessageIdFromRequest(String id)


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.