callevent.java

来自「Java SIP」· Java 代码 · 共 61 行

JAVA
61
字号
/* * This file is part of the Java SIP library, an open source SIP library. Please see * http://collaboration.mitre.org/sip for more information *  * Copyright (c) 2001 The MITRE Corporation  *  * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Library General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at your * option) any later version. *  * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public * License for more details. *  * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB.  If not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. * *//** * Defines the action when a response is received for a call */package org.mitre.jsip.event;import org.mitre.jsip.SipMessage;import java.awt.AWTEvent;public class CallEvent extends AWTEvent {    private SipMessage message;    public static final int NEXT_ID = AWTEvent.RESERVED_ID_MAX + 1;    public static final int CALLRESPONSE_ID = NEXT_ID;    public static final int CALLREQUEST_ID = NEXT_ID + 1;    public CallEvent( Object source, SipMessage message, int id ) {	super( message, id );	this.message = message;    }    /**     * Get the message that triggered this event     *     * @return the current SIP message     */    public SipMessage getMessage() {	return message;    }    public String toString() {	return getClass().getName() + "[message=\n" + message.message() + "]";    }    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?