public abstract class AbstractResponseValidator<T> extends Object implements MessageHandler
RequestResponseScenarios| Constructor and Description |
|---|
AbstractResponseValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
extractPayload()
If true will extract the payload as the parameter for validateResponse()
|
Message<?> |
getLastMessage() |
void |
handleMessage(Message<?> message)
handle the message
|
protected abstract void |
validateResponse(T response)
Implement this method to validate the response (Message or Payload)
|
public void handleMessage(Message<?> message) throws MessagingException
handleMessage in interface MessageHandlerMessagingExceptionprotected abstract void validateResponse(T response)
response - The response.protected abstract boolean extractPayload()
public Message<?> getLastMessage()