JML

net.sf.jml.protocol.outgoing
Class OutgoingMSG

java.lang.Object
  extended by net.sf.jml.protocol.MsnMessage
      extended by net.sf.jml.protocol.MsnOutgoingMessage
          extended by net.sf.jml.protocol.outgoing.OutgoingMSG

public class OutgoingMSG
extends MsnOutgoingMessage

Send message to other user. See http://www.hypothetic.org/docs/msn/switchboard/messages.php and http://www.hypothetic.org/docs/msn/research/msnp9.php. Supported Protocol: All Syntax: MSG trId msgType msgLen\r\n content

Author:
Roger Chen

Field Summary
static net.sf.jml.protocol.outgoing.OutgoingMSG.MsgType TYPE_ACKNOWLEDGE_ALL
          Will receive acknowledgement whether it was properly received or not.
static net.sf.jml.protocol.outgoing.OutgoingMSG.MsgType TYPE_ACKNOWLEDGE_NONE
          Will receive no acknowledgement.
static net.sf.jml.protocol.outgoing.OutgoingMSG.MsgType TYPE_ACKNOWLEDGE_WHEN_ERROR
          Will receive acknowledgement only if the message was not properly received.
static net.sf.jml.protocol.outgoing.OutgoingMSG.MsgType TYPE_INVITE
          New type when use MSNP11 and send invite message.
static net.sf.jml.protocol.outgoing.OutgoingMSG.MsgType TYPE_MSNC1
          It generally behaves like the A type, the official client always uses it (and only uses it) for special MSNC1 messages.
 
Fields inherited from class net.sf.jml.protocol.MsnMessage
protocol
 
Constructor Summary
OutgoingMSG(MsnProtocol protocol)
           
 
Method Summary
protected  boolean isSupportChunkData()
          If support chunk data, then can set chunk data.
 void setMsg(byte[] msg)
           
 void setMsgType(net.sf.jml.protocol.outgoing.OutgoingMSG.MsgType type)
           
 
Methods inherited from class net.sf.jml.protocol.MsnOutgoingMessage
messageSent, receivedResponse
 
Methods inherited from class net.sf.jml.protocol.MsnMessage
addParam, asString, clearParams, getChunkData, getCommand, getParam, getParamCount, getProtocol, getTransactionId, isSupportTransactionId, load, save, setChunkData, setChunkData, setCommand, setParam, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_ACKNOWLEDGE_NONE

public static final net.sf.jml.protocol.outgoing.OutgoingMSG.MsgType TYPE_ACKNOWLEDGE_NONE
Will receive no acknowledgement.


TYPE_ACKNOWLEDGE_WHEN_ERROR

public static final net.sf.jml.protocol.outgoing.OutgoingMSG.MsgType TYPE_ACKNOWLEDGE_WHEN_ERROR
Will receive acknowledgement only if the message was not properly received.


TYPE_ACKNOWLEDGE_ALL

public static final net.sf.jml.protocol.outgoing.OutgoingMSG.MsgType TYPE_ACKNOWLEDGE_ALL
Will receive acknowledgement whether it was properly received or not.


TYPE_INVITE

public static final net.sf.jml.protocol.outgoing.OutgoingMSG.MsgType TYPE_INVITE
New type when use MSNP11 and send invite message.


TYPE_MSNC1

public static final net.sf.jml.protocol.outgoing.OutgoingMSG.MsgType TYPE_MSNC1
It generally behaves like the A type, the official client always uses it (and only uses it) for special MSNC1 messages.

Constructor Detail

OutgoingMSG

public OutgoingMSG(MsnProtocol protocol)
Method Detail

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

setMsgType

public void setMsgType(net.sf.jml.protocol.outgoing.OutgoingMSG.MsgType type)

setMsg

public void setMsg(byte[] msg)

JML