• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package javax.sip;
2 
3 import java.util.EventObject;
4 
5 public class TransactionTerminatedEvent extends EventObject {
6     private boolean mIsServerTransaction;
7     private ServerTransaction mServerTransaction;
8     private ClientTransaction mClientTransaction;
9 
TransactionTerminatedEvent( Object source, ServerTransaction serverTransaction)10     public TransactionTerminatedEvent(
11             Object source, ServerTransaction serverTransaction) {
12         super(source);
13         mServerTransaction = serverTransaction;
14 
15         mIsServerTransaction = true;
16     }
17 
TransactionTerminatedEvent( Object source, ClientTransaction clientTransaction)18     public TransactionTerminatedEvent(
19             Object source, ClientTransaction clientTransaction) {
20         super(source);
21         mClientTransaction = clientTransaction;
22 
23         mIsServerTransaction = false;
24     }
25 
isServerTransaction()26     public boolean isServerTransaction() {
27         return mIsServerTransaction;
28     }
29 
getClientTransaction()30     public ClientTransaction getClientTransaction() {
31         return mClientTransaction;
32     }
33 
getServerTransaction()34     public ServerTransaction getServerTransaction() {
35         return mServerTransaction;
36     }
37 }
38