com.mulesoft.adapter.ra
Class XIInteractionSpecImpl

java.lang.Object
  extended by com.mulesoft.adapter.ra.XIInteractionSpecImpl
All Implemented Interfaces:
com.sap.aii.af.lib.ra.cci.XIInteractionSpec, Serializable, javax.resource.cci.InteractionSpec

public class XIInteractionSpecImpl
extends Object
implements com.sap.aii.af.lib.ra.cci.XIInteractionSpec

CciInteractionSpec defines the XI 3.0 AF interaction specification. It must be used by a ra implementation if the standard AF ejbs modules are used.

See Also:
Serialized Form

Field Summary
protected  String functionName
          Define the InteractionSpec standard properties as listed below.
protected  int interactionVerb
           
 
Fields inherited from interface com.sap.aii.af.lib.ra.cci.XIInteractionSpec
CALL, SEND, SYNC_RECEIVE, SYNC_SEND, SYNC_SEND_RECEIVE
 
Constructor Summary
XIInteractionSpecImpl()
           
 
Method Summary
 Integer getExecutionTimeout()
          Returns the current maximum execution time for sync calls (CCI JCA 1.0)
 String getFunctionName()
          Gets the current XI AF defined function name (see constants) (CCI JCA 1.0)
 int getInteractionVerb()
          Gets the current interaction verb (see constants) (CCI JCA 1.0)
 boolean isValid()
          Validates the current InteractionSpec instance (CCI JCA 1.0)
 void setExecutionTimeout(Integer timeout)
          Sets maximum execution time for sync calls (CCI JCA 1.0)
 void setFunctionName(String functionName)
          Sets one of the XI AF defined function names (see constants) (CCI JCA 1.0)
 void setInteractionVerb(int interactionVerb)
          Sets one of the CCI defined interaction verbs (see constants) (CCI JCA 1.0)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

functionName

protected String functionName
Define the InteractionSpec standard properties as listed below. For details see: InteractionSpec interface pg. 107 (CCI JCA 1.0)


interactionVerb

protected int interactionVerb
Constructor Detail

XIInteractionSpecImpl

public XIInteractionSpecImpl()
Method Detail

setFunctionName

public void setFunctionName(String functionName)
                     throws javax.resource.NotSupportedException
Sets one of the XI AF defined function names (see constants) (CCI JCA 1.0)

Specified by:
setFunctionName in interface com.sap.aii.af.lib.ra.cci.XIInteractionSpec
Parameters:
functionName - Name of the function to execute
Throws:
javax.resource.NotSupportedException - Thrown if an unknown function name should be set

getFunctionName

public String getFunctionName()
Gets the current XI AF defined function name (see constants) (CCI JCA 1.0)

Specified by:
getFunctionName in interface com.sap.aii.af.lib.ra.cci.XIInteractionSpec
Returns:
function name

setExecutionTimeout

public void setExecutionTimeout(Integer timeout)
                         throws javax.resource.NotSupportedException
Sets maximum execution time for sync calls (CCI JCA 1.0)

Specified by:
setExecutionTimeout in interface com.sap.aii.af.lib.ra.cci.XIInteractionSpec
Parameters:
timeout - Time to wait for execution
Throws:
javax.resource.NotSupportedException - If time is equal 0

getExecutionTimeout

public Integer getExecutionTimeout()
Returns the current maximum execution time for sync calls (CCI JCA 1.0)

Specified by:
getExecutionTimeout in interface com.sap.aii.af.lib.ra.cci.XIInteractionSpec
Returns:
Current imeout value

setInteractionVerb

public void setInteractionVerb(int interactionVerb)
                        throws javax.resource.NotSupportedException
Sets one of the CCI defined interaction verbs (see constants) (CCI JCA 1.0)

Specified by:
setInteractionVerb in interface com.sap.aii.af.lib.ra.cci.XIInteractionSpec
Parameters:
interactionVerb - One of the CCI interaction verbs
Throws:
javax.resource.NotSupportedException - Thrown if vern is unknown

getInteractionVerb

public int getInteractionVerb()
Gets the current interaction verb (see constants) (CCI JCA 1.0)

Specified by:
getInteractionVerb in interface com.sap.aii.af.lib.ra.cci.XIInteractionSpec
Returns:
interaction verb

isValid

public boolean isValid()
Validates the current InteractionSpec instance (CCI JCA 1.0)

Returns:
True if valid


Copyright © 2012. All Rights Reserved.