com.ibm.mds.adpt.sms.base.cci
Class BaseConnectionSpec

java.lang.Object
  extended by com.ibm.mds.adpt.sms.base.cci.BaseConnectionSpec
All Implemented Interfaces:
javax.resource.cci.ConnectionSpec

public class BaseConnectionSpec
extends java.lang.Object
implements javax.resource.cci.ConnectionSpec

The CCI Connection Spec.

Represents the parameters a client will use to access the adapter. JCA uses these parameters to determine if an existing connection can be reused or if a new connection needs to be created.


Constructor Summary
BaseConnectionSpec()
          Instantiates a new base connection spec.
BaseConnectionSpec(java.lang.String systemID, java.lang.String password)
          Constructor.
BaseConnectionSpec(java.lang.String hostName, java.lang.String portNumber, java.lang.String systemID, java.lang.String password, boolean confirmDelivery, java.lang.String bindType)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object object)
          Override equals method to compare objects.
 java.lang.String getBindType()
          Gets the bind type.
 int getFunctionID()
          Gets the Function ID
 java.lang.String getHostName()
          Get the hostname of the ESMC for this connection specification.
 java.lang.String getPassword()
          Get the password.
 java.lang.String getPortNumber()
          Get the port of the ESMC listening for connection requests.
 java.lang.String getProtocolID()
          Gets the protocol id.
 java.lang.String getSmscName()
          Gets the smsc name.
 java.lang.String getSystemID()
          Get the system id.
 java.lang.String getSystemType()
          Gets the system type.
 void setBindType(java.lang.String bindType)
          Sets the bind type.
 void setFunctionID(int functionID)
          Sets the Function ID
 void setHostName(java.lang.String hostName)
          Set the hostname of the ESMC for this connection specification.
 void setPassword(java.lang.String password)
          Set the password.
 void setPortNumber(java.lang.String portNumber)
          Set the port of the ESMC listening for connection requests.
 void setProtocolID(java.lang.String protocolID)
          Sets the protocol id.
 void setSmscName(java.lang.String smscName)
          Sets the smsc name.
 void setSystemID(java.lang.String systemID)
          Set the system id.
 void setSystemType(java.lang.String systemType)
          Sets the system type.
 java.lang.String toString()
          Override toString method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseConnectionSpec

public BaseConnectionSpec()
Instantiates a new base connection spec.


BaseConnectionSpec

public BaseConnectionSpec(java.lang.String systemID,
                          java.lang.String password)
Constructor.

Parameters:
systemID - the user ID a client will use to access SMPP
password - the password a client will use to access SMPP

BaseConnectionSpec

public BaseConnectionSpec(java.lang.String hostName,
                          java.lang.String portNumber,
                          java.lang.String systemID,
                          java.lang.String password,
                          boolean confirmDelivery,
                          java.lang.String bindType)
Constructor.

Parameters:
hostName - the host of the server for this connection
portNumber - the port Number to use for connecting
systemID - the user ID a client will use to access SMPP
password - the password a client will use to access SMPP
confirmDelivery - the confirm delivery
bindType - the bind type
Method Detail

getSmscName

public java.lang.String getSmscName()
Gets the smsc name.

Returns:
the smsc name

setSmscName

public void setSmscName(java.lang.String smscName)
Sets the smsc name.

Parameters:
smscName - the new smsc name

getProtocolID

public java.lang.String getProtocolID()
Gets the protocol id.

Returns:
the protocol id

setProtocolID

public void setProtocolID(java.lang.String protocolID)
Sets the protocol id.

Parameters:
protocolID - the new protocol id

getSystemType

public java.lang.String getSystemType()
Gets the system type.

Returns:
the system type

setSystemType

public void setSystemType(java.lang.String systemType)
Sets the system type.

Parameters:
systemType - the new system type

getBindType

public java.lang.String getBindType()
Gets the bind type.

Returns:
the bind type

setBindType

public void setBindType(java.lang.String bindType)
Sets the bind type.

Parameters:
bindType - the new bind type

getPassword

public java.lang.String getPassword()
Get the password.

Returns:
Returns the password.

setPassword

public void setPassword(java.lang.String password)
Set the password.

Parameters:
password - The password to set.

getSystemID

public java.lang.String getSystemID()
Get the system id.

Returns:
Returns the systemID.

setSystemID

public void setSystemID(java.lang.String systemID)
Set the system id.

Parameters:
systemID - The systemID to set.

getHostName

public java.lang.String getHostName()
Get the hostname of the ESMC for this connection specification.

Returns:
hostName

setHostName

public void setHostName(java.lang.String hostName)
Set the hostname of the ESMC for this connection specification.

Parameters:
hostName - the host name

getPortNumber

public java.lang.String getPortNumber()
Get the port of the ESMC listening for connection requests.

Returns:
portNumber

setPortNumber

public void setPortNumber(java.lang.String portNumber)
Set the port of the ESMC listening for connection requests.

Parameters:
portNumber - the port number

equals

public boolean equals(java.lang.Object object)
Override equals method to compare objects.

Overrides:
equals in class java.lang.Object
Parameters:
object - the object to compare with the SMPP connection Spec
Returns:
boolean true if the object matches the connection spec

getFunctionID

public int getFunctionID()
Gets the Function ID


setFunctionID

public void setFunctionID(int functionID)
Sets the Function ID

Parameters:
Function - ID to be set

toString

public java.lang.String toString()
Override toString method.

Overrides:
toString in class java.lang.Object
Returns:
String representation of this class.


Copyright © 2006 IBM Corp. All Rights Reserved.