com.sun.xml.ws.api.addressing
Class OneWayFeature

java.lang.Object
  extended by javax.xml.ws.WebServiceFeature
      extended by com.sun.xml.ws.api.addressing.OneWayFeature

public class OneWayFeature
extends javax.xml.ws.WebServiceFeature

Unsupported RI extension to work around an issue in WSIT.

This feature is not meant to be used by a common Web service developer as there is no need to send the above mentioned header for a one-way operation. But these properties may need to be sent in certain middleware Web services.

This feature allows ReplyTo, From and RelatesTo Message Addressing Properties to be added for all messages that are sent from the port configured with this annotation. All operations are assumed to be one-way, and this feature should be used for one-way operations only. If a non-null ReplyTo is specified, then MessageID property is also added.


Field Summary
static String ID
          Constant value identifying the OneWayFeature
 
Fields inherited from class javax.xml.ws.WebServiceFeature
enabled
 
Constructor Summary
OneWayFeature()
          Create an OneWayFeature.
OneWayFeature(boolean enabled)
          Create an OneWayFeature
OneWayFeature(boolean enabled, WSEndpointReference replyTo)
          Create an OneWayFeature
OneWayFeature(boolean enabled, WSEndpointReference replyTo, WSEndpointReference from, String relatesTo)
          Create an OneWayFeature
 
Method Summary
 WSEndpointReference getFrom()
          Getter for wsa:From header WSEndpointReference.
 String getID()
          
 String getRelatesToID()
          Getter for MessageID for wsa:RelatesTo header.
 WSEndpointReference getReplyTo()
          Getter for wsa:ReplyTo header WSEndpointReference .
 void setFrom(WSEndpointReference address)
          Setter for wsa:From header WSEndpointReference.
 void setRelatesToID(String id)
          Setter for MessageID for wsa:RelatesTo header.
 void setReplyTo(WSEndpointReference address)
          Setter for wsa:ReplyTo header WSEndpointReference.
 
Methods inherited from class javax.xml.ws.WebServiceFeature
isEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Constant value identifying the OneWayFeature

See Also:
Constant Field Values
Constructor Detail

OneWayFeature

public OneWayFeature()
Create an OneWayFeature. The instance created will be enabled.


OneWayFeature

public OneWayFeature(boolean enabled)
Create an OneWayFeature

Parameters:
enabled - specifies whether this feature should be enabled or not.

OneWayFeature

public OneWayFeature(boolean enabled,
                     WSEndpointReference replyTo)
Create an OneWayFeature

Parameters:
enabled - specifies whether this feature should be enabled or not.
replyTo - specifies the WSEndpointReference of wsa:ReplyTo header.

OneWayFeature

public OneWayFeature(boolean enabled,
                     WSEndpointReference replyTo,
                     WSEndpointReference from,
                     String relatesTo)
Create an OneWayFeature

Parameters:
enabled - specifies whether this feature should be enabled or not.
replyTo - specifies the WSEndpointReference of wsa:ReplyTo header.
from - specifies the WSEndpointReference of wsa:From header.
relatesTo - specifies the MessageID to be used for wsa:RelatesTo header.
Method Detail

getID

public String getID()

Specified by:
getID in class javax.xml.ws.WebServiceFeature

getReplyTo

public WSEndpointReference getReplyTo()
Getter for wsa:ReplyTo header WSEndpointReference .

Returns:
address of the wsa:ReplyTo header

setReplyTo

public void setReplyTo(WSEndpointReference address)
Setter for wsa:ReplyTo header WSEndpointReference.

Parameters:
address -

getFrom

public WSEndpointReference getFrom()
Getter for wsa:From header WSEndpointReference.

Returns:
address of the wsa:From header

setFrom

public void setFrom(WSEndpointReference address)
Setter for wsa:From header WSEndpointReference.

Parameters:
address - of the wsa:From header

getRelatesToID

public String getRelatesToID()
Getter for MessageID for wsa:RelatesTo header.

Returns:
address of the wsa:FaultTo header

setRelatesToID

public void setRelatesToID(String id)
Setter for MessageID for wsa:RelatesTo header.

Parameters:
id -