org.siprop.v2.stack.sip.transaction
Interface TransactionController

All Known Implementing Classes:
TransactionControllerImpl

public interface TransactionController

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

Author:
masaxmasa

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.
 

Method Detail

getTransacitonList

java.util.List<TransactionEntry> getTransacitonList()
get the list of transactions related this transaction set.

Returns:
the list of transactions

searchTransaction

TransactionEntry searchTransaction(Context context)
Search a transaction related SIP message. If a transaction is not exist, create new transaction entry

Parameters:
context - SIP Message
Returns:
transaction entry

searchCancelTransaction

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.

Parameters:
cancel - CANCEL request message
Returns:
transaction

isInitialState

boolean isInitialState()
check Initial state or not.

Returns:
Initial state or not

getTU

TransactionUser getTU()
get called tu.

Returns:
called tu

getUniKey

java.lang.String getUniKey()
get unique key.

Returns:
unique key of this instance

setUniKey

void setUniKey(java.lang.String uniKey)
set unique key.

Parameters:
uniKey - unique key of this instance

getUniKeyGenerator

Discriminator getUniKeyGenerator()
get Discriminator of unique key for itself manage list.

Returns:
key generator

setUniKeyGenerator

void setUniKeyGenerator(Discriminator uniKeyGenerator)
set Discriminator of unique key for itself manage list.

Parameters:
uniKeyGenerator - key generator