com.arjuna.mw.wst11.client
Class JaxWSHeaderContextProcessor

java.lang.Object
  extended by com.arjuna.mw.wst11.client.JaxWSHeaderContextProcessor
All Implemented Interfaces:
Handler<SOAPMessageContext>, SOAPHandler<SOAPMessageContext>

public class JaxWSHeaderContextProcessor
extends Object
implements SOAPHandler<SOAPMessageContext>

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(MessageContext messageContext)
           
 Set<QName> getHeaders()
          Gets the header blocks that can be processed by this Handler instance.
 boolean handleFault(SOAPMessageContext messageContext)
          Tidy up the Transaction/Thread association.
protected  boolean handleInbound(SOAPMessageContext messageContext)
          Tidy up the Transaction/Thread association before control is returned to the user.
 boolean handleMessage(SOAPMessageContext msgContext)
          Process a message.
protected  boolean handleOutbound(SOAPMessageContext messageContext)
          Process the tx thread context and attach serialized version as msg header
 boolean handleOutboundMessage(SOAPMessage soapMessage)
          Handle the request.
protected  void resumeTransaction(SOAPMessage soapMessage)
          Resume the current transaction.
 void setHeaders(Set headers)
          Sets the header blocks that can be processed by this Handler instance.
 
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(SOAPMessageContext msgContext)
Process a message. Determines if it is inbound or outbound and dispatches accordingly.

Specified by:
handleMessage in interface Handler<SOAPMessageContext>
Parameters:
msgContext -
Returns:
true

handleFault

public boolean handleFault(SOAPMessageContext messageContext)
Tidy up the Transaction/Thread association.

Specified by:
handleFault in interface Handler<SOAPMessageContext>
Parameters:
messageContext -
Returns:
true

close

public void close(MessageContext messageContext)
Specified by:
close in interface Handler<SOAPMessageContext>

getHeaders

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

Specified by:
getHeaders in interface SOAPHandler<SOAPMessageContext>

setHeaders

public void setHeaders(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(SOAPMessageContext messageContext)
Tidy up the Transaction/Thread association before control is returned to the user.

Parameters:
messageContext -
Returns:
true

handleOutbound

protected boolean handleOutbound(SOAPMessageContext messageContext)
Process the tx thread context and attach serialized version as msg header

Parameters:
messageContext -
Returns:
true

handleOutboundMessage

public boolean handleOutboundMessage(SOAPMessage soapMessage)
Handle the request.

Parameters:
soapMessage - The current message context.

resumeTransaction

protected void resumeTransaction(SOAPMessage soapMessage)
Resume the current transaction.



Copyright © 2012. All Rights Reserved.