|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.test.support.RequestResponseScenario
public class RequestResponseScenario
Defines a Spring Integration request response test scenario. All setter methods may be chained.
Constructor Summary | |
---|---|
RequestResponseScenario(java.lang.String inputChannelName,
java.lang.String outputChannelName)
Create an instance |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestResponseScenario(java.lang.String inputChannelName, java.lang.String outputChannelName)
inputChannelName
- the input channel nameoutputChannelName
- the output channel nameMethod Detail |
---|
protected 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 name
public AbstractResponseValidator<?> getResponseValidator()
AbstractResponseValidator
public RequestResponseScenario setResponseValidator(AbstractResponseValidator<?> responseValidator)
responseValidator
-
AbstractResponseValidator
public RequestResponseScenario setMessage(Message<?> message)
message
-
protected void init()
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |