org.mule.routing.outbound
Class OutboundRoutingTestEvent

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

public class OutboundRoutingTestEvent
extends java.lang.Object
implements MuleEvent

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


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)
           
 
Method Summary
 Credentials getCredentials()
           
 java.lang.String getEncoding()
           
 ImmutableEndpoint getEndpoint()
           
 FlowConstruct getFlowConstruct()
           
 java.lang.String getId()
           
 MuleMessage getMessage()
           
 byte[] getMessageAsBytes()
           
 java.lang.String getMessageAsString()
           
 java.lang.String getMessageAsString(java.lang.String encoding)
           
 MuleContext getMuleContext()
           
 java.io.OutputStream getOutputStream()
           
 java.lang.Object getProperty(java.lang.String name)
           
 java.lang.Object getProperty(java.lang.String name, java.lang.Object defaultValue)
           
 FlowConstruct getService()
           
 MuleSession getSession()
           
 int getTimeout()
           
 boolean isStopFurtherProcessing()
           
 boolean isSynchronous()
           
 void setStopFurtherProcessing(boolean stopFurtherProcessing)
           
 void setTimeout(int timeout)
           
 java.lang.Object transformMessage()
           
<T> T
transformMessage(java.lang.Class<T> outputType)
           
<T> T
transformMessage(DataType<T> outputType)
           
 byte[] transformMessageToBytes()
          Deprecated. 
 java.lang.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)
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 java.lang.String getMessageAsString()
                                    throws MuleException
Specified by:
getMessageAsString in interface MuleEvent
Throws:
MuleException

getMessageAsString

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

transformMessage

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

transformMessage

public <T> T transformMessage(java.lang.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 java.lang.String transformMessageToString()
                                          throws TransformerException
Specified by:
transformMessageToString in interface MuleEvent
Throws:
TransformerException

getId

public java.lang.String getId()
Specified by:
getId in interface MuleEvent

getProperty

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

getProperty

public java.lang.Object getProperty(java.lang.String name,
                                    java.lang.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 java.io.OutputStream getOutputStream()
Specified by:
getOutputStream in interface MuleEvent

getEncoding

public java.lang.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


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