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