org.sape.smfw.messagingengine
Class CompositeMessageHandler

java.lang.Object
  extended byorg.sape.smfw.messagingengine.CompositeMessageHandler
All Implemented Interfaces:
MessageHandler

public class CompositeMessageHandler
extends Object
implements MessageHandler

MessageHandler for a CompositeMessage.


Field Summary
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
CompositeMessageHandler()
           
 
Method Summary
 Message handleMessage(MessageContext messageContext, Message message)
          Creates a MessageHandler for each child message and calls its handleMessage() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log
Constructor Detail

CompositeMessageHandler

public CompositeMessageHandler()
Method Detail

handleMessage

public Message handleMessage(MessageContext messageContext,
                             Message message)
                      throws MessagingEngineException
Creates a MessageHandler for each child message and calls its handleMessage() method. The responses returned from these calls are added to a CompositeMessage, which is then returned as the result of this call.

Specified by:
handleMessage in interface MessageHandler
Parameters:
messageContext - context of the message
message - the message to be handled
Returns:
the response message
Throws:
MessagingEngineException
See Also:
MessageHandler.handleMessage(MessageContext, Message)


Copyright 2003 Sapient Corporation. All Rights Reserved.