JML

net.sf.jml.protocol.incoming
Class IncomingMSG

java.lang.Object
  extended by net.sf.jml.protocol.MsnMessage
      extended by net.sf.jml.protocol.MsnIncomingMessage
          extended by net.sf.jml.protocol.incoming.IncomingMSG
Direct Known Subclasses:
IncomingMimeMessage

public class IncomingMSG
extends MsnIncomingMessage

The received Message, maybe the notice of MSN Server or the message sent by other user.

Supported Protocol: All

Syntax: MSG email displayName msgLen\r\n content

Author:
Roger Chen

Field Summary
 
Fields inherited from class net.sf.jml.protocol.MsnMessage
protocol
 
Constructor Summary
IncomingMSG(MsnProtocol protocol)
           
 
Method Summary
 byte[] getContent()
           
 String getDisplayName()
           
 Email getEmail()
           
 int getMsgLen()
           
protected  boolean isSupportChunkData()
          If support chunk data, then can set chunk data.
protected  boolean isSupportTransactionId()
          If support transaction id, then can set transaction id.
 boolean isSystemMsg()
           
 
Methods inherited from class net.sf.jml.protocol.MsnIncomingMessage
getOutgoingMessage, messageReceived
 
Methods inherited from class net.sf.jml.protocol.MsnMessage
addParam, asString, clearParams, getChunkData, getCommand, getParam, getParamCount, getProtocol, getTransactionId, load, save, setChunkData, setChunkData, setCommand, setParam, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IncomingMSG

public IncomingMSG(MsnProtocol protocol)
Method Detail

isSupportTransactionId

protected boolean isSupportTransactionId()
Description copied from class: MsnMessage
If support transaction id, then can set transaction id.

Overrides:
isSupportTransactionId in class MsnMessage
Returns:
is support transaction id

isSupportChunkData

protected boolean isSupportChunkData()
Description copied from class: MsnMessage
If support chunk data, then can set chunk data.

Overrides:
isSupportChunkData in class MsnMessage
Returns:
is support chunk data

getEmail

public Email getEmail()

getDisplayName

public String getDisplayName()

getMsgLen

public int getMsgLen()

isSystemMsg

public boolean isSystemMsg()

getContent

public byte[] getContent()

JML