org.mule.security.oauth.processor
Class AbstractListeningMessageProcessor

java.lang.Object
  extended by org.mule.devkit.processor.ExpressionEvaluatorSupport
      extended by org.mule.devkit.processor.DevkitBasedMessageProcessor
          extended by org.mule.security.oauth.processor.AbstractListeningMessageProcessor
All Implemented Interfaces:
SourceCallback, FlowConstructAware, MuleContextAware, Disposable, Initialisable, Startable, Stoppable, MessageProcessorContainer

public abstract class AbstractListeningMessageProcessor
extends DevkitBasedMessageProcessor
implements SourceCallback, MessageProcessorContainer


Field Summary
 
Fields inherited from class org.mule.devkit.processor.DevkitBasedMessageProcessor
flowConstruct, moduleObject, muleContext
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
AbstractListeningMessageProcessor(String operationName)
           
 
Method Summary
 void addMessageProcessorPathElements(MessageProcessorPathElement pathElement)
          Add the child nodes to the path element tree.
protected  MuleEvent doProcess(MuleEvent event)
          Not valid for this class or its extensions
 MessageProcessor getMessageProcessor()
          Retrieves messageProcessor
 Object process()
          Implements SourceCallback.process().
 Object process(Object message)
          Implements SourceCallback#process(org.mule.api.MuleEvent).
 Object process(Object message, Map<String,Object> properties)
          Implements SourceCallback#process(org.mule.api.MuleEvent).
 MuleEvent processEvent(MuleEvent event)
          Implements SourceCallback.processEvent(org.mule.api.MuleEvent).
 void setListener(MessageProcessor listener)
          Sets the message processor that will "listen" the events generated by this message source
 
Methods inherited from class org.mule.devkit.processor.DevkitBasedMessageProcessor
dispose, findOrCreate, getAccessTokenId, getFlowConstruct, getMuleContext, initialise, overwritePayload, process, setAccessTokenId, setFlowConstruct, setModuleObject, setMuleContext, start, stop
 
Methods inherited from class org.mule.devkit.processor.ExpressionEvaluatorSupport
computeClassHierarchy, evaluate, evaluateAndTransform, evaluateAndTransform, getAccessTokenId, isAssignableFrom, isList, isListClass, isMap, isMapClass, transform, transform, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractListeningMessageProcessor

public AbstractListeningMessageProcessor(String operationName)
Method Detail

getMessageProcessor

public MessageProcessor getMessageProcessor()
Retrieves messageProcessor


setListener

public void setListener(MessageProcessor listener)
Sets the message processor that will "listen" the events generated by this message source

Parameters:
listener - Message processor

process

public Object process(Object message)
               throws Exception
Implements SourceCallback#process(org.mule.api.MuleEvent). This message source will be passed on to the actual pojo's method as a callback mechanism.

Specified by:
process in interface SourceCallback
Parameters:
message - The payload of the message
Returns:
The response of the flow
Throws:
Exception

process

public Object process(Object message,
                      Map<String,Object> properties)
               throws Exception
Implements SourceCallback#process(org.mule.api.MuleEvent). This message source will be passed on to the actual pojo's method as a callback mechanism.

Specified by:
process in interface SourceCallback
Parameters:
message - The payload of the message
properties - Properties to be attached with inbound scope
Returns:
The response of the flow
Throws:
Exception

process

public Object process()
               throws Exception
Implements SourceCallback.process(). This message source will be passed on to the actual pojo's method as a callback mechanism.

Specified by:
process in interface SourceCallback
Returns:
The response of the flow
Throws:
Exception

processEvent

public MuleEvent processEvent(MuleEvent event)
                       throws MuleException
Implements SourceCallback.processEvent(org.mule.api.MuleEvent). This message source will be passed on to the actual pojo's method as a callback mechanism.

Specified by:
processEvent in interface SourceCallback
Returns:
The response of the flow
Throws:
MuleException

doProcess

protected MuleEvent doProcess(MuleEvent event)
                       throws Exception
Not valid for this class or its extensions

Specified by:
doProcess in class DevkitBasedMessageProcessor
Parameters:
event - the mule event
Returns:
a mule event
Throws:
UnsupportedOperationException
Exception

addMessageProcessorPathElements

public void addMessageProcessorPathElements(MessageProcessorPathElement pathElement)
Description copied from interface: MessageProcessorContainer
Add the child nodes to the path element tree.

Specified by:
addMessageProcessorPathElements in interface MessageProcessorContainer


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.