Package com.trafficparrot.sdk.messaging
Class JmsMessageType
java.lang.Object
com.trafficparrot.sdk.messaging.JmsMessageType
- Direct Known Subclasses:
JmsMessageType
Chooses the kind of JMS message a response body is sent as.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringjmsMessageType(MessageBodyType bodyType) The kind of JMS message that suits a body type: a text message forTEXT, a bytes message forBYTES,PRINTABLE_CHARACTERS, a Java object and a protobuf message.
-
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
The kind of JMS message that suits a body type: a text message forTEXT, a bytes message forBYTES,PRINTABLE_CHARACTERS, a Java object and a protobuf message.- Parameters:
bodyType- the body type; null is taken asTEXT- 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
-