org.apache.servicemix.jbi.util
Class MessageCopier

java.lang.Object
  extended by org.apache.servicemix.jbi.util.MessageCopier

Deprecated. use CopyTransformer instead

public class MessageCopier
extends Object

A thread-safe copier for NormalizedMessage onjects.

Author:
Martin Krasser

Constructor Summary
MessageCopier()
          Deprecated. Creates a new message copier instance that creates full (deep) message copies.
MessageCopier(boolean copySubject, boolean copyContent, boolean copyProperties, boolean copyAttachments)
          Deprecated. Create a new message copier instance.
 
Method Summary
 javax.jbi.messaging.NormalizedMessage copy(javax.jbi.messaging.NormalizedMessage message)
          Deprecated. Copies messages under consideration of the copySubject, copyContent, copyProperties, copyAttachments properties.
 boolean isCopyAttachments()
          Deprecated.  
 boolean isCopyContent()
          Deprecated.  
 boolean isCopyProperties()
          Deprecated.  
 boolean isCopySubject()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageCopier

public MessageCopier()
Deprecated. 
Creates a new message copier instance that creates full (deep) message copies.


MessageCopier

public MessageCopier(boolean copySubject,
                     boolean copyContent,
                     boolean copyProperties,
                     boolean copyAttachments)
Deprecated. 
Create a new message copier instance.

Parameters:
copySubject - true if subject shall be copied.
copyContent - true if content shall be copied
copyProperties - true if properties shall be copied
copyAttachments - true if attachments shall be copied
Method Detail

copy

public javax.jbi.messaging.NormalizedMessage copy(javax.jbi.messaging.NormalizedMessage message)
                                           throws javax.jbi.messaging.MessagingException
Deprecated. 
Copies messages under consideration of the copySubject, copyContent, copyProperties, copyAttachments properties.

Parameters:
message - original message.
Returns:
a copy of the original message.
Throws:
javax.jbi.messaging.MessagingException - if a system-level exception occurs.

isCopyAttachments

public boolean isCopyAttachments()
Deprecated. 

isCopyContent

public boolean isCopyContent()
Deprecated. 

isCopyProperties

public boolean isCopyProperties()
Deprecated. 

isCopySubject

public boolean isCopySubject()
Deprecated. 


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