org.controlhaus.jms
Enum JMSControl.MessageType

Object
  extended by Enum<JMSControl.MessageType>
      extended by JMSControl.MessageType
All Implemented Interfaces:
Serializable, Comparable<JMSControl.MessageType>
Enclosing interface:
JMSControl

public static enum JMSControl.MessageType
extends Enum<JMSControl.MessageType>

The message type.


Enum Constant Summary
Auto
          Message is determined from the body instance class.
Bytes
          Message is a javax.jms.BytesMessage
JMSMessage
          Message is a javax.jms.Message as given by the Body parameter
Map
          Message is a javax.jms.MapMessage
Object
          Message is a javax.jms.ObjectMessage
Text
          Message is a javax.jms.TextMessage
 
Method Summary
static JMSControl.MessageType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JMSControl.MessageType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Auto

public static final JMSControl.MessageType Auto
Message is determined from the body instance class. If the method is not annotated with Body, then the message type is Map.


Text

public static final JMSControl.MessageType Text
Message is a javax.jms.TextMessage


Bytes

public static final JMSControl.MessageType Bytes
Message is a javax.jms.BytesMessage


Object

public static final JMSControl.MessageType Object
Message is a javax.jms.ObjectMessage


Map

public static final JMSControl.MessageType Map
Message is a javax.jms.MapMessage


JMSMessage

public static final JMSControl.MessageType JMSMessage
Message is a javax.jms.Message as given by the Body parameter

Method Detail

values

public static final JMSControl.MessageType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(JMSControl.MessageType c : JMSControl.MessageType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static JMSControl.MessageType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name