org.exolab.jmscts.core
Class DeliveryType

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

public class DeliveryType
extends java.lang.Object

Helper class used to indicate what delivery, destination type and message receipt mode should be used to run a particular test case against

Version:
$Revision: 1.5 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson
See Also:
DeliveryTypes, SendReceiveTestCase, SendReceiveTestRunner

Constructor Summary
DeliveryType(boolean persistent, boolean administered)
          Create a new instance
DeliveryType(boolean persistent, boolean administered, ReceiptType receipt)
          Create a new instance
 
Method Summary
static DeliveryType fromString(java.lang.String type)
          Helper to parse a DeliveryType from a string
 boolean getAdministered()
          DeReturns true if destinations are administered, false if destinations are temporary.
 int getDeliveryMode()
          Returns the delivery mode.
 ReceiptType getReceiptType()
          Returns the type of message receipt to be used
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeliveryType

public DeliveryType(boolean persistent,
                    boolean administered)
Create a new instance
Parameters:
persistent - if true, messages are to be sent using DeliveryMode.PERSISTENT delivery, else DeliveryMode.NON_PERSISTENT is used.
administered - if true, destinations are to be administered, else they are temporary

DeliveryType

public DeliveryType(boolean persistent,
                    boolean administered,
                    ReceiptType receipt)
Create a new instance
Parameters:
persistent - if true, messages are to be sent using DeliveryMode.PERSISTENT delivery, else DeliveryMode.NON_PERSISTENT is used.
administered - if true, destinations are to be administered, else they are temporary
receipt - the type of message receipt type. May be null
Method Detail

getDeliveryMode

public int getDeliveryMode()
Returns the delivery mode. This is either DeliveryMode.PERSISTENT or DeliveryMode.NON_PERSISTENT
Returns:
the delivery mode

getAdministered

public boolean getAdministered()
DeReturns true if destinations are administered, false if destinations are temporary.
Returns:
true if destinations are administered, false otherwise

getReceiptType

public ReceiptType getReceiptType()
Returns the type of message receipt to be used
Returns:
the message receipt type, or null if no receipt type is specified

fromString

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


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