📄 registrationevent.java.svn-base
字号:
/**
* $Revision: $
* $Date: $
*
* Copyright (C) 2007 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Lesser Public License (LGPL),
* a copy of which is included in this distribution.
*/
package net.java.sipmack.sip.event;
import java.util.EventObject;
/**
* Title: SIP Register Tester
* Description:JAIN-SIP Test application
*
* @author Thiago Rocha Camargo (thiago@jivesoftware.com)
*/
public class RegistrationEvent extends EventObject {
public enum Type {
Normal, WrongPass, NotFound, Forbidden, WrongAuthUser, TimeOut
};
private Type type = Type.Normal;
public RegistrationEvent(String registrationAddress) {
super(registrationAddress);
}
public RegistrationEvent(String registrationAddress, Type type) {
super(registrationAddress);
this.type = type;
}
public String getReason() {
return (String) getSource();
}
public Type getType() {
return type;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -