public abstract class AbstractResponseValidator<T> extends java.lang.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 MessageHandlermessage - the message to be handledMessageRejectedException - if the handler doesn't accept the messageMessageHandlingException - when something fails during the handlingMessageDeliveryException - when this handler failed to deliver the
reply related to the handling of the messageMessagingExceptionprotected abstract void validateResponse(T response)
response - protected abstract boolean extractPayload()
public Message<?> getLastMessage()