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)
           
OutboundRoutingTestEvent(MuleMessage message, MuleSession session, ImmutableEndpoint endpoint)
           
 
Method Summary
 void captureReplyToDestination()
           
 Credentials getCredentials()
           
 String getEncoding()
           
 ImmutableEndpoint getEndpoint()
           
 FlowConstruct getFlowConstruct()
           
 String getId()
           
 MuleMessage getMessage()
           
 byte[] getMessageAsBytes()
           
 String getMessageAsString()
           
 String getMessageAsString(String encoding)
           
 MuleContext getMuleContext()
           
 OutputStream getOutputStream()
           
 ProcessingTime getProcessingTime()
           
 Object getProperty(String name)
           
 Object getProperty(String name, Object defaultValue)
           
 Object getReplyToDestination()
           
 ReplyToHandler getReplyToHandler()
           
 FlowConstruct getService()
           
 MuleSession getSession()
           
 int getTimeout()
           
 boolean isStopFurtherProcessing()
           
 boolean isSynchronous()
           
 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)

OutboundRoutingTestEvent

public OutboundRoutingTestEvent(MuleMessage message,
                                MuleSession session,
                                ImmutableEndpoint endpoint)
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

getEndpoint

public ImmutableEndpoint getEndpoint()
Specified by:
getEndpoint in interface MuleEvent

getService

public FlowConstruct getService()

isStopFurtherProcessing

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

setStopFurtherProcessing

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

isSynchronous

public boolean isSynchronous()

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

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


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