org.siprop.v2.stack.sip.transaction.impl
Class TransactionControllerImpl

java.lang.Object
  extended by org.siprop.v2.stack.sip.transaction.impl.TransactionControllerImpl
All Implemented Interfaces:
TransactionController

public class TransactionControllerImpl
extends java.lang.Object
implements TransactionController

This class has set of transactions. Each transaction has same Call-ID value.

Author:
masaxmasa

Constructor Summary
TransactionControllerImpl(TransactionUser tu, java.lang.String uniKey)
          Constructor.
 
Method Summary
 java.util.List<TransactionEntry> getTransacitonList()
          get the list of transactions related this transaction set.
 TransactionUser getTU()
          get called tu.
 java.lang.String getUniKey()
          get unique key.
 Discriminator getUniKeyGenerator()
          get Discriminator of unique key for itself manage list.
 boolean isInitialState()
          check Initial state or not.
 TransactionEntry searchCancelTransaction(gov.nist.javax.sip.message.SIPRequest cancel)
          Search a transaction that will be canceled by the CANCEL message If the transaction isn't exist return null.
 TransactionEntry searchTransaction(Context context)
          Search a transaction related SIP message.
 void setUniKey(java.lang.String uniKey)
          set unique key.
 void setUniKeyGenerator(Discriminator uniKeyGenerator)
          set Discriminator of unique key for itself manage list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionControllerImpl

public TransactionControllerImpl(TransactionUser tu,
                                 java.lang.String uniKey)
Constructor.

Parameters:
tu - called tu
uniKey - unique key of this instance
Method Detail

getTransacitonList

public java.util.List<TransactionEntry> getTransacitonList()
Description copied from interface: TransactionController
get the list of transactions related this transaction set.

Specified by:
getTransacitonList in interface TransactionController
Returns:
the list of transactions

searchTransaction

public TransactionEntry searchTransaction(Context context)
Description copied from interface: TransactionController
Search a transaction related SIP message. If a transaction is not exist, create new transaction entry

Specified by:
searchTransaction in interface TransactionController
Parameters:
context - SIP Message
Returns:
transaction entry

searchCancelTransaction

public TransactionEntry searchCancelTransaction(gov.nist.javax.sip.message.SIPRequest cancel)
Description copied from interface: TransactionController
Search a transaction that will be canceled by the CANCEL message If the transaction isn't exist return null.

Specified by:
searchCancelTransaction in interface TransactionController
Parameters:
cancel - CANCEL request message
Returns:
transaction

isInitialState

public boolean isInitialState()
Description copied from interface: TransactionController
check Initial state or not.

Specified by:
isInitialState in interface TransactionController
Returns:
Initial state or not

getTU

public TransactionUser getTU()
Description copied from interface: TransactionController
get called tu.

Specified by:
getTU in interface TransactionController
Returns:
called tu

getUniKeyGenerator

public Discriminator getUniKeyGenerator()
Description copied from interface: TransactionController
get Discriminator of unique key for itself manage list.

Specified by:
getUniKeyGenerator in interface TransactionController
Returns:
key generator

setUniKeyGenerator

public void setUniKeyGenerator(Discriminator uniKeyGenerator)
Description copied from interface: TransactionController
set Discriminator of unique key for itself manage list.

Specified by:
setUniKeyGenerator in interface TransactionController
Parameters:
uniKeyGenerator - key generator

setUniKey

public void setUniKey(java.lang.String uniKey)
Description copied from interface: TransactionController
set unique key.

Specified by:
setUniKey in interface TransactionController
Parameters:
uniKey - unique key of this instance

getUniKey

public java.lang.String getUniKey()
Description copied from interface: TransactionController
get unique key.

Specified by:
getUniKey in interface TransactionController
Returns:
unique key of this instance