net.rim.device.api.io.messaging
Class MessageProcessorChain

java.lang.Object
  extended by net.rim.device.api.io.messaging.MessageProcessorChain
All Implemented Interfaces:
MessageProcessor

public class MessageProcessorChain
extends Object
implements MessageProcessor

Constructs a chain of MessageProcessors to run in sequence.

Since:
BlackBerry API 6.0.0

Constructor Summary
MessageProcessorChain(ChainableMessageProcessor[] processors)
          Constructs a MessageProcesorChain given an array of ChainableMessageProcessor objects.
 
Method Summary
 void process(Message message)
          Process the message and return the results.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

MessageProcessorChain

public MessageProcessorChain(ChainableMessageProcessor[] processors)
Constructs a MessageProcesorChain given an array of ChainableMessageProcessor objects. Processors will be executed in the order that they appear in the Array. If a given processor object appears in the array multiple times, it will be executed multiple times.

Parameters:
processors - A ChainableMessageProcessor. Processors are executed in the order they appear.
Since:
BlackBerry API 6.0.0


Method Detail

process

public void process(Message message)
             throws MessageProcessorException
Process the message and return the results.

Specified by:
process in interface MessageProcessor
Parameters:
message - The message to be processed.
Throws:
MessageProcessorException
Since:
BlackBerry API 6.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal