| java.lang.Object chat.business.MessageImpl
MessageImpl | public class MessageImpl implements Message(Code) | | This class holds all the data about one message (what someone said).
The message is broken down into lines, and each line is HTML encoded.
This makes displaying the message faster. The message is created once,
but displayed over and over to all the listeners.
|
htmlChunks | public Vector htmlChunks(Code) | | The text of the message, broken down by lines, then HTML encoded.
These strings are safe to stick into a page.
|
htmlName | public String htmlName(Code) | | The HTML encoded version of name.
This string is safe to stick into a page.
|
text | public String text(Code) | | The text of the message, in one un-encoded string.
The user may have entered invalid HTML, so use the htmlChunks
when emitting as HTML.
|
getWhen | public long getWhen()(Code) | | Get the time when the message was created. The result is in
milliseconds, see System.currentTimeMillis().
|
|
|