Package com.trafficparrot.sdk.jms
Class MessageBodyType
java.lang.Object
com.trafficparrot.sdk.messaging.MessageBodyType
com.trafficparrot.sdk.jms.MessageBodyType
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic MessageBodyTypeDeprecated.A binary body held as Base64: the response's text is the Base64 of the bytes to send.static MessageBodyTypeDeprecated.A binary body held in the printable-characters encoding: the response's text is that encoding of the bytes to send.static MessageBodyTypeDeprecated.A text body: the response's text is the body.static MessageBodyTypeDeprecated.Stands in where a body type is not known or does not apply.Fields inherited from class com.trafficparrot.sdk.messaging.MessageBodyType
value -
Constructor Summary
ConstructorsConstructorDescriptionMessageBodyType(String value) Deprecated.Creates a body type from its text in a mapping file. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageBodyTypeDeprecated.The body typejava.lang.Object, which stands for a Java object of any class.static MessageBodyTypeDeprecated.The body typejavaProto/*, which stands for a protobuf message of any type with a Java class.booleancanRepresent(MessageBodyType bodyType) Deprecated.ThecanRepresentfor plugins compiled against thecom.trafficparrot.sdk.jmstypes.static MessageBodyTypejavaClassType(Object object) Deprecated.The type of a body that is this Java object.static MessageBodyTypejavaProtoMessageType(String javaAndProtoTypeName) Deprecated.The type of a body that is a protobuf message with a Java class, when the class and the message type have one name.static MessageBodyTypejavaProtoMessageType(String javaTypeName, String protoTypeName) Deprecated.The type of a body that is a protobuf message with a Java class.static MessageBodyTypeprotoMessageType(String typeName) Deprecated.The type of a body that is a protobuf message.Methods inherited from class com.trafficparrot.sdk.messaging.MessageBodyType
canRepresent, equals, hashCode, isJavaObject, isJavaProtoMessageType, isProtoBase64BytesMessageType, isProtoMessageType, javaClass, javaProtoJavaType, javaProtoMessageType, protoBase64BytesMessageType, protoMessageType, toString
-
Field Details
-
TEXT
Deprecated.A text body: the response's text is the body. -
BYTES
Deprecated.A binary body held as Base64: the response's text is the Base64 of the bytes to send. -
PRINTABLE_CHARACTERS
Deprecated.A binary body held in the printable-characters encoding: the response's text is that encoding of the bytes to send. -
UNKNOWN_BODY_TYPE
Deprecated.Stands in where a body type is not known or does not apply. Not a type to give a response.
-
-
Constructor Details
-
MessageBodyType
Deprecated.Creates a body type from its text in a mapping file.- Parameters:
value- the body type as a mapping file writes it
-
-
Method Details
-
protoMessageType
Deprecated.The type of a body that is a protobuf message.- Parameters:
typeName- the protobuf message type's name- Returns:
- the body type
proto/<typeName>
-
anyJavaProtoMessageType
Deprecated.The body typejavaProto/*, which stands for a protobuf message of any type with a Java class.- Returns:
- the body type
-
anyJavaClassType
Deprecated.The body typejava.lang.Object, which stands for a Java object of any class.- Returns:
- the body type
-
javaProtoMessageType
Deprecated.The type of a body that is a protobuf message with a Java class, when the class and the message type have one name.- Parameters:
javaAndProtoTypeName- the name the Java class and the protobuf message type share- Returns:
- the body type
javaProto/<javaAndProtoTypeName>
-
javaProtoMessageType
Deprecated.The type of a body that is a protobuf message with a Java class.- Parameters:
javaTypeName- the Java class's nameprotoTypeName- the protobuf message type's name- Returns:
- the body type
javaProto/<javaTypeName>:<protoTypeName>, orjavaProto/<javaTypeName>when the two names are the same
-
javaClassType
Deprecated.The type of a body that is this Java object.- Parameters:
object- the object- Returns:
- a body type that names the object's class, or for a dynamic proxy its invocation handler's class
-
canRepresent
Deprecated.ThecanRepresentfor plugins compiled against thecom.trafficparrot.sdk.jmstypes.- Parameters:
bodyType- the other body type- Returns:
- true if the two are equal, or each is one of
TEXT,BYTESandPRINTABLE_CHARACTERS
-
MessageBodyTypeinstead. This class extends the new location for backward compatibility - existing SDK plugins continue to work unchanged. Serialization is handled by the parent's @JsonValue annotation. The @JsonCreator here ensures Jackson creates a jms.MessageBodyType (not the parent) when deserializing to this class.