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

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

public class WsrSinkHandler
extends WsInfraAxisHandler

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
WsrSinkHandler()
          Constructor for the Sink handler and It will initiates all required services for Wsr Hanlder to process SOAPMessage.
 
Method Summary
 void enrouteToApplication(SOAPMessage soapMessage)
          Routes a message enroute to the application.
 void invoke(org.apache.axis.MessageContext messageContext)
          This method will be the one all implementation classes has to overwrite.
 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 cgl.narada.wsinfra.deployment.axis.WsInfraAxisHandler
addHandler, enrouteToNetwork, getSoapActionURI, getSOAPContext, initilizeInfraAxisHandler, setIdentifier, setSoapActionURI
 
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

WsrSinkHandler

public WsrSinkHandler()
               throws DeploymentException
Constructor for the Sink handler and It will initiates all required services for Wsr Hanlder to process SOAPMessage.

Throws:
DeploymentException
Method Detail

invoke

public void invoke(org.apache.axis.MessageContext messageContext)
This method will be the one all implementation classes has to overwrite. This will executed by AXIS Engine.

Specified by:
invoke in interface org.apache.axis.Handler
Overrides:
invoke in class WsInfraAxisHandler
Parameters:
messageContext -

processMessage

public boolean processMessage(EnvelopeDocument envelopeDocument,
                              int direction)
                       throws UnknownExchangeException,
                              IncorrectExchangeException,
                              MessageFlowException,
                              ProcessingException
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

enrouteToApplication

public final void enrouteToApplication(SOAPMessage soapMessage)
                                throws MessageFlowException
Description copied from class: WsInfraAxisHandler
Routes a message enroute to the application. The message is basically routed to a neighboring filter which is nearer to the application.

Specified by:
enrouteToApplication in interface WsMessageFlow
Overrides:
enrouteToApplication in class WsInfraAxisHandler
Throws:
MessageFlowException


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