01: package org.directwebremoting.event;
02:
03: import java.util.EventObject;
04:
05: import org.directwebremoting.proxy.openajax.PubSubHub;
06:
07: /**
08: *
09: * @author Joe Walker [joe at getahead dot ltd dot uk]
10: */
11: public class SubscriptionEvent extends EventObject {
12: /**
13: *
14: */
15: public SubscriptionEvent(PubSubHub pubSubHub, String httpSessionId,
16: String scriptSessionId, String prefix, String name,
17: PublishListener publishListener) {
18: super (pubSubHub);
19: this .pubSubHub = pubSubHub;
20:
21: this .httpSessionId = httpSessionId;
22: this .scriptSessionId = scriptSessionId;
23: this .prefix = prefix;
24: this .name = name;
25:
26: this .publishListener = publishListener;
27: }
28:
29: /**
30: *
31: */
32: public PubSubHub getPubSubHub() {
33: return pubSubHub;
34: }
35:
36: /**
37: *
38: */
39: public String getHttpSessionId() {
40: return httpSessionId;
41: }
42:
43: /**
44: *
45: */
46: public String getScriptSessionId() {
47: return scriptSessionId;
48: }
49:
50: /**
51: *
52: */
53: public String getPrefix() {
54: return prefix;
55: }
56:
57: /**
58: *
59: */
60: public String getName() {
61: return name;
62: }
63:
64: /**
65: *
66: */
67: public Object getPublishListener() {
68: return publishListener;
69: }
70:
71: /**
72: *
73: */
74: public Object getSubscriberData() {
75: return publishListener;
76: }
77:
78: private PubSubHub pubSubHub;
79:
80: private String httpSessionId;
81:
82: private String scriptSessionId;
83:
84: private String prefix;
85:
86: private String name;
87:
88: private PublishListener publishListener;
89:
90: /**
91: *
92: */
93: private static final long serialVersionUID = 7200050970371319986L;
94: }
|