org.exolab.jmscts.core
Class ReceiptType

java.lang.Object
  |
  +--org.exolab.jmscts.core.ReceiptType

public final class ReceiptType
extends java.lang.Object

Helper class used to indicate what message receipt type should be used to run a particular test case with

Version:
$Revision: 1.3 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson
See Also:
DeliveryType, MessagingBehaviour

Field Summary
static ReceiptType ASYNCHRONOUS
          Specifies to use asynchronous message receipt
static ReceiptType BROWSER
          Specifies to use a browser to receive messages.
static ReceiptType SYNCHRONOUS
          Specifies to use synchronous message receipt
 
Method Summary
 boolean equals(java.lang.Object object)
          Determines if this is equal to another object
static ReceiptType fromString(java.lang.String type)
          Helper to parse a ReceiptType from a string
 int hashCode()
          Returns a hash code value for the object
 java.lang.String toString()
          Returns a string representation of this type
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ASYNCHRONOUS

public static final ReceiptType ASYNCHRONOUS
Specifies to use asynchronous message receipt

SYNCHRONOUS

public static final ReceiptType SYNCHRONOUS
Specifies to use synchronous message receipt

BROWSER

public static final ReceiptType BROWSER
Specifies to use a browser to receive messages. This is only applicable for QueueSession sessions.
Method Detail

hashCode

public int hashCode()
Returns a hash code value for the object
Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for the object

equals

public boolean equals(java.lang.Object object)
Determines if this is equal to another object
Overrides:
equals in class java.lang.Object
Parameters:
object - the object to compare to
Returns:
true if equal, false otherwise

toString

public java.lang.String toString()
Returns a string representation of this type
Overrides:
toString in class java.lang.Object
Returns:
a string representation of this type

fromString

public static ReceiptType fromString(java.lang.String type)
Helper to parse a ReceiptType from a string
Parameters:
type - the string to parse
Returns:
the parsed receipt type


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