JML

net.sf.jml.message.p2p
Class MsnP2PDataMessage

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.MsnP2PDataMessage

public class MsnP2PDataMessage
extends MsnP2PMessage


Field Summary
static int MAX_DATA_LENGTH
           
 
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
MsnP2PDataMessage()
           
MsnP2PDataMessage(int sessionId, int identifier, int offset, int totalLength, byte[] data, String p2pDest)
           
 
Method Summary
protected  byte[] bodyToMessage()
          Retrieve the body part for this P2P message.
protected  void parseP2PBody(ByteBuffer buffer)
          Parse the body part of this P2P message.
protected  String toDebugBody()
          Retrieves a String representation of the body for this message.
 
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, 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
 

Field Detail

MAX_DATA_LENGTH

public static final int MAX_DATA_LENGTH
See Also:
Constant Field Values
Constructor Detail

MsnP2PDataMessage

public MsnP2PDataMessage()

MsnP2PDataMessage

public MsnP2PDataMessage(int sessionId,
                         int identifier,
                         int offset,
                         int totalLength,
                         byte[] data,
                         String p2pDest)
Method Detail

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.

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.

toDebugBody

protected String toDebugBody()
Description copied from class: MsnP2PMessage
Retrieves a String representation of the body for this message.

Overrides:
toDebugBody in class MsnP2PMessage
Returns:
String value.

JML