com.mulesoft.adapter.ra
Class XIConnectionSpecImpl

java.lang.Object
  extended by com.mulesoft.adapter.ra.XIConnectionSpecImpl
All Implemented Interfaces:
com.sap.aii.af.lib.ra.cci.XIConnectionSpec, javax.resource.cci.ConnectionSpec

public class XIConnectionSpecImpl
extends Object
implements com.sap.aii.af.lib.ra.cci.XIConnectionSpec

CciConnectionSpec allows to pass connection selection parameters from the XI AF to the resource adapter when a connection must be allocated. Whereas the properties userName and password are JCA 1.0 standard, the XI AF CciConnectionSpec defines more XI AF specific selection criterias which MAY be used by the resource adapter as e.g. the channel ID. The channel ID was determined by the XI RA mdb before and propagated to the module processor chain.


Constructor Summary
XIConnectionSpecImpl()
          Creates an empty new CCI connectionSpec (ra implementation specific)
XIConnectionSpecImpl(String userName, String password, String channelId, String type)
          Creates a new CCI connectionSpec and fills all its properties (ra implementation specific)
 
Method Summary
 String getChannelId()
           
 String getPassword()
           
 String getType()
           
 String getUserName()
          As recommended by JCA 1.0, each ConnectionSpec property must have an corresponding setter and getter method.
 void setChannelId(String channelId)
           
 void setPassword(String password)
           
 void setType(String type)
           
 void setUserName(String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XIConnectionSpecImpl

public XIConnectionSpecImpl(String userName,
                            String password,
                            String channelId,
                            String type)
Creates a new CCI connectionSpec and fills all its properties (ra implementation specific)

Parameters:
userName - Name of the user if external connection requires a logon
password - Password of the user if external connection requires a logon
channelId - ID of the channel selected for those messages that are put into the Interaction.execute() call of Interactions, for which this connection is needed.
type - Type of requested connection (XI, EP, ...)

XIConnectionSpecImpl

public XIConnectionSpecImpl()
Creates an empty new CCI connectionSpec (ra implementation specific)

Method Detail

getUserName

public String getUserName()
As recommended by JCA 1.0, each ConnectionSpec property must have an corresponding setter and getter method. (CCI JCA 1.0)

Specified by:
getUserName in interface com.sap.aii.af.lib.ra.cci.XIConnectionSpec

getPassword

public String getPassword()
Specified by:
getPassword in interface com.sap.aii.af.lib.ra.cci.XIConnectionSpec

getChannelId

public String getChannelId()
Specified by:
getChannelId in interface com.sap.aii.af.lib.ra.cci.XIConnectionSpec

setUserName

public void setUserName(String userName)
Specified by:
setUserName in interface com.sap.aii.af.lib.ra.cci.XIConnectionSpec

setPassword

public void setPassword(String password)
Specified by:
setPassword in interface com.sap.aii.af.lib.ra.cci.XIConnectionSpec

setChannelId

public void setChannelId(String channelId)
Specified by:
setChannelId in interface com.sap.aii.af.lib.ra.cci.XIConnectionSpec

getType

public String getType()

setType

public void setType(String type)


Copyright © 2012. All Rights Reserved.