com.arjuna.mw.wst.client
Class JaxWSHeaderContextProcessor

java.lang.Object
  extended by com.arjuna.mw.wst.client.JaxBaseHeaderContextProcessor
      extended by com.arjuna.mw.wst.client.JaxWSHeaderContextProcessor
All Implemented Interfaces:
javax.xml.ws.handler.Handler, javax.xml.ws.handler.soap.SOAPHandler

public class JaxWSHeaderContextProcessor
extends JaxBaseHeaderContextProcessor
implements javax.xml.ws.handler.soap.SOAPHandler

The class is used to perform WS-Transaction context insertion and extraction for application level SOAP messages using JaxWS. This is the client side version.


Constructor Summary
JaxWSHeaderContextProcessor()
           
 
Method Summary
 void close(javax.xml.ws.handler.MessageContext messageContext)
           
 java.util.Set<javax.xml.namespace.QName> getHeaders()
          Gets the header blocks that can be processed by this Handler instance.
 boolean handleFault(javax.xml.ws.handler.MessageContext messageContext)
          Tidy up the Transaction/Thread association.
protected  boolean handleInbound(javax.xml.ws.handler.MessageContext messageContext)
          Tidy up the Transaction/Thread association before control is returned to the user.
 boolean handleMessage(javax.xml.ws.handler.MessageContext msgContext)
          Process a message.
protected  boolean handleOutbound(javax.xml.ws.handler.MessageContext messageContext)
          Process the tx thread context and attach serialized version as msg header
 void setHeaders(java.util.Set headers)
          Sets the header blocks that can be processed by this Handler instance.
 
Methods inherited from class com.arjuna.mw.wst.client.JaxBaseHeaderContextProcessor
handleOutboundMessage, resumeTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxWSHeaderContextProcessor

public JaxWSHeaderContextProcessor()
Method Detail

handleMessage

public boolean handleMessage(javax.xml.ws.handler.MessageContext msgContext)
Process a message. Determines if it is inbound or outbound and dispatches accordingly.

Specified by:
handleMessage in interface javax.xml.ws.handler.Handler
Parameters:
msgContext -
Returns:
true

handleFault

public boolean handleFault(javax.xml.ws.handler.MessageContext messageContext)
Tidy up the Transaction/Thread association.

Specified by:
handleFault in interface javax.xml.ws.handler.Handler
Parameters:
messageContext -
Returns:
true

close

public void close(javax.xml.ws.handler.MessageContext messageContext)
Specified by:
close in interface javax.xml.ws.handler.Handler

getHeaders

public java.util.Set<javax.xml.namespace.QName> getHeaders()
Gets the header blocks that can be processed by this Handler instance.

Specified by:
getHeaders in interface javax.xml.ws.handler.soap.SOAPHandler

setHeaders

public void setHeaders(java.util.Set headers)
Sets the header blocks that can be processed by this Handler instance. Note: this impl ignores this function's args as the values are hardcoded.


handleInbound

protected boolean handleInbound(javax.xml.ws.handler.MessageContext messageContext)
Tidy up the Transaction/Thread association before control is returned to the user.

Parameters:
messageContext -
Returns:
true

handleOutbound

protected boolean handleOutbound(javax.xml.ws.handler.MessageContext messageContext)
Process the tx thread context and attach serialized version as msg header

Parameters:
messageContext -
Returns:
true