org.apache.servicemix.components.util
Class CopyTransformer

java.lang.Object
  extended by org.apache.servicemix.components.util.CopyTransformer
All Implemented Interfaces:
org.apache.servicemix.jbi.transformer.MessageTransformer

Deprecated.

public class CopyTransformer
extends Object
implements MessageTransformer

A simple transformer which copies the properties and content from the source message to the destination message.

Version:
$Revision: 690205 $

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

CopyTransformer

public CopyTransformer()
Deprecated. 
Method Detail

isCopyAttachments

public boolean isCopyAttachments()
Deprecated. 
Returns:
the copyAttachments

setCopyAttachments

public void setCopyAttachments(boolean copyAttachments)
Deprecated. 
Parameters:
copyAttachments - the copyAttachments to set

isCopyProperties

public boolean isCopyProperties()
Deprecated. 
Returns:
the copyProperties

setCopyProperties

public void setCopyProperties(boolean copyProperties)
Deprecated. 
Parameters:
copyProperties - the copyProperties to set

isCopySecuritySubject

public boolean isCopySecuritySubject()
Deprecated. 
Returns:
the copySecuritySubject

setCopySecuritySubject

public void setCopySecuritySubject(boolean copySecuritySubject)
Deprecated. 
Parameters:
copySecuritySubject - the copySecuritySubject to set

getInstance

public static CopyTransformer getInstance()
Deprecated. 
Returns the singleton instance

Returns:
the singleton instance

transform

public boolean transform(javax.jbi.messaging.MessageExchange exchange,
                         javax.jbi.messaging.NormalizedMessage from,
                         javax.jbi.messaging.NormalizedMessage to)
                  throws javax.jbi.messaging.MessagingException
Deprecated. 
Specified by:
transform in interface org.apache.servicemix.jbi.transformer.MessageTransformer
Throws:
javax.jbi.messaging.MessagingException

transform

public javax.jbi.messaging.NormalizedMessage transform(javax.jbi.messaging.MessageExchange exchange,
                                                       javax.jbi.messaging.NormalizedMessage in)
                                                throws javax.jbi.messaging.MessagingException
Deprecated. 
Specified by:
transform in interface org.apache.servicemix.jbi.transformer.MessageTransformer
Throws:
javax.jbi.messaging.MessagingException

copyProperties

public static void copyProperties(javax.jbi.messaging.NormalizedMessage from,
                                  javax.jbi.messaging.NormalizedMessage to)
Deprecated. 
Copies all of the properties from one message to another

Parameters:
from - the message containing the properties
to - the destination messages where the properties are set

copyAttachments

public static void copyAttachments(javax.jbi.messaging.NormalizedMessage from,
                                   javax.jbi.messaging.NormalizedMessage to)
                            throws javax.jbi.messaging.MessagingException
Deprecated. 
Copies the attachments from a message to another message

Parameters:
from - the message with the attachments
to - the message to which attachments are added
Throws:
javax.jbi.messaging.MessagingException - if an attachment could not be added

copySecuritySubject

public static void copySecuritySubject(javax.jbi.messaging.NormalizedMessage from,
                                       javax.jbi.messaging.NormalizedMessage to)
                                throws javax.jbi.messaging.MessagingException
Deprecated. 
Copies the subject from a message to another message

Parameters:
from - the message with the subject
to - the message to which the subject is added
Throws:
javax.jbi.messaging.MessagingException - if an attachment could not be added


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.