public class MessagePropertiesTransformer extends AbstractMessageAwareTransformer
List
of
'deleteProperties' names to remove from the message and can also set a Map
of 'addProperties' that will be added to the message and possibly overwrite
existing properties with the same name. If overwrite
is set to
false
, and a property exists on the message (even if the value is
null
, it will be left intact. The transformer then acts as a more
gentle 'enricher'. The default setting is true
.DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypes
PHASE_NAME
Constructor and Description |
---|
MessagePropertiesTransformer() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
Map |
getAddProperties() |
List |
getDeleteProperties() |
Map |
getRenameProperties() |
boolean |
isOverwrite() |
void |
setAddProperties(Map addProperties) |
void |
setDeleteProperties(List deleteProperties) |
void |
setOverwrite(boolean overwrite) |
void |
setRenameProperties(Map renameProperties) |
Object |
transform(MuleMessage message,
String outputEncoding) |
doTransform, isSourceTypeSupported
checkReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, initialise, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceType
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public Object transform(MuleMessage message, String outputEncoding) throws TransformerException
transform
in class AbstractMessageAwareTransformer
TransformerException
public List getDeleteProperties()
public void setDeleteProperties(List deleteProperties)
public Map getAddProperties()
public void setAddProperties(Map addProperties)
public Map getRenameProperties()
public void setRenameProperties(Map renameProperties)
renameProperties
- the renameProperties to setpublic boolean isOverwrite()
public void setOverwrite(boolean overwrite)
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.