FileDocCategorySizeDatePackage
ChatMessage.javaAPI DocApache Struts 2.0.9 Apps1558Mon Jul 23 13:43:26 BST 2007org.apache.struts2.showcase.chat

ChatMessage

public class ChatMessage extends Object

Fields Summary
private Date
creationDate
private String
message
private User
creator
Constructors Summary
public ChatMessage(String message, User creator)

        assert(message != null);
        assert(creator != null);

        this.creationDate = new Date(System.currentTimeMillis());
        this.message = message;
        this.creator = creator;
    
Methods Summary
public java.util.DategetCreationDate()

        return creationDate;
    
public UsergetCreator()

        return creator;
    
public java.lang.StringgetMessage()

        return message;