|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ie.ncl.sms.smpp.prot.Message ie.ncl.sms.smpp.Message
public class Message
Constructor Summary | |
---|---|
Message()
This creates an empty message. |
|
Message(Address to,
byte[] bytes)
|
|
Message(Address to,
java.lang.String s)
|
Method Summary | |
---|---|
void |
CC(Address address)
Add a distribution list recipient. |
void |
CC(java.lang.String name)
Add a distribution list recipient (send carbon copy to this list). |
boolean |
ccContains(java.lang.Object obj)
|
byte[] |
getBytes()
Get the message bytes. |
int |
getCommandId()
|
int |
getCommandStatus()
|
int |
getDataLength()
Get the number of bytes in the message. |
java.lang.String |
getMessageId()
Return the Id of the message. |
boolean |
getPriority()
Get the priority (true if priority level is 1 or more). |
boolean |
getRegistered()
Returns the registered delivery flag. |
byte[] |
getRequestPdu()
|
int |
getResponseCommandId()
|
int |
getResponseCommandStatus()
|
byte[] |
getResponsePdu()
|
java.lang.String |
getText()
Get the text part of the message. |
boolean |
isErrorNotificationMessage()
|
boolean |
multiRecipient()
Indicates if the message is multi receipient or not. |
void |
setBytes(byte[] bytes)
Set the body of the message as bytes. |
void |
setCommandId(int commandId)
|
void |
setCommandStatus(int commandStatus)
|
void |
setErrorNotificationMessage(boolean errorNotificationMessage)
|
void |
setMessageId(java.lang.String id)
set the id of the message. |
void |
setPriority(boolean priority)
Set the priority (sets the priority level to 1). |
void |
setRegistered(boolean registered)
Set the registered flag. |
void |
setRegistered(int registeredValue)
|
void |
setRequestPdu(byte[] requestPdu)
|
void |
setResponseCommandId(int responseCommandId)
|
void |
setResponseCommandStatus(int responseCommandStatus)
|
void |
setResponsePdu(byte[] responsePdu)
|
void |
setText(java.lang.String text)
Set the text part of the message. |
void |
setTo(java.lang.String distributionList)
Specify the destination address as a distribution list. |
java.lang.String |
toString()
This method puts the message structure in a printable string. |
Methods inherited from class ie.ncl.sms.smpp.prot.Message |
---|
addRecipient, getData, getDcs, getEsm, getExpiry, getExpiryAsValidityPeriod, getFails, getFrom, getGsmError, getId, getPid, getPredefined, getPriorityService, getRecipients, getRecipientsAsVector, getRegisteredService, getReplacement, getSchedule, getScheduleAsRelativeDate, getScheduleRelative, getService, getStatus, getTimeStamp, getTo, getUserDataLength, getValidityAsRelativeDate, setData, setDcs, setEsm, setExpiry, setFails, setFrom, setGsmError, setId, setPid, setPredefined, setPriorityService, setRecipients, setRegisteredService, setRelativeExpiry, setReplacement, setSchedule, setScheduleAsRelativeDate, setScheduleRelative, setService, setStatus, setTimeStamp, setTo, setUserDataLength, setValidityAsRelativeDate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Message(Address to, java.lang.String s)
public Message(Address to, byte[] bytes)
public Message()
Method Detail |
---|
public byte[] getResponsePdu()
public void setResponsePdu(byte[] responsePdu)
public byte[] getRequestPdu()
public void setRequestPdu(byte[] requestPdu)
public boolean isErrorNotificationMessage()
public void setErrorNotificationMessage(boolean errorNotificationMessage)
public int getCommandId()
public void setCommandId(int commandId)
public int getCommandStatus()
public void setCommandStatus(int commandStatus)
public int getResponseCommandId()
public void setResponseCommandId(int responseCommandId)
public int getResponseCommandStatus()
public void setResponseCommandStatus(int responseCommandStatus)
public void setText(java.lang.String text)
public java.lang.String getText()
public void setBytes(byte[] bytes)
public byte[] getBytes()
public int getDataLength()
public void setTo(java.lang.String distributionList)
public boolean ccContains(java.lang.Object obj)
public void CC(Address address)
public void CC(java.lang.String name)
public boolean multiRecipient()
public void setPriority(boolean priority)
public boolean getPriority()
public void setRegistered(boolean registered)
public void setRegistered(int registeredValue)
public boolean getRegistered()
public void setMessageId(java.lang.String id)
public java.lang.String getMessageId()
public java.lang.String toString()
toString
in class java.lang.Object
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |