|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.components.util.CopyTransformer
public class CopyTransformer
A simple transformer which copies the properties and content from the source message to the destination message.
| Constructor Summary | |
|---|---|
CopyTransformer()
Deprecated. |
|
| Method Summary | |
|---|---|
static void |
copyAttachments(javax.jbi.messaging.NormalizedMessage from,
javax.jbi.messaging.NormalizedMessage to)
Deprecated. Copies the attachments from a message to another message |
static void |
copyProperties(javax.jbi.messaging.NormalizedMessage from,
javax.jbi.messaging.NormalizedMessage to)
Deprecated. Copies all of the properties from one message to another |
static void |
copySecuritySubject(javax.jbi.messaging.NormalizedMessage from,
javax.jbi.messaging.NormalizedMessage to)
Deprecated. Copies the subject from a message to another message |
static CopyTransformer |
getInstance()
Deprecated. Returns the singleton instance |
boolean |
isCopyAttachments()
Deprecated. |
boolean |
isCopyProperties()
Deprecated. |
boolean |
isCopySecuritySubject()
Deprecated. |
void |
setCopyAttachments(boolean copyAttachments)
Deprecated. |
void |
setCopyProperties(boolean copyProperties)
Deprecated. |
void |
setCopySecuritySubject(boolean copySecuritySubject)
Deprecated. |
javax.jbi.messaging.NormalizedMessage |
transform(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage in)
Deprecated. |
boolean |
transform(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage from,
javax.jbi.messaging.NormalizedMessage to)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CopyTransformer()
| Method Detail |
|---|
public boolean isCopyAttachments()
public void setCopyAttachments(boolean copyAttachments)
copyAttachments - the copyAttachments to setpublic boolean isCopyProperties()
public void setCopyProperties(boolean copyProperties)
copyProperties - the copyProperties to setpublic boolean isCopySecuritySubject()
public void setCopySecuritySubject(boolean copySecuritySubject)
copySecuritySubject - the copySecuritySubject to setpublic static CopyTransformer getInstance()
public boolean transform(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage from,
javax.jbi.messaging.NormalizedMessage to)
throws javax.jbi.messaging.MessagingException
transform in interface org.apache.servicemix.jbi.transformer.MessageTransformerjavax.jbi.messaging.MessagingException
public javax.jbi.messaging.NormalizedMessage transform(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage in)
throws javax.jbi.messaging.MessagingException
transform in interface org.apache.servicemix.jbi.transformer.MessageTransformerjavax.jbi.messaging.MessagingException
public static void copyProperties(javax.jbi.messaging.NormalizedMessage from,
javax.jbi.messaging.NormalizedMessage to)
from - the message containing the propertiesto - the destination messages where the properties are set
public static void copyAttachments(javax.jbi.messaging.NormalizedMessage from,
javax.jbi.messaging.NormalizedMessage to)
throws javax.jbi.messaging.MessagingException
from - the message with the attachmentsto - the message to which attachments are added
javax.jbi.messaging.MessagingException - if an attachment could not be added
public static void copySecuritySubject(javax.jbi.messaging.NormalizedMessage from,
javax.jbi.messaging.NormalizedMessage to)
throws javax.jbi.messaging.MessagingException
from - the message with the subjectto - the message to which the subject is added
javax.jbi.messaging.MessagingException - if an attachment could not be added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||