org.mule.routing.outbound
Class OutboundRoutingTestEvent

java.lang.Object
  extended by org.mule.routing.outbound.OutboundRoutingTestEvent
All Implemented Interfaces:
Serializable, MuleEvent

public class OutboundRoutingTestEvent
extends Object
implements MuleEvent

An event used for outbound routing tests. It is not fully fleshed out, containing only the information needed for routing.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.mule.api.MuleEvent
TIMEOUT_DO_NOT_WAIT, TIMEOUT_NOT_SET_VALUE, TIMEOUT_WAIT_FOREVER
 
Constructor Summary
OutboundRoutingTestEvent(MuleMessage message, MuleSession session, MuleContext muleContext)
           
 
Method Summary
 void captureReplyToDestination()
           
 void clearFlowVariables()
           
 void clearSessionVariables()
           
 Credentials getCredentials()
           
 String getEncoding()
           
 MessageExchangePattern getExchangePattern()
           
 FlowConstruct getFlowConstruct()
           
 Object getFlowVariable(String key)
           
 Set<String> getFlowVariableNames()
           
 String getId()
           
 MuleMessage getMessage()
           
 byte[] getMessageAsBytes()
           
 String getMessageAsString()
           
 String getMessageAsString(String encoding)
           
 String getMessageSourceName()
           
 URI getMessageSourceURI()
           
 MuleContext getMuleContext()
           
 OutputStream getOutputStream()
           
 ProcessingTime getProcessingTime()
           
 Object getProperty(String name)
           
 Object getProperty(String name, Object defaultValue)
           
 Object getReplyToDestination()
           
 ReplyToHandler getReplyToHandler()
           
 MuleSession getSession()
           
 Object getSessionVariable(String key)
           
 Set<String> getSessionVariableNames()
           
 int getTimeout()
           
 boolean isStopFurtherProcessing()
           
 boolean isSynchronous()
           
 boolean isTransacted()
           
 void removeFlowVariable(String key)
           
 void removeSessionVariable(String key)
           
 void setFlowVariable(String key, Object value)
           
 void setMessage(MuleMessage message)
           
 void setSessionVariable(String key, Object value)
           
 void setStopFurtherProcessing(boolean stopFurtherProcessing)
           
 void setTimeout(int timeout)
           
 Object transformMessage()
           
<T> T
transformMessage(Class<T> outputType)
           
<T> T
transformMessage(DataType<T> outputType)
           
 byte[] transformMessageToBytes()
          Deprecated. 
 String transformMessageToString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutboundRoutingTestEvent

public OutboundRoutingTestEvent(MuleMessage message,
                                MuleSession session,
                                MuleContext muleContext)
                         throws Exception
Throws:
Exception
Method Detail

getMessage

public MuleMessage getMessage()
Specified by:
getMessage in interface MuleEvent

getSession

public MuleSession getSession()
Specified by:
getSession in interface MuleEvent

getCredentials

public Credentials getCredentials()
Specified by:
getCredentials in interface MuleEvent

getMessageAsBytes

public byte[] getMessageAsBytes()
                         throws MuleException
Specified by:
getMessageAsBytes in interface MuleEvent
Throws:
MuleException

getMessageAsString

public String getMessageAsString()
                          throws MuleException
Specified by:
getMessageAsString in interface MuleEvent
Throws:
MuleException

getMessageAsString

public String getMessageAsString(String encoding)
                          throws MuleException
Specified by:
getMessageAsString in interface MuleEvent
Throws:
MuleException

transformMessage

public Object transformMessage()
                        throws TransformerException
Specified by:
transformMessage in interface MuleEvent
Throws:
TransformerException

transformMessage

public <T> T transformMessage(Class<T> outputType)
                   throws TransformerException
Specified by:
transformMessage in interface MuleEvent
Throws:
TransformerException

transformMessage

public <T> T transformMessage(DataType<T> outputType)
                   throws TransformerException
Specified by:
transformMessage in interface MuleEvent
Throws:
TransformerException

transformMessageToBytes

@Deprecated
public byte[] transformMessageToBytes()
                               throws TransformerException
Deprecated. 

Specified by:
transformMessageToBytes in interface MuleEvent
Throws:
TransformerException

transformMessageToString

public String transformMessageToString()
                                throws TransformerException
Specified by:
transformMessageToString in interface MuleEvent
Throws:
TransformerException

getId

public String getId()
Specified by:
getId in interface MuleEvent

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface MuleEvent

getProperty

public Object getProperty(String name,
                          Object defaultValue)
Specified by:
getProperty in interface MuleEvent

isStopFurtherProcessing

public boolean isStopFurtherProcessing()
Specified by:
isStopFurtherProcessing in interface MuleEvent

setStopFurtherProcessing

public void setStopFurtherProcessing(boolean stopFurtherProcessing)
Specified by:
setStopFurtherProcessing in interface MuleEvent

getTimeout

public int getTimeout()
Specified by:
getTimeout in interface MuleEvent

setTimeout

public void setTimeout(int timeout)
Specified by:
setTimeout in interface MuleEvent

getOutputStream

public OutputStream getOutputStream()
Specified by:
getOutputStream in interface MuleEvent

getEncoding

public String getEncoding()
Specified by:
getEncoding in interface MuleEvent

getMuleContext

public MuleContext getMuleContext()
Specified by:
getMuleContext in interface MuleEvent

getFlowConstruct

public FlowConstruct getFlowConstruct()
Specified by:
getFlowConstruct in interface MuleEvent

getProcessingTime

public ProcessingTime getProcessingTime()
Specified by:
getProcessingTime in interface MuleEvent

getExchangePattern

public MessageExchangePattern getExchangePattern()
Specified by:
getExchangePattern in interface MuleEvent

isTransacted

public boolean isTransacted()
Specified by:
isTransacted in interface MuleEvent

getMessageSourceURI

public URI getMessageSourceURI()
Specified by:
getMessageSourceURI in interface MuleEvent

getMessageSourceName

public String getMessageSourceName()
Specified by:
getMessageSourceName in interface MuleEvent

getReplyToHandler

public ReplyToHandler getReplyToHandler()
Specified by:
getReplyToHandler in interface MuleEvent

getReplyToDestination

public Object getReplyToDestination()
Specified by:
getReplyToDestination in interface MuleEvent

captureReplyToDestination

public void captureReplyToDestination()
Specified by:
captureReplyToDestination in interface MuleEvent

isSynchronous

public boolean isSynchronous()
Specified by:
isSynchronous in interface MuleEvent

setMessage

public void setMessage(MuleMessage message)
Specified by:
setMessage in interface MuleEvent

getFlowVariable

public Object getFlowVariable(String key)
Specified by:
getFlowVariable in interface MuleEvent

setFlowVariable

public void setFlowVariable(String key,
                            Object value)
Specified by:
setFlowVariable in interface MuleEvent

removeFlowVariable

public void removeFlowVariable(String key)
Specified by:
removeFlowVariable in interface MuleEvent

getFlowVariableNames

public Set<String> getFlowVariableNames()
Specified by:
getFlowVariableNames in interface MuleEvent

clearFlowVariables

public void clearFlowVariables()
Specified by:
clearFlowVariables in interface MuleEvent

getSessionVariable

public Object getSessionVariable(String key)
Specified by:
getSessionVariable in interface MuleEvent

setSessionVariable

public void setSessionVariable(String key,
                               Object value)
Specified by:
setSessionVariable in interface MuleEvent

removeSessionVariable

public void removeSessionVariable(String key)
Specified by:
removeSessionVariable in interface MuleEvent

getSessionVariableNames

public Set<String> getSessionVariableNames()
Specified by:
getSessionVariableNames in interface MuleEvent

clearSessionVariables

public void clearSessionVariables()
Specified by:
clearSessionVariables in interface MuleEvent


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