01: /**
02: * $RCSfile$
03: * $Revision: $
04: * $Date: $
05: *
06: * Copyright (C) 2007 Jive Software. All rights reserved.
07: *
08: * This software is published under the terms of the GNU Public License (GPL),
09: * a copy of which is included in this distribution.
10: */package org.jivesoftware.openfire.sip.tester.stack;
11:
12: import java.util.EventObject;
13:
14: /**
15: * Title: SIP Register Tester
16: * Description:JAIN-SIP Test application
17: *
18: * @author Thiago Rocha Camargo (thiago@jivesoftware.com)
19: */
20:
21: public class RegistrationEvent extends EventObject {
22:
23: public enum Type {
24: Normal, WrongPass, NotFound, Forbidden, WrongAuthUser
25: };
26:
27: private Type type = Type.Normal;
28:
29: public RegistrationEvent(String registrationAddress) {
30: super (registrationAddress);
31: }
32:
33: public RegistrationEvent(String registrationAddress, Type type) {
34: super (registrationAddress);
35: this .type = type;
36: }
37:
38: public String getReason() {
39: return (String) getSource();
40: }
41:
42: public Type getType() {
43: return type;
44: }
45:
46: }
|