org.springframework.integration.test.support
Class MessageValidator
java.lang.Object
org.springframework.integration.test.support.AbstractResponseValidator<org.springframework.integration.Message<?>>
org.springframework.integration.test.support.MessageValidator
- All Implemented Interfaces:
- org.springframework.integration.core.MessageHandler
public abstract class MessageValidator
- extends AbstractResponseValidator<org.springframework.integration.Message<?>>
Validate a message. Create an anonymous instance or subclass to
implement the validateMessage() method
|
Method Summary |
protected boolean |
extractPayload()
If true will extract the payload as the parameter for validateResponse() |
protected abstract void |
validateMessage(org.springframework.integration.Message<?> message)
Implement this method to validate the message |
protected void |
validateResponse(org.springframework.integration.Message<?> response)
Implement this method to validate the response (Message or Payload) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageValidator
public MessageValidator()
extractPayload
protected final boolean extractPayload()
- Description copied from class:
AbstractResponseValidator
- If true will extract the payload as the parameter for validateResponse()
- Specified by:
extractPayload in class AbstractResponseValidator<org.springframework.integration.Message<?>>
- Returns:
- true to extract the payload; false to process the message.
validateResponse
protected final void validateResponse(org.springframework.integration.Message<?> response)
- Description copied from class:
AbstractResponseValidator
- Implement this method to validate the response (Message or Payload)
- Specified by:
validateResponse in class AbstractResponseValidator<org.springframework.integration.Message<?>>
validateMessage
protected abstract void validateMessage(org.springframework.integration.Message<?> message)
- Implement this method to validate the message
- Parameters:
message -