You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
979 B

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;
}
}