|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.DefaultMuleMessage
public class DefaultMuleMessage
DefaultMuleMessage is a wrapper that contains a payload and properties
associated with the payload.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.mule.api.ThreadSafeAccess |
|---|
ThreadSafeAccess.AccessControl |
| Nested classes/interfaces inherited from interface org.mule.util.store.DeserializationPostInitialisable |
|---|
DeserializationPostInitialisable.Implementation |
| Field Summary | |
|---|---|
protected MuleContext |
muleContext
|
protected static String |
NOT_SET
|
| Fields inherited from interface org.mule.api.ThreadSafeAccess |
|---|
READ, WRITE |
| Constructor Summary | |
|---|---|
DefaultMuleMessage(MuleMessage message)
|
|
DefaultMuleMessage(Object message,
Map<String,Object> outboundProperties,
Map<String,DataHandler> attachments,
MuleContext muleContext)
|
|
DefaultMuleMessage(Object message,
Map<String,Object> inboundProperties,
Map<String,Object> outboundProperties,
Map<String,DataHandler> attachments,
MuleContext muleContext)
|
|
DefaultMuleMessage(Object message,
Map<String,Object> outboundProperties,
MuleContext muleContext)
|
|
DefaultMuleMessage(Object message,
MuleContext muleContext)
|
|
DefaultMuleMessage(Object message,
MuleMessage previous,
MuleContext muleContext)
|
|
| Method Summary | ||
|---|---|---|
void |
addAttachment(String name,
DataHandler dataHandler)
Deprecated. |
|
void |
addInboundAttachment(String name,
DataHandler dataHandler)
|
|
void |
addInboundProperties(Map<String,Object> props)
|
|
void |
addOutboundAttachment(String name,
DataHandler dataHandler)
Allows for arbitrary data attachments to be associated with the Message. |
|
void |
addOutboundAttachment(String name,
Object object,
String contentType)
Adds an outgoing attachment to the message |
|
void |
addProperties(Map<String,Object> props)
Adds a map of properties to be associated with this message |
|
void |
addProperties(Map<String,Object> props,
PropertyScope scope)
Adds a map of properties to be associated with this message |
|
protected void |
applyAllTransformers(MuleEvent event,
List<? extends Transformer> transformers)
|
|
void |
applyTransformers(MuleEvent event,
List<? extends Transformer> transformers)
Will apply a list of transformers to the payload of the message. |
|
void |
applyTransformers(MuleEvent event,
List<? extends Transformer> transformers,
Class<?> outputType)
Will apply a list of transformers to the payload of the message. |
|
void |
applyTransformers(MuleEvent event,
Transformer... transformers)
Will apply a list of transformers to the payload of the message. |
|
void |
assertAccess(boolean write)
This method may be called before data in the object are accessed. |
|
void |
clearProperties()
Removes all properties on this message in the PropertyScope.INVOCATION and
PropertyScope.OUTBOUND. |
|
void |
clearProperties(PropertyScope scope)
Removes all properties on this message in the given scope. |
|
protected void |
copyToInbound(DefaultMuleMessage newMessage)
|
|
MuleMessage |
createInboundMessage()
Copy an inbound message to an outbound one, moving all message properties and attachments |
|
|
findPropertyInAnyScope(String name,
T defaultValue)
This method was added with the introduction of Property scopes. |
|
|
findPropertyInSpecifiedScopes(String name,
PropertyScope... scopesToSearch)
Find property in one of the specified scopes, in order |
|
DataHandler |
getAttachment(String name)
Deprecated. |
|
Set<String> |
getAttachmentNames()
Deprecated. |
|
boolean |
getBooleanProperty(String name,
boolean defaultValue)
Deprecated. |
|
int |
getCorrelationGroupSize()
Determines how many messages are in the correlation group |
|
String |
getCorrelationId()
Sets a correlationId for this message. |
|
int |
getCorrelationSequence()
Gets the sequence or ordering number for this message in the the correlation group (as defined by the correlationId) |
|
DataType<?> |
getDataType()
Returns the data type (if any) associated with the message's payload. |
|
double |
getDoubleProperty(String name,
double defaultValue)
Deprecated. |
|
String |
getEncoding()
Gets the encoding for the current message. |
|
ExceptionPayload |
getExceptionPayload()
If an error occurred during the processing of this message this will return a ErrorPayload that contains the root exception and Mule error code, plus any other releated info |
|
DataHandler |
getInboundAttachment(String name)
Retrieve an attachment with the given name. |
|
Set<String> |
getInboundAttachmentNames()
|
|
|
getInboundProperty(String name)
|
|
|
getInboundProperty(String name,
T defaultValue)
|
|
Set<String> |
getInboundPropertyNames()
|
|
int |
getIntProperty(String name,
int defaultValue)
Deprecated. |
|
|
getInvocationProperty(String name)
|
|
|
getInvocationProperty(String name,
T defaultValue)
|
|
Set<String> |
getInvocationPropertyNames()
|
|
long |
getLongProperty(String name,
long defaultValue)
Deprecated. |
|
MuleContext |
getMuleContext()
|
|
Object |
getOriginalPayload()
Returns the original payload used to create this message. |
|
DataHandler |
getOutboundAttachment(String name)
Retrieve an attachment with the given name. |
|
Set<String> |
getOutboundAttachmentNames()
|
|
|
getOutboundProperty(String name)
|
|
|
getOutboundProperty(String name,
T defaultValue)
|
|
Set<String> |
getOutboundPropertyNames()
|
|
Object |
getPayload()
|
|
|
getPayload(Class<T> outputType)
Will attempt to obtain the payload of this message with the desired Class type. |
|
|
getPayload(DataType<T> outputType)
Will attempt to obtain the payload of this message with the desired Class type. |
|
protected
|
getPayload(DataType<T> resultType,
String encoding)
Will attempt to obtain the payload of this message with the desired Class type. |
|
byte[] |
getPayloadAsBytes()
Converts the message implementation into a byte array representation |
|
String |
getPayloadAsString()
Converts the message implementation into a String representation. |
|
String |
getPayloadAsString(String encoding)
Converts the message implementation into a String representation |
|
String |
getPayloadForLogging()
Get the message payload for logging without throwing exception Converts the message implementation into a String representation. |
|
String |
getPayloadForLogging(String encoding)
Get the message payload for logging without throwing exception Converts the message implementation into a String representation. |
|
Object |
getProperty(String key)
Deprecated. |
|
Object |
getProperty(String name,
Object defaultValue)
Gets a property from the message |
|
|
getProperty(String name,
PropertyScope scope)
Gets a property from the message with a given scope. |
|
|
getProperty(String name,
PropertyScope scope,
T defaultValue)
Gets a property from the message with a given scope and provides a default value if the property is not present on the message in the scope specified. |
|
Set<String> |
getPropertyNames()
Deprecated. use getPropertyNames(org.mule.api.transport.PropertyScope) |
|
Set<String> |
getPropertyNames(PropertyScope scope)
Gets all property names in a given scope. |
|
Object |
getReplyTo()
Returns a replyTo address for this message. |
|
|
getSessionProperty(String name)
|
|
|
getSessionProperty(String name,
T defaultValue)
|
|
Set<String> |
getSessionPropertyNames()
|
|
String |
getStringProperty(String name,
String defaultValue)
Deprecated. |
|
String |
getUniqueId()
gets the unique identifier for the message. |
|
void |
initAfterDeserialisation(MuleContext muleContext)
Invoked after deserialization. |
|
boolean |
isConsumable()
Determines if the payload of this message is consumable i.e. |
|
protected boolean |
isDisabled()
|
|
protected boolean |
isPayloadConsumed(Class<?> inputCls)
Checks if the payload has been consumed for this message. |
|
protected IllegalStateException |
newException(String message)
|
|
ThreadSafeAccess |
newThreadCopy()
|
|
void |
release()
Perform any clean up operations on the message resource. |
|
void |
removeAttachment(String name)
Deprecated. |
|
void |
removeOutboundAttachment(String name)
Remove an attachment form this message with the specified name |
|
Object |
removeProperty(String key)
Removes a property on this message. |
|
Object |
removeProperty(String key,
PropertyScope scope)
Removes a property on this message from the specified scope only. |
|
void |
resetAccessControl()
This method should ONLY be used in the construction of composite ThreadSafeAccess instances. |
|
void |
setBooleanProperty(String name,
boolean value)
Deprecated. |
|
void |
setCorrelationGroupSize(int size)
Determines how many messages are in the correlation group |
|
void |
setCorrelationId(String id)
Sets a correlationId for this message. |
|
void |
setCorrelationSequence(int sequence)
Gets the sequence or ordering number for this message in the the correlation group (as defined by the correlationId) |
|
protected void |
setDataType(DataType<?> dt)
|
|
void |
setDoubleProperty(String name,
double value)
Deprecated. |
|
void |
setEncoding(String encoding)
Sets the encoding for this message |
|
void |
setExceptionPayload(ExceptionPayload exceptionPayload)
If an error occurs while processing this message, a ErrorPayload is attached which contains the root exception and Mule error code, plus any other releated info. |
|
void |
setInboundProperty(String key,
Object value)
|
|
void |
setIntProperty(String name,
int value)
Deprecated. |
|
void |
setInvocationProperty(String key,
Object value)
|
|
void |
setLongProperty(String name,
long value)
Deprecated. |
|
void |
setMimeType(String mimeType)
|
|
void |
setOutboundProperty(String key,
Object value)
|
|
void |
setPayload(Object payload)
Update the message payload. |
|
void |
setProperty(String key,
Object value)
Deprecated. use setProperty(String, Object, org.mule.api.transport.PropertyScope) or
preferrably any of the scope-specific set methods. |
|
void |
setProperty(String key,
Object value,
PropertyScope scope)
Set a property on the message. |
|
void |
setReplyTo(Object replyTo)
Sets a replyTo address for this message. |
|
void |
setSessionProperty(String key,
Object value)
|
|
void |
setStringProperty(String name,
String value)
Deprecated. |
|
void |
setUniqueId(String uid)
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String NOT_SET
protected transient MuleContext muleContext
| Constructor Detail |
|---|
public DefaultMuleMessage(Object message,
MuleContext muleContext)
public DefaultMuleMessage(Object message,
Map<String,Object> outboundProperties,
MuleContext muleContext)
public DefaultMuleMessage(Object message,
Map<String,Object> outboundProperties,
Map<String,DataHandler> attachments,
MuleContext muleContext)
public DefaultMuleMessage(Object message,
Map<String,Object> inboundProperties,
Map<String,Object> outboundProperties,
Map<String,DataHandler> attachments,
MuleContext muleContext)
public DefaultMuleMessage(Object message,
MuleMessage previous,
MuleContext muleContext)
public DefaultMuleMessage(MuleMessage message)
| Method Detail |
|---|
public <T> T getPayload(Class<T> outputType)
throws TransformerException
getPayload in interface MuleMessageoutputType - the desired return type
TransformerException - if a transformer cannot be found or there is an error during transformation of the
payload
public <T> T getPayload(DataType<T> outputType)
throws TransformerException
getPayload in interface MuleMessageoutputType - the desired return type
TransformerException - if a transformer cannot be found or there is an error during transformation of the
payloadpublic MuleContext getMuleContext()
getMuleContext in interface MuleMessage
protected <T> T getPayload(DataType<T> resultType,
String encoding)
throws TransformerException
resultType - the desired return typeencoding - the encoding to use if required
InputStream in which
case the stream will be read and the payload will become the fully read stream.
TransformerException - if a transformer cannot be found or there is an error during
transformation of the payload.protected boolean isPayloadConsumed(Class<?> inputCls)
inputCls - the input type of the message payload
public Object getOriginalPayload()
MuleMessage.applyTransformers(MuleEvent,java.util.List) or
MuleMessage.applyTransformers(MuleEvent, java.util.List, Class) is called.
getOriginalPayload in interface MuleMessage
public void setInboundProperty(String key,
Object value)
public void setInvocationProperty(String key,
Object value)
setInvocationProperty in interface MuleMessageMuleMessage.setProperty(String, Object, org.mule.api.transport.PropertyScope)
public void setOutboundProperty(String key,
Object value)
setOutboundProperty in interface MuleMessageMuleMessage.setProperty(String, Object, org.mule.api.transport.PropertyScope)
public void setSessionProperty(String key,
Object value)
setSessionProperty in interface MuleMessage
public void setProperty(String key,
Object value,
PropertyScope scope)
setProperty in interface MuleMessagekey - the key on which to associate the valuevalue - the property valuescope - The scope at which to set the property atPropertyScope,
MuleMessage.setInvocationProperty(String, Object),
MuleMessage.setOutboundProperty(String, Object),
MuleMessage.setSessionProperty(String, Object)@Deprecated public Object getProperty(String key)
getProperty in interface MuleMessageMuleMessage.getInboundProperty(String),
MuleMessage.getOutboundProperty(String),
MuleMessage.getInvocationProperty(String),
MuleMessage.getSessionProperty(String)public Object removeProperty(String key)
removeProperty in interface MuleMessagekey - the property key to remove
public Object removeProperty(String key,
PropertyScope scope)
removeProperty in interface MuleMessagekey - the property key to removescope - The scope at which to set the property at
@Deprecated
public void setProperty(String key,
Object value)
setProperty(String, Object, org.mule.api.transport.PropertyScope) or
preferrably any of the scope-specific set methods.
setProperty in interface MuleMessagekey - the key on which to associate the valuevalue - the property valuesetInboundProperty(String, Object),
setInvocationProperty(String, Object),
setOutboundProperty(String, Object),
setSessionProperty(String, Object)
public final String getPayloadAsString()
throws Exception
getPayloadAsString in interface MuleMessageException - Implementation may throw an endpoint specific exceptionpublic String getPayloadForLogging(String encoding)
getPayloadForLogging in interface MuleMessagepublic String getPayloadForLogging()
getPayloadForLogging in interface MuleMessage
public byte[] getPayloadAsBytes()
throws Exception
getPayloadAsBytes in interface MuleMessageException - Implemetation may throw an endpoint specific exception
public String getPayloadAsString(String encoding)
throws Exception
getPayloadAsString in interface MuleMessageencoding - The encoding to use when transforming the message (if
necessary). The parameter is used when converting from a byte array
Exception - Implementation may throw an endpoint specific exception@Deprecated public Set<String> getPropertyNames()
getPropertyNames(org.mule.api.transport.PropertyScope)
getPropertyNames in interface MuleMessagepublic Set<String> getPropertyNames(PropertyScope scope)
getPropertyNames in interface MuleMessagescope - the scope of property names
MuleMessage.getInvocationPropertyNames(),
MuleMessage.getInboundPropertyNames(),
MuleMessage.getOutboundPropertyNames(),
MuleMessage.getSessionPropertyNames()public Set<String> getInvocationPropertyNames()
getInvocationPropertyNames in interface MuleMessagepublic Set<String> getInboundPropertyNames()
getInboundPropertyNames in interface MuleMessagepublic Set<String> getOutboundPropertyNames()
getOutboundPropertyNames in interface MuleMessagepublic Set<String> getSessionPropertyNames()
getSessionPropertyNames in interface MuleMessagepublic String getUniqueId()
getUniqueId in interface MuleMessagepublic void setUniqueId(String uid)
public Object getProperty(String name,
Object defaultValue)
getProperty in interface MuleMessagename - the name or key of the property. This must be non-null.defaultValue - a default value if the property doesn't exist in the event. This can be null.
MuleMessage.getInboundProperty(String),
MuleMessage.getOutboundProperty(String),
MuleMessage.getInvocationProperty(String),
MuleMessage.getSessionProperty(String)
public <T> T getProperty(String name,
PropertyScope scope)
getProperty in interface MuleMessagename - the name or key of the property. This must be non-null.scope - The scope of the property to retrieve. This must be non-null.
MuleMessage.getInboundProperty(String),
MuleMessage.getOutboundProperty(String),
MuleMessage.getInvocationProperty(String),
MuleMessage.getSessionProperty(String)
public <T> T getInboundProperty(String name,
T defaultValue)
getInboundProperty in interface MuleMessageMuleMessage.getProperty(String, org.mule.api.transport.PropertyScope, Object)public <T> T getInboundProperty(String name)
getInboundProperty in interface MuleMessageMuleMessage.getProperty(String, org.mule.api.transport.PropertyScope, Object)
public <T> T getInvocationProperty(String name,
T defaultValue)
getInvocationProperty in interface MuleMessageMuleMessage.getProperty(String, org.mule.api.transport.PropertyScope, Object)public <T> T getInvocationProperty(String name)
getInvocationProperty in interface MuleMessageMuleMessage.getProperty(String, org.mule.api.transport.PropertyScope, Object)
public <T> T getOutboundProperty(String name,
T defaultValue)
getOutboundProperty in interface MuleMessageMuleMessage.getProperty(String, org.mule.api.transport.PropertyScope, Object)public <T> T getOutboundProperty(String name)
getOutboundProperty in interface MuleMessageMuleMessage.getProperty(String, org.mule.api.transport.PropertyScope, Object)
public <T> T getSessionProperty(String name,
T defaultValue)
getSessionProperty in interface MuleMessagepublic <T> T getSessionProperty(String name)
getSessionProperty in interface MuleMessage
public <T> T getProperty(String name,
PropertyScope scope,
T defaultValue)
getProperty in interface MuleMessageT - the defaultValue type ,this is used to validate the property value typename - the name or key of the property. This must be non-null.scope - The scope of the property to retrieve. This must be non-null.defaultValue - the value to return if the property is not in the scope provided. Can be null
public void setCorrelationId(String id)
setCorrelationId in interface MuleMessageid - the Id reference for this relationshippublic String getCorrelationId()
getCorrelationId in interface MuleMessagepublic void setReplyTo(Object replyTo)
setReplyTo in interface MuleMessagereplyTo - the endpointUri url to reply topublic Object getReplyTo()
getReplyTo in interface MuleMessagepublic int getCorrelationSequence()
getCorrelationSequence in interface MuleMessagepublic void setCorrelationSequence(int sequence)
setCorrelationSequence in interface MuleMessagesequence - the sequence number or -1 if the sequence is not importantpublic int getCorrelationGroupSize()
getCorrelationGroupSize in interface MuleMessagepublic void setCorrelationGroupSize(int size)
setCorrelationGroupSize in interface MuleMessagesize - the total messages in this group or -1 if the size is not knownpublic ExceptionPayload getExceptionPayload()
getExceptionPayload in interface MuleMessagepublic void setExceptionPayload(ExceptionPayload exceptionPayload)
setExceptionPayload in interface MuleMessageexceptionPayload - The exception payload to attach to this messagepublic String toString()
toString in class Object
@Deprecated
public void addAttachment(String name,
DataHandler dataHandler)
throws Exception
addAttachment in interface MuleMessagename - the name to associate with the attachmentdataHandler - The attachment datahandler to use. This will be used to interact with the attachment data
Exception - if the attachment cannot be added for any reasonDataHandler
@Deprecated
public void removeAttachment(String name)
throws Exception
removeAttachment in interface MuleMessagename - the name of the attachment to remove. If the attachment does not exist, the request may be ignored
Exception - different messaging systems handle attachments differently, as such some will throw an exception
if an attachment does dot exist.@Deprecated public DataHandler getAttachment(String name)
getAttachment in interface MuleMessagename - the name of the attachment to retrieve
DataHandler@Deprecated public Set<String> getAttachmentNames()
getAttachmentNames in interface MuleMessage
public void addOutboundAttachment(String name,
DataHandler dataHandler)
throws Exception
MuleMessage
addOutboundAttachment in interface MuleMessagename - the name to associate with the attachmentdataHandler - The attachment DataHandler to use. This will be used to interact with the attachment data
Exception - if the attachment cannot be added for any reasonDataHandler
public void addInboundAttachment(String name,
DataHandler dataHandler)
throws Exception
Exception
public void addOutboundAttachment(String name,
Object object,
String contentType)
throws Exception
MuleMessage
addOutboundAttachment in interface MuleMessagename - the name to associate with the attachmentsobject - the input stream to the contents of the attachment. This object can either be a URL, which will construct a URL data source, or
a File, which will construct a file data source. Any other object will be used as the raw contents of the attachmentcontentType - the content type of the attachment. Note that the charset attribute can be specifed too i.e. text/plain;charset=UTF-8
Exception - if the attachment cannot be read or created
public void removeOutboundAttachment(String name)
throws Exception
MuleMessage
removeOutboundAttachment in interface MuleMessagename - the name of the attachment to remove. If the attachment does not exist, the request may be ignored
Exception - different messaging systems handle attachments differently, as such some will throw an exception
if an attachment does dot exist.public DataHandler getInboundAttachment(String name)
MuleMessage
getInboundAttachment in interface MuleMessagename - the name of the attachment to retrieve
DataHandlerpublic DataHandler getOutboundAttachment(String name)
MuleMessage
getOutboundAttachment in interface MuleMessagename - the name of the attachment to retrieve
DataHandlerpublic Set<String> getInboundAttachmentNames()
getInboundAttachmentNames in interface MuleMessagepublic Set<String> getOutboundAttachmentNames()
getOutboundAttachmentNames in interface MuleMessage
public <T> T findPropertyInAnyScope(String name,
T defaultValue)
MuleMessage
findPropertyInAnyScope in interface MuleMessageT - The Type of the property value that will be returnedname - the name of the property to look fordefaultValue - the default value that will be returned if the property is not found
public String getEncoding()
getEncoding in interface MuleMessagepublic void setEncoding(String encoding)
setEncoding in interface MuleMessageencoding - the encoding to usepublic void setMimeType(String mimeType)
mimeType - public void addProperties(Map<String,Object> props)
addProperties in interface MuleMessageprops - the properties add to this message
public void addProperties(Map<String,Object> props,
PropertyScope scope)
addProperties in interface MuleMessageprops - the properties add to this messagescope - the scope in which the properties should be addedpublic void addInboundProperties(Map<String,Object> props)
public void clearProperties()
PropertyScope.INVOCATION and
PropertyScope.OUTBOUND.
clearProperties in interface MuleMessagepublic void clearProperties(PropertyScope scope)
clearProperties in interface MuleMessagescope - the property scope to clearpublic Object getPayload()
getPayload in interface MuleMessagepublic void setPayload(Object payload)
setPayload in interface MuleMessagepayload - the object to assign as the message payloadpublic void release()
release in interface MuleMessage
public void applyTransformers(MuleEvent event,
List<? extends Transformer> transformers)
throws MuleException
applyTransformers in interface MuleMessageevent - the event being processedtransformers - the transformers to apply to the message payload
TransformerException - if a transformation error occurs or one or more of the transformers passed in a
are incompatible with the message payload
MuleException
public void applyTransformers(MuleEvent event,
Transformer... transformers)
throws MuleException
applyTransformers in interface MuleMessageevent - the event being processedtransformers - the transformers to apply to the message payload
TransformerException - if a transformation error occurs or one or more of the transformers passed in a
are incompatible with the message payload
MuleException
public void applyTransformers(MuleEvent event,
List<? extends Transformer> transformers,
Class<?> outputType)
throws MuleException
MuleMessage
applyTransformers in interface MuleMessageevent - the event being processedtransformers - the transformers to apply to the message payloadoutputType - the required output type for this transformation. by adding this parameter some additional
transformations will occur on the message payload to ensure that the final payload is of the specified type.
If no transformers can be found in the registry that can transform from the return type of the transformation
list to the outputType and exception will be thrown
TransformerException - if a transformation error occurs or one or more of the transformers passed in a
are incompatible with the message payload
MuleException
protected void applyAllTransformers(MuleEvent event,
List<? extends Transformer> transformers)
throws MuleException
MuleExceptionprotected void setDataType(DataType<?> dt)
public ThreadSafeAccess newThreadCopy()
newThreadCopy in interface ThreadSafeAccesspublic void resetAccessControl()
resetAccessControl in interface ThreadSafeAccesspublic void assertAccess(boolean write)
assertAccess in interface ThreadSafeAccesswrite - True if the access will mutate values.protected boolean isDisabled()
protected IllegalStateException newException(String message)
public boolean isConsumable()
public void initAfterDeserialisation(MuleContext muleContext)
throws MuleException
DeserializationPostInitialisable is used. This will get invoked
after the object has been deserialized passing in the current mulecontext when using either
SerializationWireFormat,
SerializedMuleMessageWireFormat or the
ByteArrayToSerializable transformer.
muleContext - the current muleContext instance
MuleException - if there is an error initializingpublic DataType<?> getDataType()
MuleMessage
getDataType in interface MuleMessage
@Deprecated
public int getIntProperty(String name,
int defaultValue)
getIntProperty in interface MuleMessagename - the name or key of the propertydefaultValue - a default value if the property doesn't exist in the event
@Deprecated
public long getLongProperty(String name,
long defaultValue)
getLongProperty in interface MuleMessagename - the name or key of the propertydefaultValue - a default value if the property doesn't exist in the event
@Deprecated
public double getDoubleProperty(String name,
double defaultValue)
getDoubleProperty in interface MuleMessagename - the name or key of the propertydefaultValue - a default value if the property doesn't exist in the event
@Deprecated
public boolean getBooleanProperty(String name,
boolean defaultValue)
getBooleanProperty in interface MuleMessagename - the name or key of the propertydefaultValue - a default value if the property doesn't exist in the event
@Deprecated
public void setBooleanProperty(String name,
boolean value)
setBooleanProperty in interface MuleMessagename - the property name or keyvalue - the property value
@Deprecated
public void setIntProperty(String name,
int value)
setIntProperty in interface MuleMessagename - the property name or keyvalue - the property value
@Deprecated
public void setLongProperty(String name,
long value)
setLongProperty in interface MuleMessagename - the property name or keyvalue - the property value
@Deprecated
public void setDoubleProperty(String name,
double value)
setDoubleProperty in interface MuleMessagename - the property name or keyvalue - the property value
@Deprecated
public String getStringProperty(String name,
String defaultValue)
getStringProperty in interface MuleMessagename - the name or key of the propertydefaultValue - a default value if the property doesn't exist in the event
@Deprecated
public void setStringProperty(String name,
String value)
setStringProperty in interface MuleMessagename - the property name or keyvalue - the property value
public <T> T findPropertyInSpecifiedScopes(String name,
PropertyScope... scopesToSearch)
public MuleMessage createInboundMessage()
throws Exception
createInboundMessage in interface MuleMessageException
protected void copyToInbound(DefaultMuleMessage newMessage)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||