JML

net.sf.jml.message
Class MsnControlMessage

java.lang.Object
  extended by net.sf.jml.message.MsnMimeMessage
      extended by net.sf.jml.message.MsnPropMessage
          extended by net.sf.jml.message.MsnControlMessage

public class MsnControlMessage
extends MsnPropMessage

Msn typing message, indicate a user is typing message.

Author:
Roger Chen

Field Summary
 
Fields inherited from class net.sf.jml.message.MsnPropMessage
properties
 
Fields inherited from class net.sf.jml.message.MsnMimeMessage
headers
 
Constructor Summary
MsnControlMessage()
           
 
Method Summary
 String getRecordingUser()
           
 String getTypingUser()
           
protected  void messageReceived(MsnSession session, MsnContact contact)
          The message have received, invoked by dispatch thread
 void setRecordingUser(String recordingUser)
           
 void setTypingUser(String typingUser)
           
 OutgoingMSG[] toOutgoingMsg(MsnProtocol protocol)
          Generate OutgoingMSGs.
 
Methods inherited from class net.sf.jml.message.MsnPropMessage
getProperties, parseBuffer, toString
 
Methods inherited from class net.sf.jml.message.MsnMimeMessage
getCharset, getContentType, getHeaders, getMimeVersion, parseMessage, setContentType, setMimeVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MsnControlMessage

public MsnControlMessage()
Method Detail

getTypingUser

public String getTypingUser()

setTypingUser

public void setTypingUser(String typingUser)

getRecordingUser

public String getRecordingUser()

setRecordingUser

public void setRecordingUser(String recordingUser)

toOutgoingMsg

public OutgoingMSG[] toOutgoingMsg(MsnProtocol protocol)
Description copied from class: MsnMimeMessage
Generate OutgoingMSGs.

Overrides:
toOutgoingMsg in class MsnMimeMessage
Parameters:
protocol - used MsnProtocol
Returns:
generated OutgoingMSGs. A MsnMimeMessage may generate multi OutgoingMSGs.

messageReceived

protected void messageReceived(MsnSession session,
                               MsnContact contact)
Description copied from class: MsnMimeMessage
The message have received, invoked by dispatch thread

Overrides:
messageReceived in class MsnMimeMessage
Parameters:
session - the MsnSession which received the message
contact - the user who sent this message

JML