|
||||||||||
| 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.SMSPacketMessage
Kannel's protocol sms_packet message.
| Field Summary | |
static int |
SMSTYPE_MO
Mobile Originated SMS message type |
static int |
SMSTYPE_MT_PUSH
Mobile Terminated Push SMS message type |
static int |
SMSTYPE_MT_REPLY
Mobile Terminated Reply SMS message type |
static int |
SMSTYPE_REPORT_MO
Mobile Originated Report |
static int |
SMSTYPE_REPORT_MT
Mobile Terminated Report SMS message type |
| Fields inherited from class mx.udlap.kjProtocol.packets.BasicPacket |
ACK_PKT, ADMIN_PKT, HEARTBEAT_PKT, length, NODATA, SMS_PKT, type, WDP_PKT |
| Constructor Summary | |
SMSPacketMessage()
Constructor for the SMSPacketMessage object |
|
SMSPacketMessage(byte[] data)
Constructor for the SMSPacketMessage object |
|
SMSPacketMessage(java.lang.String sender,
java.lang.String receiver,
java.lang.String udhdata,
java.lang.String msgdata)
Constructor for the SMSPacketMessage object |
|
| Method Summary | |
KString |
getAccount()
Gets the account attribute of the SMSPacketMessage object |
KInteger |
getAlt_dcs()
Gets the alt_dcs attribute of the SMSPacketMessage object |
KString |
getBinfo()
Gets the binfo attribute of the SMSPacketMessage object |
KString |
getBoxc_id()
Gets the boxc_id attribute of the SMSPacketMessage object |
KString |
getCharset()
Gets the charset attribute of the SMSPacketMessage object |
KInteger |
getCoding()
Gets the coding attribute of the SMSPacketMessage object |
KInteger |
getCompress()
Gets the compress attribute of the SMSPacketMessage object |
KInteger |
getDeferred()
Gets the deferred attribute of the SMSPacketMessage object |
KInteger |
getDlr_mask()
Gets the dlr_mask attribute of the SMSPacketMessage object |
KString |
getDlr_url()
Gets the dlr_url attribute of the SMSPacketMessage object |
KInteger |
getMclass()
Gets the mclass attribute of the SMSPacketMessage object |
byte[] |
getMessage()
Gets the message attribute of the SMSPacketMessage object |
KInteger |
getMsg_left()
Gets the msg_left attribute of the SMSPacketMessage object |
KString |
getMsgdata()
Gets the msgdata attribute of the SMSPacketMessage object |
KInteger |
getMwi()
Gets the mwi attribute of the SMSPacketMessage object |
KInteger |
getPid()
Gets the pid attribute of the SMSPacketMessage object |
KInteger |
getPriority()
Gets the priority attribute of the SMSPacketMessage object |
KString |
getReceiver()
Gets the receiver attribute of the SMSPacketMessage object |
KInteger |
getRpi()
Gets the rpi attribute of the SMSPacketMessage object |
KString |
getSender()
Gets the sender attribute of the SMSPacketMessage object |
KString |
getService()
Gets the service attribute of the SMSPacketMessage object |
KInteger |
getSms_type()
Gets the sms_type attribute of the SMSPacketMessage object |
KString |
getSmsc_id()
Gets the smsc_id attribute of the SMSPacketMessage object |
KTime |
getTime()
Gets the time attribute of the SMSPacketMessage object |
KString |
getUdhdata()
Gets the udhdata attribute of the SMSPacketMessage object |
KUUID |
getUuid()
Gets the uuid attribute of the SMSPacketMessage object |
KInteger |
getValidity()
Gets the validity attribute of the SMSPacketMessage object |
java.lang.String |
hexDump()
Returns a Hex Editor style representation of the message |
static void |
main(java.lang.String[] args)
Testing method |
void |
setAccount(KString account)
Sets the account attribute of the SMSPacketMessage object |
void |
setAlt_dcs(KInteger alt_dcs)
Sets the alt_dcs attribute of the SMSPacketMessage object |
void |
setBinfo(KString binfo)
Sets the binfo attribute of the SMSPacketMessage object |
void |
setBoxc_id(KString boxc_id)
Sets the boxc_id attribute of the SMSPacketMessage object |
void |
setCharset(KString charset)
Sets the charset attribute of the SMSPacketMessage object |
void |
setCoding(KInteger coding)
Sets the coding attribute of the SMSPacketMessage object |
void |
setCompress(KInteger compress)
Sets the compress attribute of the SMSPacketMessage object |
void |
setDeferred(KInteger deferred)
Sets the deferred attribute of the SMSPacketMessage object |
void |
setDlr_mask(KInteger dlr_mask)
Sets the dlr_mask attribute of the SMSPacketMessage object |
void |
setDlr_url(KString dlr_url)
Sets the dlr_url attribute of the SMSPacketMessage object |
void |
setMclass(KInteger mclass)
Sets the mclass attribute of the SMSPacketMessage object |
void |
setMessage(byte[] data)
Sets the message attribute of the SMSPacketMessage object |
void |
setMsg_left(KInteger msg_left)
Sets the msg_left attribute of the SMSPacketMessage object |
void |
setMsgdata(KString msgdata)
Sets the msgdata attribute of the SMSPacketMessage object |
void |
setMwi(KInteger mwi)
Sets the mwi attribute of the SMSPacketMessage object |
void |
setPid(KInteger pid)
Sets the pid attribute of the SMSPacketMessage object |
void |
setPriority(KInteger priority)
Sets the priority attribute of the SMSPacketMessage object |
void |
setReceiver(KString receiver)
Sets the receiver attribute of the SMSPacketMessage object |
void |
setRpi(KInteger rpi)
Sets the rpi attribute of the SMSPacketMessage object |
void |
setSender(KString sender)
Sets the sender attribute of the SMSPacketMessage object |
void |
setService(KString service)
Sets the service attribute of the SMSPacketMessage object |
void |
setSms_type(KInteger sms_type)
Sets the sms_type attribute of the SMSPacketMessage object |
void |
setSmsc_id(KString smsc_id)
Sets the smsc_id attribute of the SMSPacketMessage object |
void |
setTime(KTime time)
Sets the time attribute of the SMSPacketMessage object |
void |
setUdhdata(KString udhdata)
Sets the udhdata attribute of the SMSPacketMessage object |
void |
setUuid(KUUID uuid)
Sets the uuid attribute of the SMSPacketMessage object |
void |
setValidity(KInteger validity)
Sets the validity attribute of the SMSPacketMessage object |
java.lang.String |
toString()
String representation of this packet showing all its field and contents |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int SMSTYPE_MO
public static final int SMSTYPE_MT_REPLY
public static final int SMSTYPE_MT_PUSH
public static final int SMSTYPE_REPORT_MO
public static final int SMSTYPE_REPORT_MT
| Constructor Detail |
public SMSPacketMessage()
public SMSPacketMessage(java.lang.String sender,
java.lang.String receiver,
java.lang.String udhdata,
java.lang.String msgdata)
sender - Part that sends the messagereceiver - Part that receives de messageudhdata - UDH datamsgdata - Message data
public SMSPacketMessage(byte[] data)
throws PacketParseException
This parses an array of bytes into a SMSPacketMessage
data - Byte array as received in a tcp link
PacketParseException - Exception thrown when a byte array is too short or its badly formed| Method Detail |
public byte[] getMessage()
getMessage in interface BasicKannelProtocolMessage
public void setMessage(byte[] data)
throws PacketParseException
setMessage in interface BasicKannelProtocolMessagedata - Byte array containing a packet as received over a tcp connection
PacketParseException - Exception thrown whenpublic void setSender(KString sender)
sender - The new sender valuepublic void setReceiver(KString receiver)
receiver - The new receiver valuepublic void setUdhdata(KString udhdata)
udhdata - The new udhdata valuepublic void setMsgdata(KString msgdata)
msgdata - The new msgdata valuepublic void setTime(KTime time)
time - The new time valuepublic void setSmsc_id(KString smsc_id)
smsc_id - The new smsc_id valuepublic void setService(KString service)
service - The new service valuepublic void setAccount(KString account)
account - The new account valuepublic void setUuid(KUUID uuid)
uuid - The new uuid valuepublic void setSms_type(KInteger sms_type)
sms_type - The new sms_type valuepublic void setMclass(KInteger mclass)
mclass - The new mclass valuepublic void setMwi(KInteger mwi)
mwi - The new mwi valuepublic void setCoding(KInteger coding)
coding - The new coding valuepublic void setCompress(KInteger compress)
compress - The new compress valuepublic void setValidity(KInteger validity)
validity - The new validity valuepublic void setDeferred(KInteger deferred)
deferred - The new deferred valuepublic void setDlr_mask(KInteger dlr_mask)
dlr_mask - The new dlr_mask valuepublic void setDlr_url(KString dlr_url)
dlr_url - The new dlr_url valuepublic void setPid(KInteger pid)
pid - The new pid valuepublic void setAlt_dcs(KInteger alt_dcs)
alt_dcs - The new alt_dcs valuepublic void setRpi(KInteger rpi)
rpi - The new rpi valuepublic void setCharset(KString charset)
charset - The new charset valuepublic void setBoxc_id(KString boxc_id)
boxc_id - The new boxc_id valuepublic void setBinfo(KString binfo)
binfo - The new binfo valuepublic void setMsg_left(KInteger msg_left)
msg_left - The new msg_left valuepublic void setPriority(KInteger priority)
priority - The new priority valuepublic KString getSender()
public KString getReceiver()
public KString getUdhdata()
public KString getMsgdata()
public KTime getTime()
public KString getSmsc_id()
public KString getService()
public KString getAccount()
public KUUID getUuid()
public KInteger getSms_type()
public KInteger getMclass()
public KInteger getMwi()
public KInteger getCoding()
public KInteger getCompress()
public KInteger getValidity()
public KInteger getDeferred()
public KInteger getDlr_mask()
public KString getDlr_url()
public KInteger getPid()
public KInteger getAlt_dcs()
public KInteger getRpi()
public KString getCharset()
public KString getBoxc_id()
public KString getBinfo()
public KInteger getMsg_left()
public KInteger getPriority()
public java.lang.String toString()
public java.lang.String hexDump()
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - Description of the Parameter
java.lang.Exception - Exception thrown when
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||