Uses of Class
com.trafficparrot.sdk.messaging.Destination
Packages that use Destination
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.Native IBM MQ extensions: the base class of a response transformer for native IBM MQ mappings,
IbmMqResponseTransformer, with the response it works with and helpers for
reading and writing MQMessage objects.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 Destination in com.trafficparrot.sdk.file
Fields in com.trafficparrot.sdk.file declared as DestinationModifier and TypeFieldDescriptionfinal DestinationFileMessageResponse.destinationThe directory the response file is written to: itsnameis the directory's path.Methods in com.trafficparrot.sdk.file with parameters of type DestinationModifier and TypeMethodDescriptionprotected FileMessageResponseFileMessageResponseTransformer.doTransform(Destination requestDestination, FileMessage requestMessage, FileMessageResponse response) Deprecated.protected FileMessageResponseFileMessageResponseTransformer.doTransform(Destination requestDestination, FileMessage requestMessage, FileMessageResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) The transformation: override this one, and no otherdoTransform.static FileMessageResponseFileMessageResponse.ofFile(Destination destination, String fileName, Path content) Creates a response whose content is the filecontent, for a transformer that answers with a file rather than text.final FileMessageResponseFileMessageResponseTransformer.transform(Destination requestDestination, FileMessage requestMessage, FileMessageResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) Called by Traffic Parrot.Constructors in com.trafficparrot.sdk.file with parameters of type DestinationModifierConstructorDescriptionFileMessageResponse(Destination destination, String fileName, String text) Creates a text response that uses no transformer, which is what a transformer usually returns.FileMessageResponse(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 Destination in com.trafficparrot.sdk.ibmmq
Fields in com.trafficparrot.sdk.ibmmq declared as DestinationModifier and TypeFieldDescriptionfinal DestinationIbmMqResponse.destinationThe queue or topic the response is sent to, unlessIbmMqResponse.destinationLookupsends it to the request's reply-to queue.Methods in com.trafficparrot.sdk.ibmmq with parameters of type DestinationModifier and TypeMethodDescriptionprotected IbmMqResponseIbmMqResponseTransformer.doTransform(Destination requestDestination, com.ibm.mq.MQMessage requestMessage, IbmMqResponse response) Deprecated.protected IbmMqResponseIbmMqResponseTransformer.doTransform(Destination requestDestination, com.ibm.mq.MQMessage requestMessage, IbmMqResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) The transformation: override this one, and no otherdoTransform.final IbmMqResponseIbmMqResponseTransformer.transform(Destination requestDestination, com.ibm.mq.MQMessage requestMessage, IbmMqResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) Called by Traffic Parrot.static IbmMqResponseIbmMqResponse.withResponseMessage(Destination destination, com.ibm.mq.MQMessage responseMessage, long fixedDelayMilliseconds, Optional<DestinationLookup> destinationLookup) Static: builds a new response that sendsresponseMessageas it is, as the(Destination, MQMessage, long, Optional)constructor does, taking the destination lookup asDestinationLookuprather than the deprecated IBM MQ enum.Constructors in com.trafficparrot.sdk.ibmmq with parameters of type DestinationModifierConstructorDescriptionIbmMqResponse(Destination destination, com.ibm.mq.MQMessage responseMessage, long fixedDelayMilliseconds, Optional<DestinationLookup> destinationLookup) Creates a response that sendsresponseMessageas it is.IbmMqResponse(Destination destination, String text) Creates a text response, which is what a transformer usually returns: anMQFMT_STRINGmessage inUTF_8with no delay and no transformer, sent to the reply-to queue the request names, or todestinationwhen it names none.IbmMqResponse(Destination destination, String ibmMqResponseTransformerClassName, IbmMqMessageFormat format, String text, Long fixedDelayInMilliseconds, IbmMqCharacterSet characterSet, Optional<DestinationLookup> destinationLookup, Optional<com.ibm.mq.MQMessage> responseMessage) Creates a response with an inline body and a character set, and no reply-to names.IbmMqResponse(Destination destination, String ibmMqResponseTransformerClassName, IbmMqMessageFormat format, String text, Long fixedDelayInMilliseconds, Optional<DestinationLookup> destinationLookup, Optional<com.ibm.mq.MQMessage> responseMessage) Creates a response with an inline body in theUTF_8character set, and no reply-to names.IbmMqResponse(Destination destination, String ibmMqResponseTransformerClassName, IbmMqMessageFormat format, String text, String bodyFileName, Long fixedDelayInMilliseconds, IbmMqCharacterSet characterSet, Optional<DestinationLookup> destinationLookup, Optional<com.ibm.mq.MQMessage> responseMessage, String replyToQueueManagerName, String replyToQueueName) Creates a response with every field a mapping file can set. -
Uses of Destination in com.trafficparrot.sdk.jms
Subclasses of Destination in com.trafficparrot.sdk.jmsMethods in com.trafficparrot.sdk.jms with parameters of type DestinationModifier and TypeMethodDescriptionstatic JmsResponseJmsResponse.base64BytesResponse(Destination destination, byte[] bytes) Deprecated.A response that uses no transformer and whose body is these bytes, held as Base64.static JmsResponseJmsResponse.base64BytesResponse(Destination destination, String jmsResponseTransformerClassName, byte[] bytes) Deprecated.A response whose body is these bytes, held as Base64.protected final JmsResponseJmsResponseTransformer.doTransform(Destination requestDestination, javax.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) Deprecated.protected JmsResponseJmsResponseTransformer.doTransformJakarta(Destination requestDestination, jakarta.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) Deprecated.The transformation, for an extension that works withjakarta.jmsmessages.protected final JmsResponseJmsResponseTransformer.doTransformJakarta(Destination requestDestination, jakarta.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) Deprecated.protected final JmsResponseTextJmsResponseTransformer.doTransformJakarta(Destination requestDestination, jakarta.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) Deprecated.protected JmsResponseTextJmsResponseTransformer.doTransformJakarta(Destination requestDestination, jakarta.jms.TextMessage requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) Deprecated.Jakarta.jms extensions should override this method withParametersavailable.static JmsResponseJmsResponse.printableCharactersBytesResponse(Destination destination, byte[] bytes) Deprecated.A response that uses no transformer and whose body is these bytes, held in the printable-characters encoding.static JmsResponseJmsResponse.printableCharactersBytesResponse(Destination destination, String jmsResponseTransformerClassName, byte[] bytes) Deprecated.A response whose body is these bytes, held in the printable-characters encoding.final JmsResponseJmsResponseTransformer.transform(Destination requestDestination, javax.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) Deprecated.Called by Traffic Parrot for an extension that works withjavax.jmsmessages, asJmsResponseTransformer.transform(com.trafficparrot.sdk.messaging.Destination, javax.jms.Message, com.trafficparrot.sdk.messaging.JmsResponse, com.github.tomakehurst.wiremock.extension.Parameters)describes.final JmsResponseJmsResponseTransformer.transformJakarta(Destination requestDestination, jakarta.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) Deprecated.Called by Traffic Parrot for an extension that works withjakarta.jmsmessages, asJmsResponseTransformer.transformJakarta(com.trafficparrot.sdk.messaging.Destination, jakarta.jms.Message, com.trafficparrot.sdk.messaging.JmsResponse, com.github.tomakehurst.wiremock.extension.Parameters)describes.JmsResponseBuilder.withDestination(Destination destination) Deprecated.static JmsResponseJmsResponse.withJakartaResponseMessage(Destination destination, jakarta.jms.Message jakartaMessage, long fixedDelayMilliseconds, Optional<DestinationLookup> destinationLookup) Deprecated.A response that sends ajakarta.jmsmessage the transformer has built itself.Constructors in com.trafficparrot.sdk.jms with parameters of type DestinationModifierConstructorDescriptionJmsResponse(Destination destination, Object object) Deprecated.Creates a response that uses no transformer and whose body is a Java object.JmsResponse(Destination destination, String text) Deprecated.Creates a text response that uses no transformer.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) Deprecated.Creates a response with every field a mapping file can set, as the constructor ofJmsResponsewith these parameters does.JmsResponse(Destination destination, String jmsResponseTransformerClassName, Object object) Deprecated.Creates a response whose body is a Java object.JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text) Deprecated.Creates a text response with no JMS properties and no delay.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 Destination in com.trafficparrot.sdk.messaging
Fields in com.trafficparrot.sdk.messaging declared as DestinationModifier and TypeFieldDescriptionfinal DestinationJmsResponse.destinationThe queue or topic the response is sent to, unlessJmsResponse.destinationLookupsends it to the request's reply-to destination.Methods in com.trafficparrot.sdk.messaging with parameters of type DestinationModifier and TypeMethodDescriptionstatic JmsResponseJmsResponse.base64BytesResponse(Destination destination, byte[] bytes) A response that uses no transformer and whose body is these bytes, held as Base64 with theBYTESbody type.static JmsResponseJmsResponse.base64BytesResponse(Destination destination, String jmsResponseTransformerClassName, byte[] bytes) A response whose body is these bytes, held as Base64 with theBYTESbody type.intDestination.compareTo(Destination other) protected JmsResponseJmsResponseTransformer.doTransform(Destination requestDestination, javax.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) javax.jms extensions override this method.protected final JmsResponseTextJmsResponseTransformer.doTransform(Destination requestDestination, javax.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) protected JmsResponseTextJmsResponseTransformer.doTransform(Destination requestDestination, javax.jms.TextMessage requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) javax.jms extensions override this method.protected JmsResponseJmsResponseTransformer.doTransformJakarta(Destination requestDestination, jakarta.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) jakarta.jms extensions override this method.protected final JmsResponseTextJmsResponseTransformer.doTransformJakarta(Destination requestDestination, jakarta.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) protected JmsResponseTextJmsResponseTransformer.doTransformJakarta(Destination requestDestination, jakarta.jms.TextMessage requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) jakarta.jms extensions override this method.static JmsResponseJmsResponse.printableCharactersBytesResponse(Destination destination, byte[] bytes) A response that uses no transformer and whose body is these bytes, held in the printable-characters encoding with thePRINTABLE_CHARACTERSbody type, which keeps readable text readable in the mapping file.static JmsResponseJmsResponse.printableCharactersBytesResponse(Destination destination, String jmsResponseTransformerClassName, byte[] bytes) A response whose body is these bytes, held in the printable-characters encoding with thePRINTABLE_CHARACTERSbody type.final JmsResponseJmsResponseTransformer.transform(Destination requestDestination, javax.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) Entry point for javax plugins.final JmsResponseJmsResponseTransformer.transformJakarta(Destination requestDestination, jakarta.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) Entry point called by the framework for jakarta plugins.JmsResponseBuilder.withDestination(Destination destination) Sets the queue or topic the response is sent to when the request names no reply-to destination.static JmsResponseJmsResponse.withJakartaResponseMessage(Destination destination, jakarta.jms.Message jakartaMessage, long fixedDelayMilliseconds, Optional<DestinationLookup> destinationLookup) A response that sends ajakarta.jmsmessage the transformer has built itself, in place of one built from a body and a body type.Constructors in com.trafficparrot.sdk.messaging with parameters of type DestinationModifierConstructorDescriptionJmsResponse(Destination destination, Object object) Creates a response that uses no transformer and whose body is a Java object, held as its JSON with the object's class as the body type.JmsResponse(Destination destination, String text) Creates a text response that uses no transformer, which is what a transformer usually returns.protectedJmsResponse(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, Object object) Creates a response whose body is a Java object, held as its JSON with the object's class as the body type.JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text) Creates a text response with no JMS properties and no delay.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.
FileMessageResponseTransformer.doTransform(Destination, FileMessage, FileMessageResponse, Parameters)instead.