org.lastbamboo.common.sip.stack.transaction.client
Class SipTransactionTrackerImpl
java.lang.Object
org.lastbamboo.common.sip.stack.transaction.client.SipTransactionTrackerImpl
- All Implemented Interfaces:
- org.lastbamboo.common.offer.answer.OfferAnswerTransactionListener, SipTransactionTracker
public class SipTransactionTrackerImpl
- extends Object
- implements SipTransactionTracker, org.lastbamboo.common.offer.answer.OfferAnswerTransactionListener
Class for matching requests and responses to their associated transactions.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SipTransactionTrackerImpl
public SipTransactionTrackerImpl()
trackTransaction
public void trackTransaction(SipClientTransaction ct)
- Description copied from interface:
SipTransactionTracker
- Tells the tracker to start tracking the specified transaction.
- Specified by:
trackTransaction in interface SipTransactionTracker
- Parameters:
ct - The transaction to track.
getClientTransaction
public SipClientTransaction getClientTransaction(SipMessage message)
- Description copied from interface:
SipTransactionTracker
- Accessor for the client transcaction associated with the specified
message.
- Specified by:
getClientTransaction in interface SipTransactionTracker
- Parameters:
message - The message containing a branch ID and SIP method to use
as a key for looking up the associated tranction.
- Returns:
- The transaction associated with the specified message, or
null if there is no associated transaction. This can
happen if the transaction has timed out, for example.
onTransactionSucceeded
public void onTransactionSucceeded(org.lastbamboo.common.offer.answer.OfferAnswerMessage message)
- Specified by:
onTransactionSucceeded in interface org.lastbamboo.common.offer.answer.OfferAnswerTransactionListener
onTransactionFailed
public void onTransactionFailed(org.lastbamboo.common.offer.answer.OfferAnswerMessage message)
- Specified by:
onTransactionFailed in interface org.lastbamboo.common.offer.answer.OfferAnswerTransactionListener
Copyright © 2013 LittleShoot. All Rights Reserved.