|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmx.udlap.kjProtocol.packets.BasicPacket
mx.udlap.kjProtocol.packets.HeartBeatKMessage
Kannel's protocol heart beat message.
| Field Summary |
| Fields inherited from class mx.udlap.kjProtocol.packets.BasicPacket |
ACK_PKT, ADMIN_PKT, HEARTBEAT_PKT, length, NODATA, SMS_PKT, type, WDP_PKT |
| Constructor Summary | |
HeartBeatKMessage()
Constructor for the HeartBeatKMessage object |
|
HeartBeatKMessage(byte[] data)
Constructor for the HeartBeatKMessage object |
|
HeartBeatKMessage(int load)
Constructor for the HeartBeatKMessage object |
|
| Method Summary | |
KInteger |
getLoad()
Gets the load field attribute of the HeartBeatKMessage object |
byte[] |
getMessage()
Gets the message bytes of the HeartBeatKMessage object |
static void |
main(java.lang.String[] args)
|
void |
setLoad(KInteger load)
Sets the load field of the HeartBeatKMessage object |
void |
setMessage(byte[] data)
Sets the message attribute of the HeartBeatKMessage object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HeartBeatKMessage()
public HeartBeatKMessage(int load)
load - Load field value.
public HeartBeatKMessage(byte[] data)
throws PacketParseException
data - Byte array containing data of this type.| Method Detail |
public byte[] getMessage()
This is the actual message package to be sent over a tco link.
getMessage in interface BasicKannelProtocolMessage
public void setMessage(byte[] data)
throws PacketParseException
This is the way to parse a packet received from a tcp link.
setMessage in interface BasicKannelProtocolMessagedata - The new message value
PacketParseException - Exception thrown when parsing failspublic void setLoad(KInteger load)
load - The new load field valuepublic KInteger getLoad()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||