001: package org.directwebremoting.event;
002:
003: import java.util.EventObject;
004: import java.util.List;
005:
006: import org.directwebremoting.proxy.openajax.PubSubHub;
007:
008: /**
009: *
010: * @author Joe Walker [joe at getahead dot ltd dot uk]
011: */
012: public class PublishEvent extends EventObject {
013: /**
014: *
015: */
016: public PublishEvent(PubSubHub pubSubHub, String httpSessionId,
017: String scriptSessionId, String prefix, String name,
018: Object publisherData, Object subscriberData,
019: List<String> hubsVisited) {
020: super (pubSubHub);
021: this .pubSubHub = pubSubHub;
022:
023: this .httpSessionId = httpSessionId;
024: this .scriptSessionId = scriptSessionId;
025: this .prefix = prefix;
026: this .name = name;
027:
028: this .publisherData = publisherData;
029: this .subscriberData = subscriberData;
030:
031: this .hubsVisited = hubsVisited;
032: }
033:
034: /**
035: *
036: */
037: public PubSubHub getPubSubHub() {
038: return pubSubHub;
039: }
040:
041: /**
042: *
043: */
044: public String getHttpSessionId() {
045: return httpSessionId;
046: }
047:
048: /**
049: *
050: */
051: public String getScriptSessionId() {
052: return scriptSessionId;
053: }
054:
055: /**
056: *
057: */
058: public String getPrefix() {
059: return prefix;
060: }
061:
062: /**
063: *
064: */
065: public String getName() {
066: return name;
067: }
068:
069: /**
070: *
071: */
072: public Object getPublisherData() {
073: return publisherData;
074: }
075:
076: /**
077: *
078: */
079: public Object getSubscriberData() {
080: return subscriberData;
081: }
082:
083: /**
084: *
085: */
086: public List<String> getHubsVisited() {
087: return hubsVisited;
088: }
089:
090: private PubSubHub pubSubHub;
091:
092: private String httpSessionId;
093:
094: private String scriptSessionId;
095:
096: private String prefix;
097:
098: private String name;
099:
100: private Object publisherData;
101:
102: private Object subscriberData;
103:
104: private List<String> hubsVisited;
105:
106: /**
107: *
108: */
109: private static final long serialVersionUID = 7200050970371319986L;
110: }
|