Package com.trafficparrot.sdk.jms
Class TextJmsResponseTransformer
java.lang.Object
com.trafficparrot.sdk.messaging.JmsResponseTransformer
com.trafficparrot.sdk.jms.JmsResponseTransformer
com.trafficparrot.sdk.jms.TextJmsResponseTransformer
- All Implemented Interfaces:
com.trafficparrot.sdk.internal.RenderableInUI
Deprecated.
-
Field Summary
Fields inherited from class com.trafficparrot.sdk.messaging.JmsResponseTransformer
logger -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates the transformer with a logger named afterJmsResponseTransformer. -
Method Summary
Modifier and TypeMethodDescriptionprotected final JmsResponsedoTransform(Destination requestDestination, javax.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) Deprecated.The transformation, for an extension that works withjavax.jmsmessages.protected JmsResponsedoTransform(Destination requestDestination, javax.jms.TextMessage requestMessage, JmsResponse response) Deprecated.protected JmsResponsedoTransform(Destination requestDestination, javax.jms.TextMessage requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) Deprecated.New extensions should override the method withParametersavailable.protected final JmsResponsedoTransformJakarta(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 JmsResponsedoTransformJakarta(Destination requestDestination, jakarta.jms.TextMessage requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) Deprecated.Jakarta.jms extensions should override this method withParametersavailable.booleanDeprecated.Whether Traffic Parrot callsdoTransformJakartarather thandoTransform.Methods inherited from class com.trafficparrot.sdk.jms.JmsResponseTransformer
doTransform, doTransform, doTransformJakarta, transform, transform, transformJakartaMethods inherited from class com.trafficparrot.sdk.messaging.JmsResponseTransformer
getDisplayName, transform, transformJakarta
-
Constructor Details
-
TextJmsResponseTransformer
public TextJmsResponseTransformer()Deprecated.Creates the transformer with a logger named afterJmsResponseTransformer.
-
-
Method Details
-
doTransform
protected final JmsResponse doTransform(Destination requestDestination, javax.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) throws Exception Deprecated.Description copied from class:JmsResponseTransformerThe transformation, for an extension that works withjavax.jmsmessages. Unless overridden it calls the form withoutParameters.- Overrides:
doTransformin classJmsResponseTransformer- Parameters:
requestDestination- the queue or topic the request message arrived onrequestMessage- the request messageresponse- the mapping's response, as writtenparameters- Traffic Parrot's runtime properties, asJmsResponseTransformer.doTransform(com.trafficparrot.sdk.messaging.Destination, javax.jms.Message, com.trafficparrot.sdk.messaging.JmsResponse, com.github.tomakehurst.wiremock.extension.Parameters)describes- Returns:
- the response to render and send, which must name no transformer
- Throws:
Exception- if the response cannot be transformed; the reply is then an error message
-
doTransformJakarta
protected final JmsResponse doTransformJakarta(Destination requestDestination, jakarta.jms.Message requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) throws Exception Deprecated.Description copied from class:JmsResponseTransformerThe transformation, for an extension that works withjakarta.jmsmessages.- Overrides:
doTransformJakartain classJmsResponseTransformer- Parameters:
requestDestination- the queue or topic the request message arrived onrequestMessage- the request messageresponse- the mapping's response, as writtenparameters- Traffic Parrot's runtime properties, asJmsResponseTransformer.doTransformJakarta(com.trafficparrot.sdk.messaging.Destination, jakarta.jms.Message, com.trafficparrot.sdk.messaging.JmsResponse, com.github.tomakehurst.wiremock.extension.Parameters)describes- Returns:
- the response to render and send, which must name no transformer
- Throws:
Exception- if the response cannot be transformed; the reply is then an error messageIllegalStateException- if the extension does not override this method
-
doTransform
@Deprecated protected JmsResponse doTransform(Destination requestDestination, javax.jms.TextMessage requestMessage, JmsResponse response) throws Exception Deprecated.For backwards compatibility, allow old extensions to override only the method withoutParameters. UsesDestinationto preserve binary compatibility with existing customer plugins.- Parameters:
requestDestination- the queue or topic the request message arrived onrequestMessage- the request messageresponse- the mapping's response, as written- Returns:
- the response to render and send, which must name no transformer
- Throws:
Exception- if the response cannot be transformedIllegalStateException- if the extension overrides nodoTransformmethod
-
doTransform
protected JmsResponse doTransform(Destination requestDestination, javax.jms.TextMessage requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) throws Exception Deprecated.New extensions should override the method withParametersavailable. UsesDestinationto preserve binary compatibility with existing customer plugins.- Parameters:
requestDestination- the queue or topic the request message arrived onrequestMessage- the request messageresponse- the mapping's response, as writtenparameters- Traffic Parrot's runtime properties, asJmsResponseTransformer.doTransform(com.trafficparrot.sdk.messaging.Destination, javax.jms.Message, com.trafficparrot.sdk.messaging.JmsResponse, com.github.tomakehurst.wiremock.extension.Parameters)describes- Returns:
- the response to render and send, which must name no transformer
- Throws:
Exception- if the response cannot be transformed; the reply is then an error message
-
doTransformJakarta
protected JmsResponse doTransformJakarta(Destination requestDestination, jakarta.jms.TextMessage requestMessage, JmsResponse response, com.github.tomakehurst.wiremock.extension.Parameters parameters) throws Exception Deprecated.Jakarta.jms extensions should override this method withParametersavailable. Uses the broaderDestinationtype so jakarta plugins work with the modern messaging API.- Parameters:
requestDestination- the queue or topic the request message arrived onrequestMessage- the request messageresponse- the mapping's response, as writtenparameters- Traffic Parrot's runtime properties, asJmsResponseTransformer.doTransformJakarta(com.trafficparrot.sdk.messaging.Destination, jakarta.jms.Message, com.trafficparrot.sdk.messaging.JmsResponse, com.github.tomakehurst.wiremock.extension.Parameters)describes- Returns:
- the response to render and send, which must name no transformer
- Throws:
Exception- if the response cannot be transformed; the reply is then an error messageIllegalStateException- if the extension does not override this method
-
isJakartaPlugin
public boolean isJakartaPlugin()Deprecated.Whether Traffic Parrot callsdoTransformJakartarather thandoTransform.- Overrides:
isJakartaPluginin classJmsResponseTransformer- Returns:
- true if the extension's own class declares
doTransformJakarta; one it inherits does not count
-
TextJmsResponseTransformerinstead. This class keeps extending the deprecatedJmsResponseTransformer, so plugins compiled against it keep their hooks.