Class JmsResponse

java.lang.Object
com.trafficparrot.sdk.messaging.JmsResponse
com.trafficparrot.sdk.jms.JmsResponse
All Implemented Interfaces:
Comparable<JmsResponse>

@Deprecated public class JmsResponse extends JmsResponse
Deprecated.
Use JmsResponse instead. This class extends the new location and keeps the members plugins compiled against earlier SDKs link to: those taking the com.trafficparrot.sdk.messaging types, and the older ones taking the com.trafficparrot.sdk.jms types.
  • Field Details

    • properties

      public final List<JmsProperty> properties
      Deprecated.
      Hides the inherited properties with its old element type. The descriptor is the same erased java.util.List, so no compiled plugin needs this; source does: without it, List<jms.JmsProperty> p = response.properties stops compiling. Same list object as the parent's.
  • Constructor Details

    • JmsResponse

      public 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.
    • JmsResponse

      public JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text, MessageBodyType bodyType, String jmsMessageType, List<JmsProperty> properties, Long fixedDelayInMilliseconds)
      Deprecated.
    • JmsResponse

      public JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text, MessageBodyType bodyType, List<JmsProperty> properties, long fixedDelayInMilliseconds)
      Deprecated.
    • JmsResponse

      public JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text, MessageBodyType bodyType)
      Deprecated.
    • JmsResponse

      public JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text)
      Deprecated.
    • JmsResponse

      public JmsResponse(Destination destination, String text)
      Deprecated.
    • JmsResponse

      public JmsResponse(Destination destination, String jmsResponseTransformerClassName, Object object) throws com.fasterxml.jackson.core.JsonProcessingException
      Deprecated.
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • JmsResponse

      public JmsResponse(Destination destination, Object object) throws com.fasterxml.jackson.core.JsonProcessingException
      Deprecated.
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • JmsResponse

      public JmsResponse(Destination destination, String jmsResponseTransformerClassName, com.github.tomakehurst.wiremock.extension.Parameters jmsResponseTransformerParameters, String text, MessageBodyType bodyType, String jmsMessageType, List<JmsProperty> properties, Long fixedDelayInMilliseconds, Optional<?> destinationLookup, Optional<javax.jms.Message> responseMessage)
      Deprecated.
    • JmsResponse

      public JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text, MessageBodyType bodyType, String jmsMessageType, List<JmsProperty> properties, Long fixedDelayInMilliseconds)
      Deprecated.
    • JmsResponse

      public JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text, MessageBodyType bodyType, List<JmsProperty> properties, long fixedDelayInMilliseconds)
      Deprecated.
    • JmsResponse

      public JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text, MessageBodyType bodyType)
      Deprecated.
    • JmsResponse

      public JmsResponse(Destination destination, String jmsResponseTransformerClassName, String text)
      Deprecated.
    • JmsResponse

      public JmsResponse(Destination destination, String text)
      Deprecated.
    • JmsResponse

      public JmsResponse(Destination destination, String jmsResponseTransformerClassName, Object object) throws com.fasterxml.jackson.core.JsonProcessingException
      Deprecated.
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • JmsResponse

      public JmsResponse(Destination destination, Object object) throws com.fasterxml.jackson.core.JsonProcessingException
      Deprecated.
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
  • Method Details

    • base64BytesResponse

      public static JmsResponse base64BytesResponse(Destination destination, byte[] bytes)
      Deprecated.
    • base64BytesResponse

      public static JmsResponse base64BytesResponse(Destination destination, String jmsResponseTransformerClassName, byte[] bytes)
      Deprecated.
    • printableCharactersBytesResponse

      public static JmsResponse printableCharactersBytesResponse(Destination destination, byte[] bytes)
      Deprecated.
    • printableCharactersBytesResponse

      public static JmsResponse printableCharactersBytesResponse(Destination destination, String jmsResponseTransformerClassName, byte[] bytes)
      Deprecated.
    • base64BytesResponse

      public static JmsResponse base64BytesResponse(Destination destination, byte[] bytes)
      Deprecated.
    • base64BytesResponse

      public static JmsResponse base64BytesResponse(Destination destination, String jmsResponseTransformerClassName, byte[] bytes)
      Deprecated.
    • printableCharactersBytesResponse

      public static JmsResponse printableCharactersBytesResponse(Destination destination, byte[] bytes)
      Deprecated.
    • printableCharactersBytesResponse

      public static JmsResponse printableCharactersBytesResponse(Destination destination, String jmsResponseTransformerClassName, byte[] bytes)
      Deprecated.
    • withJakartaResponseMessage

      public static JmsResponse withJakartaResponseMessage(Destination destination, jakarta.jms.Message jakartaMessage, long fixedDelayMilliseconds, Optional<DestinationLookup> destinationLookup)
      Deprecated.
    • withResolvedText

      public JmsResponse withResolvedText(String resolvedText)
      Deprecated.
      Description copied from class: JmsResponse
      Returns a copy with resolvedText set (the content read from JmsResponse.bodyFileName at load time). Every persisted field is preserved so a subsequent save re-writes bodyFileName with null text, keeping the sidecar reference intact.
      Overrides:
      withResolvedText in class JmsResponse
    • compareTo

      public int compareTo(JmsResponse other)
      Deprecated.
      The compareTo plugins compiled when this class was Comparable<JmsResponse>.