com.sun.xml.ws.tx.common
Class Message

java.lang.Object
  extended by com.sun.xml.ws.tx.common.Message

public class Message
extends java.lang.Object

WS-TX view of a Message.


Constructor Summary
Message(com.sun.xml.ws.api.message.Message message)
          Public ctor takes wrapped JAX-WS message as its argument.
Message(com.sun.xml.ws.api.message.Message message, com.sun.xml.ws.api.WSBinding wsBinding)
          Public ctor takes wrapped JAX-WS message as its argument.
 
Method Summary
 java.lang.String getAction()
           
 com.sun.xml.ws.api.message.Header getCoordCtxHeader()
          Get the CoordinationContext Header Element from the underlying JAX-WS message's HeaderList.
 com.sun.xml.ws.api.message.Header getCoordCtxHeader(java.lang.String namespace, java.lang.String localName)
          Get the CoordinationContext Header Element from the underlying JAX-WS message's HeaderList.
 CoordinationContextInterface getCoordinationContext(javax.xml.bind.Unmarshaller unmarshaller)
           
 com.sun.xml.ws.api.addressing.WSEndpointReference getFaultTo()
           
 java.lang.String getMessageID()
           
 com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation getOperation(com.sun.xml.ws.api.model.wsdl.WSDLPort port)
          Get the wsdl bound operation for the specified port
 com.sun.xml.ws.api.addressing.WSEndpointReference getReplyTo()
           
 java.lang.String getTo()
           
 void setCoordCtxUnderstood()
          Denote that CoordinationContext SOAP Header was processed and considered understood.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message(@NotNull
               com.sun.xml.ws.api.message.Message message,
               com.sun.xml.ws.api.WSBinding wsBinding)
Public ctor takes wrapped JAX-WS message as its argument.

Parameters:
message - core message

Message

public Message(@NotNull
               com.sun.xml.ws.api.message.Message message)
Public ctor takes wrapped JAX-WS message as its argument.

Parameters:
message - core message
Method Detail

getCoordCtxHeader

@NotNull
public com.sun.xml.ws.api.message.Header getCoordCtxHeader()
Get the CoordinationContext Header Element from the underlying JAX-WS message's HeaderList. Only understand the header iff CoordinationContext is for coordinationType.

Returns:
the coordination context in this message

getCoordCtxHeader

@Nullable
public com.sun.xml.ws.api.message.Header getCoordCtxHeader(@NotNull
                                                                    java.lang.String namespace,
                                                                    @NotNull
                                                                    java.lang.String localName)
Get the CoordinationContext Header Element from the underlying JAX-WS message's HeaderList. Only understand the header iff CoordinationContext is for coordinationType.

Parameters:
namespace - namespace
localName - local name
Returns:
index of coordination context in header list or null if not found

getCoordinationContext

@Nullable
public CoordinationContextInterface getCoordinationContext(@NotNull
                                                                    javax.xml.bind.Unmarshaller unmarshaller)
                                                    throws javax.xml.bind.JAXBException
Parameters:
unmarshaller - jaxb unmarshaller
Returns:
the coordination context
Throws:
javax.xml.bind.JAXBException

setCoordCtxUnderstood

public void setCoordCtxUnderstood()
Denote that CoordinationContext SOAP Header was processed and considered understood.


getOperation

@Nullable
public com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation getOperation(@NotNull
                                                                              com.sun.xml.ws.api.model.wsdl.WSDLPort port)
Get the wsdl bound operation for the specified port

Parameters:
port - port
Returns:
the wsdl operation or null if not found

getMessageID

public java.lang.String getMessageID()
Returns:
the ws-addressing MessageId for this message

getTo

public java.lang.String getTo()
Returns:
the ws-addressing To for this message

getAction

public java.lang.String getAction()
Returns:
the ws-addressing Action for this message

getFaultTo

public com.sun.xml.ws.api.addressing.WSEndpointReference getFaultTo()
Returns:
the ws-addressing FaultTo for this message

getReplyTo

public com.sun.xml.ws.api.addressing.WSEndpointReference getReplyTo()
Returns:
the ws-addressing ReplyTo for this message