public abstract class AbstractResponseValidator<T>
extends java.lang.Object
implements org.springframework.messaging.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()
|
org.springframework.messaging.Message<?> |
getLastMessage() |
void |
handleMessage(org.springframework.messaging.Message<?> message)
handle the message
|
protected abstract void |
validateResponse(T response)
Implement this method to validate the response (Message or Payload)
|
public void handleMessage(org.springframework.messaging.Message<?> message)
throws org.springframework.messaging.MessagingException
handleMessage in interface org.springframework.messaging.MessageHandlerorg.springframework.messaging.MessagingExceptionprotected abstract void validateResponse(T response)
response - The response.protected abstract boolean extractPayload()
public org.springframework.messaging.Message<?> getLastMessage()