org.lastbamboo.common.sip.stack.transaction.client
Interface SipClientTransaction

All Superinterfaces:
SipMessageVisitor
All Known Implementing Classes:
SipClientTransactionImpl

public interface SipClientTransaction
extends SipMessageVisitor

Interface for client transactions.


Method Summary
 void addListener(org.lastbamboo.common.offer.answer.OfferAnswerTransactionListener listener)
          Adds a listener to the transaction.
 SipMessage getRequest()
          Accessor for the request that started the transaction.
 long getTransactionTime()
          Accessor for the total transaction time for the transaction.
 
Methods inherited from interface org.lastbamboo.common.sip.stack.message.SipMessageVisitor
visitDoubleCrlfKeepAlive, visitInvite, visitRegister, visitRequestTimedOut, visitResponse, visitUnknownRequest
 

Method Detail

getRequest

SipMessage getRequest()
Accessor for the request that started the transaction.

Returns:
The request that started the transaction.

getTransactionTime

long getTransactionTime()
Accessor for the total transaction time for the transaction.

Returns:
The total time the transaction took.

addListener

void addListener(org.lastbamboo.common.offer.answer.OfferAnswerTransactionListener listener)
Adds a listener to the transaction. This should typically be called before any message has been sent -- before the transaction has started -- to ensure events aren't missed.

Parameters:
listener - The listener to add.


Copyright © 2013 LittleShoot. All Rights Reserved.