cgl.narada.wsinfra.deployment.axis.wsr.handler
Class WsrTargetServiceHandler

java.lang.Object
  extended by org.apache.axis.handlers.BasicHandler
      extended by cgl.narada.wsinfra.deployment.axis.wsr.handler.WsrTargetServiceHandler
All Implemented Interfaces:
WsMessageFlow, Serializable, org.apache.axis.Handler

public class WsrTargetServiceHandler
extends org.apache.axis.handlers.BasicHandler
implements WsMessageFlow

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.axis.handlers.BasicHandler
log, makeLockable, name, options
 
Fields inherited from interface cgl.narada.wsinfra.WsMessageFlow
FROM_APPLICATION, FROM_NETWORK
 
Constructor Summary
WsrTargetServiceHandler()
          Constructor for the Target Service handler and initiates all required applications to process SOAPMessage at Target Service Application
 
Method Summary
 SOAPMessage createSOAPMessage(String from, String to, String groupId, BigInteger seqNumber)
           
 void enrouteToApplication(SOAPMessage soapMessage)
          Prepare to forward message over to the application.
 void enrouteToNetwork(SOAPMessage soapMessage)
          This method will make service call to Sink Web services instead of Source directly.
 void invoke(org.apache.axis.MessageContext messageContext)
          This method will be executed by AXIS in handler chain and implemented by sub classes of Basic Handler.
 boolean processMessage(EnvelopeDocument envelopeDocument, int direction)
          This method returns a boolean which indicates whether further processing should continue or if it should stop.
 
Methods inherited from class org.apache.axis.handlers.BasicHandler
canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsrTargetServiceHandler

public WsrTargetServiceHandler()
                        throws DeploymentException
Constructor for the Target Service handler and initiates all required applications to process SOAPMessage at Target Service Application

Throws:
DeploymentException
Method Detail

invoke

public void invoke(org.apache.axis.MessageContext messageContext)
This method will be executed by AXIS in handler chain and implemented by sub classes of Basic Handler.

Specified by:
invoke in interface org.apache.axis.Handler
Specified by:
invoke in class org.apache.axis.handlers.BasicHandler
Parameters:
messageContext -

processMessage

public boolean processMessage(EnvelopeDocument envelopeDocument,
                              int direction)
                       throws UnknownExchangeException,
                              IncorrectExchangeException,
                              MessageFlowException,
                              ProcessingException,
                              WsFaultException
This method returns a boolean which indicates whether further processing should continue or if it should stop. A return value of true indicates that processing should continue; while false indicates that processing should stop.

Throws:
UnknownExchangeException
IncorrectExchangeException
MessageFlowException
ProcessingException
WsFaultException

createSOAPMessage

public SOAPMessage createSOAPMessage(String from,
                                     String to,
                                     String groupId,
                                     BigInteger seqNumber)
Parameters:
from -
to -
groupId -
seqNumber -
Returns:
SOAPMesage

enrouteToApplication

public void enrouteToApplication(SOAPMessage soapMessage)
Description copied from interface: WsMessageFlow
Prepare to forward message over to the application. This message has been processed by the WsProcessor.

Specified by:
enrouteToApplication in interface WsMessageFlow

enrouteToNetwork

public final void enrouteToNetwork(SOAPMessage soapMessage)
                            throws MessageFlowException
This method will make service call to Sink Web services instead of Source directly.

Specified by:
enrouteToNetwork in interface WsMessageFlow
Parameters:
soapMessage -
Throws:
MessageFlowException


For comments and suggestions please send e-mail to The NaradaBrokering Project