org.sape.smfw.messagingengine
Interface MessageHandler

All Known Implementing Classes:
CompositeMessageHandler

public interface MessageHandler

An interface to handle a message and return a response.


Method Summary
 Message handleMessage(MessageContext messageContext, Message message)
          Handles the supplied message and returns the response message.
 

Method Detail

handleMessage

public Message handleMessage(MessageContext messageContext,
                             Message message)
                      throws MessagingEngineException
Handles the supplied message and returns the response message.

Parameters:
messageContext - context of the message
message - the message to be handled
Returns:
the response message
Throws:
MessageHandlerException - if there is any error when handling the message.
MessagingEngineException


Copyright 2003 Sapient Corporation. All Rights Reserved.