KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jivesoftware > messenger > OfflineMessage


1 /**
2  * $RCSfile: OfflineMessage.java,v $
3  * $Revision: 1.1 $
4  * $Date: 2005/07/26 05:05:42 $
5  *
6  * Copyright (C) 2004 Jive Software. All rights reserved.
7  *
8  * This software is published under the terms of the GNU Public License (GPL),
9  * a copy of which is included in this distribution.
10  */

11
12 package org.jivesoftware.messenger;
13
14 import org.xmpp.packet.Message;
15 import org.dom4j.Element;
16
17 import java.util.Date JavaDoc;
18
19 /**
20  * Subclass of Message that keeps the date when the offline message was stored in the database.
21  * The creation date and the user may be used as a unique identifier of the offline message.
22  *
23  * @author Gaston Dombiak
24  */

25 public class OfflineMessage extends Message {
26
27     private Date JavaDoc creationDate;
28
29     public OfflineMessage(Date JavaDoc creationDate, Element element) {
30         super(element);
31         this.creationDate = creationDate;
32     }
33
34     /**
35      * Returns the data when the offline message was stored in the database.
36      *
37      * @return
38      */

39     public Date JavaDoc getCreationDate() {
40         return creationDate;
41     }
42 }
43
Popular Tags