Uses of Class
com.trafficparrot.sdk.messaging.MessageBodyType
Packages that use MessageBodyType
Package
Description
File message extensions: the base class of a response transformer for file messages,
FileMessageResponseTransformer, with the request file and the response it works
with.The names the JMS classes had before they moved to
com.trafficparrot.sdk.messaging.JMS extensions: the base classes of a response transformer for JMS mappings,
JmsResponseTransformer and
TextJmsResponseTransformer, with the response they work with.-
Uses of MessageBodyType in com.trafficparrot.sdk.file
Fields in com.trafficparrot.sdk.file declared as MessageBodyTypeModifier and TypeFieldDescriptionfinal MessageBodyTypeFileMessageResponse.bodyTypeHow the body is written:BYTESas the bytes its Base64 text encodes, any other type as text.Constructors in com.trafficparrot.sdk.file with parameters of type MessageBodyTypeModifierConstructorDescriptionFileMessageResponse(Destination destination, String fileMessageResponseTransformerClassName, String fileName, String text, MessageBodyType bodyType) Creates a response whose body is given inline, with a body type: for a transformer that answers with binary content, passFileMessageResponse.NO_TRANSFORMER, the content as Base64 andMessageBodyType.BYTES.FileMessageResponse(Destination destination, String fileMessageResponseTransformerClassName, String fileName, String text, String bodyFileName, MessageBodyType bodyType) Creates a response with every field a mapping file can set. -
Uses of MessageBodyType in com.trafficparrot.sdk.jms
Subclasses of MessageBodyType in com.trafficparrot.sdk.jmsConstructors in com.trafficparrot.sdk.jms with parameters of type MessageBodyTypeModifierConstructorDescriptionJmsResponse(Destination destination, String jmsResponseTransformerClassName, com.github.tomakehurst.wiremock.extension.Parameters jmsResponseTransformerParameters, String text, String bodyFileName, MessageBodyType bodyType, String jmsMessageType, List<JmsProperty> properties, Long fixedDelayInMilliseconds, Optional<DestinationLookup> destinationLookup, Optional<javax.jms.Message> responseMessage) Deprecated.Creates a response with every field a mapping file can set, as the constructor ofJmsResponsewith these parameters does.JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text, MessageBodyType bodyType) Deprecated.Creates a response with an inline body of a given type, no JMS properties and no delay.JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text, MessageBodyType bodyType, String jmsMessageType, List<JmsProperty> properties, Long fixedDelayInMilliseconds) Deprecated.Creates a response with an inline body, JMS properties, a delay and a JMS message type.JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text, MessageBodyType bodyType, List<JmsProperty> properties, long fixedDelayInMilliseconds) Deprecated.Creates a response with an inline body, JMS properties and a delay. -
Uses of MessageBodyType in com.trafficparrot.sdk.messaging
Fields in com.trafficparrot.sdk.messaging declared as MessageBodyTypeModifier and TypeFieldDescriptionfinal MessageBodyTypeJmsResponse.bodyTypeHowJmsResponse.textis turned into the message body;TEXTwhen none is given.static final MessageBodyTypeMessageBodyType.BYTESA binary body held as Base64: the response's text is the Base64 of the bytes to send.static final MessageBodyTypeMessageBodyType.PRINTABLE_CHARACTERSA binary body held in the printable-characters encoding, which keeps the ASCII characters in it readable: the response's text is that encoding of the bytes to send.static final MessageBodyTypeMessageBodyType.TEXTA text body: the response's text is the body.static final MessageBodyTypeMessageBodyType.UNKNOWN_BODY_TYPEStands in where a body type is not known or does not apply.Methods in com.trafficparrot.sdk.messaging that return MessageBodyTypeModifier and TypeMethodDescriptionstatic MessageBodyTypeMessageBodyType.anyJavaClassType()The body typejava.lang.Object, which stands for a Java object of any class.static MessageBodyTypeMessageBodyType.anyJavaProtoMessageType()The body typejavaProto/*, which stands for a protobuf message of any type with a Java class.static MessageBodyTypeMessageBodyType.javaClassType(Object object) The type of a body that is this Java object.static MessageBodyTypeMessageBodyType.javaProtoMessageType(String javaAndProtoTypeName) 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 MessageBodyTypeMessageBodyType.javaProtoMessageType(String javaTypeName, String protoTypeName) The type of a body that is a protobuf message with a Java class.static MessageBodyTypeMessageBodyType.protoMessageType(String typeName) The type of a body that is a protobuf message.Methods in com.trafficparrot.sdk.messaging with parameters of type MessageBodyTypeModifier and TypeMethodDescriptionbooleanMessageBodyType.canRepresent(MessageBodyType bodyType) Whether a body of this type can stand for a body of another type.static StringJmsMessageType.jmsMessageType(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.Constructors in com.trafficparrot.sdk.messaging with parameters of type MessageBodyTypeModifierConstructorDescriptionprotectedJmsResponse(Destination destination, String jmsResponseTransformerClassName, com.github.tomakehurst.wiremock.extension.Parameters jmsResponseTransformerParameters, String text, String bodyFileName, MessageBodyType bodyType, String jmsMessageType, List<? extends JmsProperty> properties, Long fixedDelayInMilliseconds, Optional<DestinationLookup> destinationLookup, Optional<javax.jms.Message> responseMessage, Optional<jakarta.jms.Message> jakartaResponseMessage, String resolvedText) Creates a response with every field, for a subclass.JmsResponse(Destination destination, String jmsResponseTransformerClassName, com.github.tomakehurst.wiremock.extension.Parameters jmsResponseTransformerParameters, String text, String bodyFileName, MessageBodyType bodyType, String jmsMessageType, List<JmsProperty> properties, Long fixedDelayInMilliseconds, Optional<DestinationLookup> destinationLookup, Optional<javax.jms.Message> responseMessage) Creates a response with every field a mapping file can set.JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text, MessageBodyType bodyType) Creates a response with an inline body of a given type, no JMS properties and no delay.JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text, MessageBodyType bodyType, String jmsMessageType, List<JmsProperty> properties, Long fixedDelayInMilliseconds) Creates a response with an inline body, JMS properties, a delay and a JMS message type.JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text, MessageBodyType bodyType, List<JmsProperty> properties, long fixedDelayInMilliseconds) Creates a response with an inline body, JMS properties and a delay, sent as the kind of JMS message that suits the body type.
MessageBodyTypeinstead.