blob: 929904582a4b4171879fff3de961eecbbdf2a577 [file] [log] [blame]
package javax.sip;
import java.util.EventObject;
public class TransactionTerminatedEvent extends EventObject {
private boolean mIsServerTransaction;
private ServerTransaction mServerTransaction;
private ClientTransaction mClientTransaction;
public TransactionTerminatedEvent(
Object source, ServerTransaction serverTransaction) {
super(source);
mServerTransaction = serverTransaction;
mIsServerTransaction = true;
}
public TransactionTerminatedEvent(
Object source, ClientTransaction clientTransaction) {
super(source);
mClientTransaction = clientTransaction;
mIsServerTransaction = false;
}
public boolean isServerTransaction() {
return mIsServerTransaction;
}
public ClientTransaction getClientTransaction() {
return mClientTransaction;
}
public ServerTransaction getServerTransaction() {
return mServerTransaction;
}
}