public class RequestResponseScenario
extends java.lang.Object
Constructor and Description |
---|
RequestResponseScenario(java.lang.String inputChannelName,
java.lang.String outputChannelName)
Create an instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInputChannelName() |
protected Message<? extends java.lang.Object> |
getMessage() |
java.lang.String |
getName() |
java.lang.String |
getOutputChannelName() |
java.lang.Object |
getPayload() |
AbstractResponseValidator<?> |
getResponseValidator() |
protected void |
init() |
RequestResponseScenario |
setMessage(Message<?> message)
Set the request message (as an alternative to setPayload())
|
RequestResponseScenario |
setName(java.lang.String name)
set the scenario name (optional)
|
RequestResponseScenario |
setPayload(java.lang.Object payload)
set the payload of the request message
|
RequestResponseScenario |
setResponseValidator(AbstractResponseValidator<?> responseValidator)
Set the response validator
|
public RequestResponseScenario(java.lang.String inputChannelName, java.lang.String outputChannelName)
inputChannelName
- the input channel nameoutputChannelName
- the output channel nameprotected Message<? extends java.lang.Object> getMessage()
public java.lang.String getInputChannelName()
public java.lang.String getOutputChannelName()
public java.lang.Object getPayload()
public RequestResponseScenario setPayload(java.lang.Object payload)
payload
- public java.lang.String getName()
public RequestResponseScenario setName(java.lang.String name)
name
- the namepublic AbstractResponseValidator<?> getResponseValidator()
AbstractResponseValidator
public RequestResponseScenario setResponseValidator(AbstractResponseValidator<?> responseValidator)
responseValidator
- AbstractResponseValidator
public RequestResponseScenario setMessage(Message<?> message)
message
- protected void init()