MjSip Stack
v1.6

org.zoolu.sip.transaction
Class InviteTransactionClient

java.lang.Object
  |
  +--org.zoolu.sip.transaction.Transaction
        |
        +--org.zoolu.sip.transaction.TransactionClient
              |
              +--org.zoolu.sip.transaction.InviteTransactionClient
All Implemented Interfaces:
SipProviderListener, TimerListener

public class InviteTransactionClient
extends TransactionClient

INVITE client transaction as defined in RFC 3261 (Section 17.2.1).
An InviteTransactionClient is responsable to create a new SIP invite transaction, starting with a invite message sent through the SipProvider and ending with a final response.
The changes of the internal status and the received messages are fired to the TransactionListener passed to the InviteTransactionClient object.


Fields inherited from class org.zoolu.sip.transaction.Transaction
transaction_counter
 
Constructor Summary
InviteTransactionClient(SipProvider sip_provider, Message req, TransactionClientListener listener)
          Creates a new ClientTransaction
 
Method Summary
 void onReceivedMessage(SipProvider provider, Message msg)
          Method derived from interface SipListener.
 void onTimeout(Timer to)
          Method derived from interface TimerListener.
 void request()
          Starts the InviteTransactionClient and sends the invite request.
 void terminate()
          Terminates the transaction.
 
Methods inherited from class org.zoolu.sip.transaction.TransactionClient
printLog
 
Methods inherited from class org.zoolu.sip.transaction.Transaction
getConnectionId, getRequestMessage, getSipProvider, getTransactionId, getTransactionMethod, printException, printWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InviteTransactionClient

public InviteTransactionClient(SipProvider sip_provider,
                               Message req,
                               TransactionClientListener listener)
Creates a new ClientTransaction
Method Detail

request

public void request()
Starts the InviteTransactionClient and sends the invite request.
Overrides:
request in class TransactionClient

onReceivedMessage

public void onReceivedMessage(SipProvider provider,
                              Message msg)
Method derived from interface SipListener. It's fired from the SipProvider when a new message is catch for to the present ServerTransaction.
Overrides:
onReceivedMessage in class TransactionClient

onTimeout

public void onTimeout(Timer to)
Method derived from interface TimerListener. It's fired from an active Timer.
Overrides:
onTimeout in class TransactionClient

terminate

public void terminate()
Terminates the transaction.
Overrides:
terminate in class TransactionClient

MjSip Stack
v1.6