Class JmsMessageType

java.lang.Object
com.trafficparrot.sdk.messaging.JmsMessageType
Direct Known Subclasses:
JmsMessageType

public class JmsMessageType extends Object
Chooses the kind of JMS message a response body is sent as.
  • Constructor Details

    • JmsMessageType

      public JmsMessageType()
      Not needed, since the one method is static. Declared so that code which creates an instance keeps working.
  • Method Details

    • jmsMessageType

      public static String jmsMessageType(MessageBodyType bodyType)
      The kind of JMS message that suits a body type: a text message for TEXT, a bytes message for BYTES, PRINTABLE_CHARACTERS, a Java object and a protobuf message.
      Parameters:
      bodyType - the body type; null is taken as TEXT
      Returns:
      "javax.jms.TextMessage" or "javax.jms.BytesMessage"
      Throws:
      IllegalStateException - if the body type is none of those, for example the name of a class that is not on Traffic Parrot's classpath