public class ChatDelivery
extends org.sakaiproject.util.BaseDelivery
implements org.sakaiproject.courier.api.Expirable
ChatDelivery is a Delivery that causes a chat message to be appended to a table of chat messages in the HTML element identified by the address and elementID.
| Modifier and Type | Field and Description |
|---|---|
protected org.sakaiproject.chat2.model.ChatManager |
chatManager |
protected boolean |
m_beepOnDelivery |
protected Object |
m_message
The message.
|
protected String |
placementId |
| Constructor and Description |
|---|
ChatDelivery(String address,
String elementId,
Object message,
String placementId,
boolean beepOnDelivery,
org.sakaiproject.chat2.model.ChatManager chatManager)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
String |
compose()
Compose a javascript message for delivery to the browser client window.
|
boolean |
equals(Object obj)
Are these the same?
|
long |
getCreated() |
org.sakaiproject.chat2.model.ChatMessage |
getMessage() |
String |
getMessageId() |
int |
getTtl() |
void |
setCreated(long created) |
void |
setMessage(Object message) |
String |
toString()
Display.
|
protected Object m_message
protected org.sakaiproject.chat2.model.ChatManager chatManager
protected boolean m_beepOnDelivery
protected String placementId
public org.sakaiproject.chat2.model.ChatMessage getMessage()
public void setMessage(Object message)
public String compose()
compose in interface org.sakaiproject.courier.api.Deliverycompose in class org.sakaiproject.util.BaseDeliverypublic String toString()
toString in class org.sakaiproject.util.BaseDeliverypublic String getMessageId()
public boolean equals(Object obj)
equals in class org.sakaiproject.util.BaseDeliverypublic long getCreated()
getCreated in interface org.sakaiproject.courier.api.Expirablepublic void setCreated(long created)
public int getTtl()
getTtl in interface org.sakaiproject.courier.api.ExpirableCopyright © 2003-2015 The Sakai Foundation. All Rights Reserved.