JML

net.sf.jml.message.p2p
Class MsnP2PSlpMessage

java.lang.Object
  extended by net.sf.jml.message.MsnMimeMessage
      extended by net.sf.jml.message.p2p.MsnP2PMessage
          extended by net.sf.jml.message.p2p.MsnP2PSlpMessage
Direct Known Subclasses:
MsnP2PByeMessage, MsnP2PInvitationMessage

public class MsnP2PSlpMessage
extends MsnP2PMessage

Author:
Roger Chen

Field Summary
 
Fields inherited from class net.sf.jml.message.p2p.MsnP2PMessage
BINARY_FOOTER_LEN, BINARY_HEADER_LEN, FLAG_ACK, FLAG_BYE, FLAG_BYE_ACK, FLAG_DATA, FLAG_NONE, KEY_P2P_DEST
 
Fields inherited from class net.sf.jml.message.MsnMimeMessage
headers
 
Constructor Summary
MsnP2PSlpMessage()
           
 
Method Summary
protected  byte[] bodyToMessage()
          Retrieve the body part for this P2P message.
 MsnslpMessage getSlpMessage()
           
protected  void parseP2PBody(ByteBuffer buffer)
          Parse the body part of this P2P message.
 void setSlpMessage(MsnslpMessage slpMessage)
           
 
Methods inherited from class net.sf.jml.message.p2p.MsnP2PMessage
getAppId, getCurrentLength, getField7, getField8, getField9, getFlag, getIdentifier, getOffset, getP2PDest, getSessionId, getTotalLength, messageReceived, parseMessage, setAppId, setCurrentLength, setField7, setField8, setField9, setFlag, setIdentifier, setOffset, setP2PDest, setSessionId, setTotalLength, toDebugBody, toDebugString, toOutgoingMsg
 
Methods inherited from class net.sf.jml.message.MsnMimeMessage
getCharset, getContentType, getHeaders, getMimeVersion, parseBuffer, setContentType, setMimeVersion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MsnP2PSlpMessage

public MsnP2PSlpMessage()
Method Detail

getSlpMessage

public MsnslpMessage getSlpMessage()

setSlpMessage

public void setSlpMessage(MsnslpMessage slpMessage)

parseP2PBody

protected void parseP2PBody(ByteBuffer buffer)
Description copied from class: MsnP2PMessage
Parse the body part of this P2P message.

Specified by:
parseP2PBody in class MsnP2PMessage
Parameters:
buffer - Buffer with the body to be parsed.

bodyToMessage

protected byte[] bodyToMessage()
Description copied from class: MsnP2PMessage
Retrieve the body part for this P2P message.

Specified by:
bodyToMessage in class MsnP2PMessage
Returns:
Binary content for the body part of this P2P message.

JML