registrationevent.java.svn-base
来自「开源项目openfire的完整源程序」· SVN-BASE 代码 · 共 48 行
SVN-BASE
48 行
/**
* $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 + =
减小字号Ctrl + -
显示快捷键?