Package com.trafficparrot.sdk.jms
Class JmsResponseBuilder
java.lang.Object
com.trafficparrot.sdk.messaging.JmsResponseBuilder
com.trafficparrot.sdk.jms.JmsResponseBuilder
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a builder with no destination and no body. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.Builds the response.like(JmsResponse response) Deprecated.Takes the destination, body and body type of a response, and nothing else of it.like(JmsResponse response) Deprecated.Takes the destination, body and body type of a response.withBytes(byte[] bytes) Deprecated.Sets a binary body, sent as a bytes message.withDestination(Destination destination) Deprecated.The overload for plugins compiled against thecom.trafficparrot.sdk.jmstypes.withDestination(Destination destination) Deprecated.Sets the queue or topic the response is sent to when the request names no reply-to destination.withObject(Object object) Deprecated.Sets a Java object as the body, held as its JSON with the object's class as the body type.Deprecated.Sets a text body, sent as a text message.
-
Constructor Details
-
JmsResponseBuilder
public JmsResponseBuilder()Deprecated.Creates a builder with no destination and no body.
-
-
Method Details
-
like
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
Deprecated.Description copied from class:JmsResponseBuilderTakes 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:
likein classJmsResponseBuilder- Parameters:
response- the response to take them from, usually the mapping's- Returns:
- this builder
-
withText
Deprecated.Description copied from class:JmsResponseBuilderSets a text body, sent as a text message.- Overrides:
withTextin classJmsResponseBuilder- Parameters:
text- the body, which may hold Handlebars expressions- Returns:
- this builder
-
withBytes
Deprecated.Description copied from class:JmsResponseBuilderSets a binary body, sent as a bytes message.- Overrides:
withBytesin classJmsResponseBuilder- Parameters:
bytes- the body- Returns:
- this builder
-
withObject
public JmsResponseBuilder withObject(Object object) throws com.fasterxml.jackson.core.JsonProcessingException Deprecated.Description copied from class:JmsResponseBuilderSets a Java object as the body, held as its JSON with the object's class as the body type.- Overrides:
withObjectin classJmsResponseBuilder- Parameters:
object- the object to send- Returns:
- this builder
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the object cannot be written as JSON
-
withDestination
Deprecated.Description copied from class:JmsResponseBuilderSets the queue or topic the response is sent to when the request names no reply-to destination.- Overrides:
withDestinationin classJmsResponseBuilder- Parameters:
destination- the destination- Returns:
- this builder
-
withDestination
Deprecated.The overload for plugins compiled against thecom.trafficparrot.sdk.jmstypes.- Parameters:
destination- the queue or topic the response is sent to when the request names no reply-to destination- Returns:
- this builder
-
build
Deprecated.Description copied from class:JmsResponseBuilderBuilds the response.- Overrides:
buildin classJmsResponseBuilder- Returns:
- a response with the destination and body set so far, which names no transformer
-
JmsResponseBuilderinstead. This class extends the new location and re-declares its methods with this class andJmsResponseas return types, which are the descriptors plugins compiled against earlier SDKs call.