Class AbstractResponseValidator<T>
java.lang.Object
org.springframework.integration.test.support.AbstractResponseValidator<T>
- All Implemented Interfaces:
- MessageHandler
- Direct Known Subclasses:
- MessageValidator,- PayloadValidator
The base class for response validators used for 
RequestResponseScenarios- Author:
- David Turanski
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract booleanIf true will extract the payload as the parameter for validateResponse()Message<?> voidhandleMessage(Message<?> message) handle the messageprotected abstract voidvalidateResponse(T response) Implement this method to validate the response (Message or Payload)
- 
Constructor Details- 
AbstractResponseValidatorpublic AbstractResponseValidator()
 
- 
- 
Method Details- 
handleMessagehandle the message- Specified by:
- handleMessagein interface- MessageHandler
- Throws:
- MessagingException
 
- 
validateResponseImplement this method to validate the response (Message or Payload)- Parameters:
- response- The response.
 
- 
extractPayloadprotected abstract boolean extractPayload()If true will extract the payload as the parameter for validateResponse()- Returns:
- true to extract the payload; false to process the message.
 
- 
getLastMessage- Returns:
- the lastMessage
 
 
-