|
Spring Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.integration.test.support.AbstractResponseValidator<T>
public abstract class AbstractResponseValidator<T>
The base class for response validators used for RequestResponseScenarios
| Constructor Summary | |
|---|---|
AbstractResponseValidator()
|
|
| Method Summary | |
|---|---|
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) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractResponseValidator()
| Method Detail |
|---|
public void handleMessage(Message<?> message)
throws MessagingException
handleMessage in interface MessageHandlermessage - the message to be handled
MessageRejectedException - if the handler doesn't accept the message
MessageHandlingException - when something fails during the handling
MessageDeliveryException - when this handler failed to deliver the
reply related to the handling of the message
MessagingExceptionprotected abstract void validateResponse(T response)
response - protected abstract boolean extractPayload()
public Message<?> getLastMessage()
|
Spring Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||