com.mindtree.techworks.insight.remoteprotocol.spi
Class NullMessageDataContent

java.lang.Object
  extended by com.mindtree.techworks.insight.remoteprotocol.spi.PacketDataContent
      extended by com.mindtree.techworks.insight.remoteprotocol.spi.NullMessageDataContent
All Implemented Interfaces:
java.io.Serializable

public class NullMessageDataContent
extends PacketDataContent

This is the data content for packets where all the information is carried in the Header itself. One example of such a packet is the Shutdown Message.

Version:
$Revision: 1.1 $ $Date: 2005/08/03 14:39:18 $
Author:
Bindul Bhowmik
See Also:
PacketDataContent, Serialized Form

Field Summary
 
Fields inherited from class com.mindtree.techworks.insight.remoteprotocol.spi.PacketDataContent
MAX_PACKET_DATA_SIZE, messageType, packetData
 
Constructor Summary
NullMessageDataContent()
          Creates a new instance of NullMessageDataContent
NullMessageDataContent(byte[] completePacketData, PacketHeader packetHeader)
          Creates a new instance of NullMessageDataContent
 
Method Summary
 void setPacketData(byte[] packetData)
          Overrides the superclasses setPacketData method.
 
Methods inherited from class com.mindtree.techworks.insight.remoteprotocol.spi.PacketDataContent
checkPacketDataSize, getLength, getMessageType, getPacketData, setMessageType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullMessageDataContent

public NullMessageDataContent()
Creates a new instance of NullMessageDataContent

See Also:
PacketDataContent.PacketDataContent()

NullMessageDataContent

public NullMessageDataContent(byte[] completePacketData,
                              PacketHeader packetHeader)
                       throws RemoteProtocolException
Creates a new instance of NullMessageDataContent

Parameters:
completePacketData - The data for the complete packet.
packetHeader - The header for the packet
Throws:
RemoteProtocolException - If the length of the data in the packet is greater than 0.
See Also:
PacketDataContent.PacketDataContent(byte[], PacketHeader)
Method Detail

setPacketData

public void setPacketData(byte[] packetData)
                   throws RemoteProtocolException
Overrides the superclasses setPacketData method. NullMessageDataContent is not supposed to have any data.

Overrides:
setPacketData in class PacketDataContent
Parameters:
packetData - The packetData to set.
Throws:
RemoteProtocolException - if the packetData passed in is not null.
See Also:
PacketDataContent.setPacketData(byte[])


Copyright © 2003-2008 MindTree Consulting Ltd.. All Rights Reserved.