Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Unpublished - rights reserved under the Copyright Laws of the United States. Copyright � 2003 Sun Microsystems, Inc. All rights reserved. Copyright � 2005 BEA Systems, Inc. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Module Name : JSIP Specification File Name : TransactionTerminatedEvent.java Author : Phelim O'Doherty HISTORY Version Date Author Comments 1.2 03/05/2005 M. Ranganathan New class ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 
 package javax.sip;
 
TransactionTerminatedEvent is delivered to the Listener when the transaction transitions to the terminated state. An implementation is expected to deliver this event to the listener when it discards all internal book keeping records for a given transaction - thereby allowing the Listener to unmap its own data structures.

Author(s):
BEA Systems, NIST
Since:
v1.2
 
 public class TransactionTerminatedEvent extends EventObject {
    
    
Constructs a TransactionTerminatedEvent to indicate a server retransmission or transaction timeout.

Parameters:
source - the source of TransactionTerminatedEvent (the SipProvider associated with the transaction).
serverTransaction - the server transaction that timed out.
 
      public TransactionTerminatedEvent(Object source
              ServerTransaction serverTransaction) {
          super(source);
           = serverTransaction;
           = true;
       
     }

     
Constructs a TransactionTerminatedEvent to indicate a client retransmission or transaction timeout.

Parameters:
source - source of TransactionTerminatedEvent (the SipProvider associated with the transaction).
clientTransaction - the client transaction that timed out.
 
      public TransactionTerminatedEvent(Object source
              ClientTransaction clientTransaction) {
          super(source);
           = clientTransaction;
           = false;
      }    

     
Gets the server transaction associated with this TransactionTerminatedEvent.

Returns:
server transaction associated with this TransactionTerminatedEvent, or null if this event is specific to a client transaction.
 
          return ;
      }


     
Gets the client transaction associated with this TransactionTerminatedEvent.

Returns:
client transaction associated with this TransactionTerminatedEvent, or null if this event is specific to a server transaction.
 
          return ;
      }   

     
Indicates if the transaction associated with this TransactionTerminatedEvent is a server transaction.

Returns:
returns true if a server transaction or false if a client transaction.
 
      public boolean isServerTransaction() {
         return ;
     }
   
     // internal variables
     private boolean m_isServerTransaction;
     private ServerTransaction m_serverTransaction = null;
     private ClientTransaction m_clientTransaction = null;
New to GrepCode? Check out our FAQ X