Class JmsResponseBuilder

java.lang.Object
com.trafficparrot.sdk.messaging.JmsResponseBuilder
com.trafficparrot.sdk.jms.JmsResponseBuilder

@Deprecated public class JmsResponseBuilder extends JmsResponseBuilder
Deprecated.
Use JmsResponseBuilder instead. This class extends the new location and re-declares its methods with this class and JmsResponse as return types, which are the descriptors plugins compiled against earlier SDKs call.
  • Constructor Details

    • JmsResponseBuilder

      public JmsResponseBuilder()
      Deprecated.
      Creates a builder with no destination and no body.
  • Method Details

    • like

      public JmsResponseBuilder like(JmsResponse response)
      Deprecated.
      Takes the destination, body and body type of a response, and nothing else of it.
      Parameters:
      response - the response to take them from
      Returns:
      this builder
    • like

      public JmsResponseBuilder like(JmsResponse response)
      Deprecated.
      Description copied from class: JmsResponseBuilder
      Takes the destination, body and body type of a response. A body the response reads from a file is taken as its content. Nothing else is taken: its JMS properties, delay and destination lookup are not carried over.
      Overrides:
      like in class JmsResponseBuilder
      Parameters:
      response - the response to take them from, usually the mapping's
      Returns:
      this builder
    • withText

      public JmsResponseBuilder withText(String text)
      Deprecated.
      Description copied from class: JmsResponseBuilder
      Sets a text body, sent as a text message.
      Overrides:
      withText in class JmsResponseBuilder
      Parameters:
      text - the body, which may hold Handlebars expressions
      Returns:
      this builder
    • withBytes

      public JmsResponseBuilder withBytes(byte[] bytes)
      Deprecated.
      Description copied from class: JmsResponseBuilder
      Sets a binary body, sent as a bytes message.
      Overrides:
      withBytes in class JmsResponseBuilder
      Parameters:
      bytes - the body
      Returns:
      this builder
    • withObject

      public JmsResponseBuilder withObject(Object object) throws com.fasterxml.jackson.core.JsonProcessingException
      Deprecated.
      Description copied from class: JmsResponseBuilder
      Sets a Java object as the body, held as its JSON with the object's class as the body type.
      Overrides:
      withObject in class JmsResponseBuilder
      Parameters:
      object - the object to send
      Returns:
      this builder
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - if the object cannot be written as JSON
    • withDestination

      public JmsResponseBuilder withDestination(Destination destination)
      Deprecated.
      Description copied from class: JmsResponseBuilder
      Sets the queue or topic the response is sent to when the request names no reply-to destination.
      Overrides:
      withDestination in class JmsResponseBuilder
      Parameters:
      destination - the destination
      Returns:
      this builder
    • withDestination

      public JmsResponseBuilder withDestination(Destination destination)
      Deprecated.
      The overload for plugins compiled against the com.trafficparrot.sdk.jms types.
      Parameters:
      destination - the queue or topic the response is sent to when the request names no reply-to destination
      Returns:
      this builder
    • build

      public JmsResponse build()
      Deprecated.
      Description copied from class: JmsResponseBuilder
      Builds the response.
      Overrides:
      build in class JmsResponseBuilder
      Returns:
      a response with the destination and body set so far, which names no transformer