com.java4less.sms.ucp
Class BasicSubmitMessage

java.lang.Object
  |
  +--com.java4less.sms.ucp.UcpMessage
        |
        +--com.java4less.sms.ucp.BasicSubmitMessage

public class BasicSubmitMessage
extends UcpMessage

This is the easiest way of sending a message. The 'Call input operation' is the normal means of submitting a Short Message. The SMSC must, when it receives this command, send the message to the recipient address that is specified in the command.


Field Summary
 java.lang.String alphaMessage
          Alphanumeric Message to send
 java.lang.String messageType
          message type (2 for numeric and 3 for alphanumeric)
 java.lang.String numericMessage
          numeric message to send
 java.lang.String originator
          Address code originator.
 java.lang.String password
          password.
 java.lang.String recipient
          Address code recipient.
 
Fields inherited from class com.java4less.sms.ucp.UcpMessage
ETX_CHAR, headerO_R, headerOT, headerTRN, OP_BASIC_DEFERRED_SUBMIT, OP_BASIC_SUBMIT, OP_MULTIPLE_BASIC_SUBMIT, OP_SERIE50_DELETE, OP_SERIE50_DELIVER, OP_SERIE50_DELIVER_NOTIFICATION, OP_SERIE50_INQUIRY, OP_SERIE50_MODIFY, OP_SERIE50_RESPONSE_DELETE, OP_SERIE50_RESPONSE_INQUIRY, OP_SERIE50_SUBMIT, OP_SERIES60_OPEN, OP_SERIES60_PROVISIONING, OP_SUBMIT, STX_CHAR
 
Constructor Summary
BasicSubmitMessage()
           
BasicSubmitMessage(byte[] b)
          create message from a byte array
 
Method Summary
 byte[] toBytes()
          convert message to bytes
 
Methods inherited from class com.java4less.sms.ucp.UcpMessage
getDataFieldsCount, parse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

recipient

public java.lang.String recipient
Address code recipient. Mandatory.


originator

public java.lang.String originator
Address code originator. Optional.


password

public java.lang.String password
password. Optional.


messageType

public java.lang.String messageType
message type (2 for numeric and 3 for alphanumeric)


numericMessage

public java.lang.String numericMessage
numeric message to send


alphaMessage

public java.lang.String alphaMessage
Alphanumeric Message to send

Constructor Detail

BasicSubmitMessage

public BasicSubmitMessage()

BasicSubmitMessage

public BasicSubmitMessage(byte[] b)
                   throws java.lang.Exception
create message from a byte array

Method Detail

toBytes

public byte[] toBytes()
               throws SmsException
Description copied from class: UcpMessage
convert message to bytes

Overrides:
toBytes in class UcpMessage
SmsException