org.exolab.jmscts.core
Class MessagePropertyComparer

java.lang.Object
  |
  +--org.exolab.jmscts.core.MessagePropertyComparer
All Implemented Interfaces:
MessageComparer

public class MessagePropertyComparer
extends java.lang.Object
implements MessageComparer

A helper class for comparing the properties of two messages.

Version:
$Revision: 1.3 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson

Constructor Summary
MessagePropertyComparer(boolean provider)
          Construct a new instance
 
Method Summary
 boolean compare(javax.jms.Message message1, javax.jms.Message message2)
          Compare two message's properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagePropertyComparer

public MessagePropertyComparer(boolean provider)
Construct a new instance
Parameters:
provider - if true, either message may contain provider properties i.e those prefixed with JMSX or JMS_. These will be ignored.
Note that this does not include JMSXGroupID or JMSXGroupSeq properties, which may only be set by the client
Method Detail

compare

public boolean compare(javax.jms.Message message1,
                       javax.jms.Message message2)
                throws java.lang.Exception
Compare two message's properties
Specified by:
compare in interface MessageComparer
Parameters:
message1 - one message to be tested for equality
message2 - the other message to be tested for equality
Returns:
true if message1 and message2 are equal
Throws:
java.lang.Exception - for any error


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.