org.mule.routing.inbound
Class ForwardingConsumer
java.lang.Object
org.mule.routing.AbstractRouter
org.mule.routing.inbound.SelectiveConsumer
org.mule.routing.inbound.ForwardingConsumer
- All Implemented Interfaces:
- MuleContextAware, Disposable, Initialisable, InboundRouter, Router
public class ForwardingConsumer
- extends SelectiveConsumer
ForwardingConsumer
is used to forward an incoming event over
another transport without invoking a service. This can be used to implement a
bridge accross different transports.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForwardingConsumer
public ForwardingConsumer()
process
public MuleEvent[] process(MuleEvent event)
throws MessagingException
- Description copied from interface:
InboundRouter
- A received MuleEvent is passed to this method for processing. The router can
control processing by either 1. passing back a null to indicate that the
router has either discarded the event of the event has been stored for further
processing. A reaosn for storing the event might be that other events in it's
correlation group are expected to be received. 2. Pass back an array of one or
more events to be processed by the service. Often 1 event is returned, i.e.
in the case of event aggregation. The router may return an array of events if
a set of events have been resequenced or multiple events have been generated
from a single event.
- Specified by:
process
in interface InboundRouter
- Overrides:
process
in class SelectiveConsumer
- Parameters:
event
- the event received by the inbound endpoint before it is passed to
the service
- Returns:
- null to indicate the event has been stored/destroyed or an array of
events to be processed by the service
- Throws:
MessagingException
- if an error occurs during processing of the event
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.