com.mockrunner.connector
Class WSIFInteraction

java.lang.Object
  extended by com.mockrunner.connector.WSIFInteraction
All Implemented Interfaces:
InteractionImplementor

public class WSIFInteraction
extends java.lang.Object
implements InteractionImplementor

Implementor for IBM environments using the Web Services Invocation Framework


Constructor Summary
WSIFInteraction(java.lang.String isClassName, java.lang.String requestPartName, java.lang.Object requestPart, java.lang.String responsePartName, java.lang.Object responsePart)
           
 
Method Summary
 boolean canHandle(javax.resource.cci.InteractionSpec interactionSpec, javax.resource.cci.Record actualRequest, javax.resource.cci.Record actualResponse)
          Implementors should return true if this implementor can handle the request.
 void disable()
          Disables this implementor.
 void enable()
          Enables this implementor.
 javax.resource.cci.Record execute(javax.resource.cci.InteractionSpec interactionSpec, javax.resource.cci.Record actualRequest)
          not implemented yet.
 boolean execute(javax.resource.cci.InteractionSpec interactionSpec, javax.resource.cci.Record actualRequest, javax.resource.cci.Record actualResponse)
          Second version of the Interaction.execute methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSIFInteraction

public WSIFInteraction(java.lang.String isClassName,
                       java.lang.String requestPartName,
                       java.lang.Object requestPart,
                       java.lang.String responsePartName,
                       java.lang.Object responsePart)
Parameters:
isClassName - would be com.ibm.connector2.ims.ico.IMSInteractionSpec, com.ibm.connector2.cics.ECIInteractionSpec
Method Detail

enable

public void enable()
Enables this implementor.


disable

public void disable()
Disables this implementor. canHandle(InteractionSpec, Record, Record) always returns false, if this implementor is disabled.


canHandle

public boolean canHandle(javax.resource.cci.InteractionSpec interactionSpec,
                         javax.resource.cci.Record actualRequest,
                         javax.resource.cci.Record actualResponse)
Description copied from interface: InteractionImplementor
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.

Specified by:
canHandle in interface InteractionImplementor
Parameters:
interactionSpec - the InteractionSpec for the actual call
actualRequest - the request for the actual call
actualResponse - the response for the actual call, may be null
Returns:
true if this implementor will handle the request and will return the specified response, false otherwise

execute

public javax.resource.cci.Record execute(javax.resource.cci.InteractionSpec interactionSpec,
                                         javax.resource.cci.Record actualRequest)
                                  throws javax.resource.ResourceException
not implemented yet.

Specified by:
execute in interface InteractionImplementor
Parameters:
interactionSpec - the interaction spec
actualRequest - the actual request
Returns:
the response according to the current request
Throws:
javax.resource.ResourceException

execute

public boolean execute(javax.resource.cci.InteractionSpec interactionSpec,
                       javax.resource.cci.Record actualRequest,
                       javax.resource.cci.Record actualResponse)
                throws javax.resource.ResourceException
Description copied from interface: InteractionImplementor
Second version of the Interaction.execute methods.

Specified by:
execute in interface InteractionImplementor
Parameters:
interactionSpec - the interaction spec
actualRequest - the actual request
actualResponse - the actual response
Returns:
true under normal conditions
Throws:
javax.resource.ResourceException