| com.mockrunner.connector.InteractionImplementor
All known Subclasses: com.mockrunner.connector.StreamableRecordByteArrayInteraction, com.mockrunner.connector.GenericFailureInteraction, com.mockrunner.connector.MappedRecordInteraction, com.mockrunner.connector.IndexedRecordInteraction, com.mockrunner.connector.WSIFInteraction,
Method Summary | |
public boolean | canHandle(InteractionSpec interactionSpec, Record actualRequest, Record actualResponse) Implementors should return true if this implementor can handle the request. | public Record | execute(InteractionSpec interactionSpec, Record actualRequest) First version of the Interaction.execute methods. | public boolean | execute(InteractionSpec interactionSpec, Record actualRequest, Record actualResponse) Second version of the Interaction.execute methods. |
canHandle | public boolean canHandle(InteractionSpec interactionSpec, Record actualRequest, Record actualResponse)(Code) | | Implementors should return true if this implementor can handle the request.
Please note that for calls to
InteractionImplementor.execute(InteractionSpec,Record) ,
the second Record parameter is null .
Parameters: interactionSpec - the InteractionSpec for the actual call Parameters: actualRequest - the request for the actual call Parameters: actualResponse - the response for the actual call, may be null true if this implementor will handle the request andwill return the specified response, false otherwise |
execute | public Record execute(InteractionSpec interactionSpec, Record actualRequest) throws ResourceException(Code) | | First version of the Interaction.execute methods.
Parameters: interactionSpec - the interaction spec Parameters: actualRequest - the actual request the response according to the current request |
execute | public boolean execute(InteractionSpec interactionSpec, Record actualRequest, Record actualResponse) throws ResourceException(Code) | | Second version of the Interaction.execute methods.
Parameters: interactionSpec - the interaction spec Parameters: actualRequest - the actual request Parameters: actualResponse - the actual response true under normal conditions |
|
|