net.java.slee.resource.smpp
Interface ShortMessage

All Superinterfaces:
java.io.Serializable

public interface ShortMessage
extends java.io.Serializable

Generic SMS interface.

Author:
Oleg Kulikov

Method Summary
 byte[] getData()
          Gets binary representation of the payload of this message.
 int getEncoding()
          Gets encdong scheme of this message.
 java.lang.String getOriginator()
          Gets the address of the origination party.
 java.lang.String getRecipient()
          Gets address of the recipent of this message.
 int getStatus()
          Gets status/result for this message.
 java.lang.String getText()
          Gets text representation of the payload.
 void setData(byte[] data)
          Modify payload of this message.
 void setEncoding(int encoding)
          Modify encoding scheme of this message.
 void setOriginator(java.lang.String originator)
          Modify the address of the origination party.
 void setRecipient(java.lang.String recipient)
          Modify address of the recipient.
 void setText(java.lang.String text)
          Modify payload of this message.
 

Method Detail

getOriginator

java.lang.String getOriginator()
Gets the address of the origination party.

Returns:
the address of the origination party in E164 format.

setOriginator

void setOriginator(java.lang.String originator)
Modify the address of the origination party.

Parameters:
origination - the address of the originated party in E164 format.

getRecipient

java.lang.String getRecipient()
Gets address of the recipent of this message.

Returns:
the address of the recipient in E164 format.

setRecipient

void setRecipient(java.lang.String recipient)
Modify address of the recipient.

Parameters:
recepient - the address of the recipient in E164 format.

getEncoding

int getEncoding()
Gets encdong scheme of this message.

Returns:
constant value which indicates the encoding scheme.

setEncoding

void setEncoding(int encoding)
Modify encoding scheme of this message.

Parameters:
encoding - the constant which indicates the encoding scheme.

getText

java.lang.String getText()
Gets text representation of the payload.

Returns:
payload as simple text.

setText

void setText(java.lang.String text)
Modify payload of this message.

Parameters:
text - the new payload as text.

getData

byte[] getData()
Gets binary representation of the payload of this message.

Returns:
the payload of this message.

setData

void setData(byte[] data)
Modify payload of this message.

Parameters:
data - the payload of this message.

getStatus

int getStatus()
Gets status/result for this message. Currently only used to get Result from SUBMIT_SM_RESP

Returns:
error code, 0 = no error.


Copyright © 2009. All Rights Reserved.