A B C D G I M O P R S T V

A

ACKListener - interface com.unipro.smlib.ACKListener.
Interface for ACK listeners.
To create ACK listener class implement this interface.
ACKReport - class com.unipro.smlib.ACKReport.
Class represents input ACK report of submitted message (acknowledgment about submitting message).
ACKReport object is passed as a parameter to ACKListener.proccessACKReport() method.
To process ACK reports register ACKListener in the SmsManager.
addACKListener(ACKListener) - Method in class com.unipro.smlib.SmsManager
Registers listener object that can process input ACKs.
addMessageListener(SmsListener) - Method in class com.unipro.smlib.SmsManager
Registers listener object that can process input messages.
allowReception(boolean) - Method in class com.unipro.smlib.SmsManager
Allows or forbids reception of input messages and ACKs.
It can be able to refuse input messages and ACKs by calling allowReception(false).

B

BAUD_19200 - Static variable in class com.unipro.smlib.Configurator
baud rate = 19200
BAUD_2400 - Static variable in class com.unipro.smlib.Configurator
baud rate = 2400
BAUD_4800 - Static variable in class com.unipro.smlib.Configurator
baud rate = 4800
BAUD_9600 - Static variable in class com.unipro.smlib.Configurator
baud rate = 9600

C

close() - Method in class com.unipro.smlib.SmsManager
Stops SMLib: stops 2 internal threads that were created by init() method and release COM port.
com.unipro.smlib - package com.unipro.smlib
 
Configurator - class com.unipro.smlib.Configurator.
Class represents settings for smlib.
Configurator object must be passed to the init() method of SmsManager.
Configurator() - Constructor for class com.unipro.smlib.Configurator
Creates new Configurator object with default settings.
Configurator(String, int) - Constructor for class com.unipro.smlib.Configurator
Creates new Configurator with the specified port name and baud rate.

D

deleteACKListener() - Method in class com.unipro.smlib.SmsManager
Deletes ACK listener (About listeners).
deleteMessageListener() - Method in class com.unipro.smlib.SmsManager
Deletes messages listener (About listeners).

G

getACKPoolSize() - Method in class com.unipro.smlib.Configurator
Gets ACKs pool size.
getACKRequest() - Method in class com.unipro.smlib.OutMessage
Gets message request for status report (ACK).
getBaud() - Method in class com.unipro.smlib.Configurator
Gets baud rate.
getDefaultSMSCNumber() - Static method in class com.unipro.smlib.OutMessage
Gets default SMSC number.
getInstance() - Static method in class com.unipro.smlib.SmsManager
Creates SmsManager's instance.
getLocalizedMessage() - Method in class com.unipro.smlib.SendException
Returns the detail message about CMS ERROR.
getMessage() - Method in class com.unipro.smlib.MobileException
Returns the error message string of this exception.
getMessage() - Method in class com.unipro.smlib.SendException
Returns the error message.
getMessage() - Method in class com.unipro.smlib.PortConnectionException
Returns the message string of the exception.
getMessage() - Method in class com.unipro.smlib.ValidationException
Returns the error message.
getMessagePoolSize() - Method in class com.unipro.smlib.Configurator
Gets messages pool size.
getMessageReference() - Method in class com.unipro.smlib.ACKReport
Gets message reference of this ACK.
getMoreMessages() - Method in class com.unipro.smlib.InMessage
Gets more messages flag.
getMoreMessages() - Method in class com.unipro.smlib.ACKReport
Gets more messages flag.
getPort() - Method in class com.unipro.smlib.Configurator
Gets port name.
getReceptionTime() - Method in class com.unipro.smlib.ACKReport
Gets reception time.
getRecipientNumber() - Method in class com.unipro.smlib.OutMessage
Gets message recipient number.
getRecipientNumber() - Method in class com.unipro.smlib.ACKReport
Gets recipient phone number.
getRejectDuplicates() - Method in class com.unipro.smlib.OutMessage
Returns reject duplicates parameter of this message.
getReplyPath() - Method in class com.unipro.smlib.InMessage
Gets the reply path flag.
getReplyPath() - Method in class com.unipro.smlib.OutMessage
Gets the reply path flag.
getSenderNumber() - Method in class com.unipro.smlib.InMessage
Gets message sender number.
getSMSCNumber() - Method in class com.unipro.smlib.InMessage
Gets Short Message Service Center number of the message.
getSMSCNumber() - Method in class com.unipro.smlib.OutMessage
Gets message Short Message Service Center number.
getSMSCNumber() - Method in class com.unipro.smlib.ACKReport
Gets Short Message Service Center number.
getSMSCTime() - Method in class com.unipro.smlib.InMessage
Gets Short Message Service Center time.
getSMSCTime() - Method in class com.unipro.smlib.ACKReport
Gets Short Message Service Center time.
getStatus() - Method in class com.unipro.smlib.MobileException
Returns exception status.
getStatus() - Method in class com.unipro.smlib.SendException
Gets CMS ERROR code.
getStatus() - Method in class com.unipro.smlib.PortConnectionException
Gets exception status.
getStatus() - Method in class com.unipro.smlib.SmsManager
Gets the status of SMLib.
getStatus() - Method in class com.unipro.smlib.ACKReport
Gets the status of the sent message.
Constants of ACKReport, which begin with STATUS_, represent statuses (see constants STATUS_XXX).
getText() - Method in class com.unipro.smlib.InMessage
Gets message text.
getText() - Method in class com.unipro.smlib.OutMessage
Gets message text.
getValidityTime() - Method in class com.unipro.smlib.OutMessage
Gets message validity period.

I

init(Configurator) - Method in class com.unipro.smlib.SmsManager
Initializes SMLib with the specified settings.
This method initializes two threads: first runs java comm API and second runs method for getting SMS from mobile phone.
InMessage - class com.unipro.smlib.InMessage.
Class represents incoming message.
InMessage object is passed as a parameter to SmsListener.proccessMessage() method.
To process in messages register SmsListener in the SmsManager.
isACKReportForThisMessage() - Method in class com.unipro.smlib.InMessage
Tests if a status report will be returned to the mobile phone for this message.
isFlash() - Method in class com.unipro.smlib.InMessage
Tests if this message is a flash message.
isFlash() - Method in class com.unipro.smlib.OutMessage
Tests if this message is a flash message.

M

MAX_MOB_SIZE - Static variable in class com.unipro.smlib.SmsManager
 
MOBILE_PDU_INCOMPATIBLE - Static variable in class com.unipro.smlib.MobileException
One of MobileException statuses.
MobileException - exception com.unipro.smlib.MobileException.
Occurs when connected mobile phone cannot execute some AT commands, which are necessary for sending or receiving of the messages and ACKs.
MobileException(String, int) - Constructor for class com.unipro.smlib.MobileException
Creates new MobileException with the specified message about error.

O

OutMessage - class com.unipro.smlib.OutMessage.
Class represents outgoing SMS message.
Outgoing message can be represented as OutMessage instance and sent by sendMessage() method of SmsManager class.
OutMessage() - Constructor for class com.unipro.smlib.OutMessage
Creates new Outgoing Message with default values.
OutMessage(String, String) - Constructor for class com.unipro.smlib.OutMessage
Creates new OutMessage with the specified receiver and message string.
OutMessage(String, String, boolean) - Constructor for class com.unipro.smlib.OutMessage
Creates new OutMessage with the specified receiver, message string and ACK request.
OutMessage(String, String, String) - Constructor for class com.unipro.smlib.OutMessage
Creates new OutMessage with the specified receiver, Short Message Service Center number and message string.
OutMessage(String, String, String, boolean, int) - Constructor for class com.unipro.smlib.OutMessage
Creates new OutMessage with the specified receiver, Short Message Service Center number, message string, request for status report, validity period.

P

PORT_COM1 - Static variable in class com.unipro.smlib.Configurator
Port COM1
PORT_COM2 - Static variable in class com.unipro.smlib.Configurator
Port COM2
PORT_COM3 - Static variable in class com.unipro.smlib.Configurator
Port COM3
PORT_COM4 - Static variable in class com.unipro.smlib.Configurator
Port COM4
PORT_COM5 - Static variable in class com.unipro.smlib.Configurator
Port COM5
PORT_COM6 - Static variable in class com.unipro.smlib.Configurator
Port COM6
PORT_COM7 - Static variable in class com.unipro.smlib.Configurator
Port COM7
PORT_COM8 - Static variable in class com.unipro.smlib.Configurator
Port COM8
PortConnectionException - exception com.unipro.smlib.PortConnectionException.
Occurs when the connection with mobile phone using data cable cannot be established.
PortConnectionException(String, int) - Constructor for class com.unipro.smlib.PortConnectionException
Creates new PortConnectionException with the specified error message.
processACKReport(ACKReport) - Method in interface com.unipro.smlib.ACKListener
This method should be implemented to realize logic of new ACK processing.
processMessage(InMessage) - Method in interface com.unipro.smlib.SmsListener
This method should be implemented to realize logic of new in message processing.

R

run() - Method in class com.unipro.smlib.SmsManager
 

S

SendException - exception com.unipro.smlib.SendException.
Method sendMessage() of SmsManager throws this exception when there is an error of sending message (Problems with 'W' connection).
SendException(String, String, int) - Constructor for class com.unipro.smlib.SendException
Creates new SendException with the specified error message and CMS ERROR.
sendMessage(OutMessage) - Method in class com.unipro.smlib.SmsManager
Sends an SMS message.
setACKPoolSize(int) - Method in class com.unipro.smlib.Configurator
Sets ACKs pool size.
setACKRequest(boolean) - Method in class com.unipro.smlib.OutMessage
Sets request for status report (ACK) for the message.
setBaud(int) - Method in class com.unipro.smlib.Configurator
Sets baud rate.
setDefaultSMSCNumber(String) - Static method in class com.unipro.smlib.OutMessage
Sets default SMSC number.
setFlash(boolean) - Method in class com.unipro.smlib.OutMessage
Sets flag to indicate this message as flash message.
setMessagePoolSize(int) - Method in class com.unipro.smlib.Configurator
Sets messages pool size.
setPort(String) - Method in class com.unipro.smlib.Configurator
Sets port name.
setRecipientNumber(String) - Method in class com.unipro.smlib.OutMessage
Sets recipient number of the message.
setRejectDuplicates(boolean) - Method in class com.unipro.smlib.OutMessage
Instruct the SMSC to accept or reject an outgoung messages for an message still held in the SMSC which has the same message reference and the same recipient's address as a previously submitted message from the same mobile.
setReplyPath(boolean) - Method in class com.unipro.smlib.OutMessage
Sets reply path flag.
setSMSCNumber(String) - Method in class com.unipro.smlib.OutMessage
Sets Short Message Service Center number of this message.
setText(String) - Method in class com.unipro.smlib.OutMessage
Sets the text of the message.
setValidityTime(int) - Method in class com.unipro.smlib.OutMessage
Sets validity period of the message.
SMLIB_CLOSED - Static variable in class com.unipro.smlib.PortConnectionException
One of exception statuses.
SMLIB_CLOSED - Static variable in class com.unipro.smlib.SmsManager
One of statuses that can be returned by getStatus method.
SMLib is not initialized.
SMLIB_CONNECT_ERROR - Static variable in class com.unipro.smlib.PortConnectionException
One of exception statuses.
SMLIB_DISCONNECT - Static variable in class com.unipro.smlib.SmsManager
One of statuses that can be returned by getStatus method.
SMLib was initialized but after that cable was unplugged.
It is possible to return SMLib to the correct state by reconnecting the cable.
SMLIB_ERROR_CONNECT - Static variable in class com.unipro.smlib.SmsManager
One of statuses that can be returned by getStatus method.
SMLib was initialized but after that cable was unplugged with error.
SMLIB_ERROR_PORT - Static variable in class com.unipro.smlib.SmsManager
One of statuses that can be returned by getStatus method.
SMLib was initialized but after that error of communication port occurred.
It is necessary to close SMLib and initialize it again.
SMLIB_INIT_NONRECEPT - Static variable in class com.unipro.smlib.SmsManager
One of statuses that can be returned by getStatus method.
SMLib was initialized and isn't receiving messages.
SMLIB_INIT_RECEPT - Static variable in class com.unipro.smlib.SmsManager
One of statuses that can be returned by getStatus method.
SMLib was initialized and is receiving messages.
SMLIB_LONG_TIME_FIRST_RESPONSE - Static variable in class com.unipro.smlib.PortConnectionException
One of exception statuses.
SMLIB_LONG_TIME_SECOND_RESPONSE - Static variable in class com.unipro.smlib.PortConnectionException
One of exception statuses.
SmsListener - interface com.unipro.smlib.SmsListener.
Interface for message listeners.
To create message listener class implement this interface.
SmsManager - class com.unipro.smlib.SmsManager.
Note: In the next version of SMLib this class will not extend java.lang.Thread and implement java.lang.Runnable
Please, plan your business logic accordingly


Main class of SMLib.
STATUS_CONGESTION - Static variable in class com.unipro.smlib.ACKReport
Temporary error, SC still trying to transfer SM.
STATUS_CONGESTION2 - Static variable in class com.unipro.smlib.ACKReport
Temporary error, SC is not making any more transfer attempts.
STATUS_CONNECTION_REJECTED_BY_SME - Static variable in class com.unipro.smlib.ACKReport
Permanent error, SC is not making any more transfer attempts.
STATUS_DELIVERED - Static variable in class com.unipro.smlib.ACKReport
Short message transaction completed.
STATUS_ERROR_IN_SME - Static variable in class com.unipro.smlib.ACKReport
Temporary error, SC still trying to transfer SM.
STATUS_ERROR_IN_SME2 - Static variable in class com.unipro.smlib.ACKReport
Temporary error, SC is not making any more transfer attempts.
STATUS_FORWARDED - Static variable in class com.unipro.smlib.ACKReport
Short message transaction completed.
STATUS_INCOMPATIBLE_DESTINATION - Static variable in class com.unipro.smlib.ACKReport
Permanent error, SC is not making any more transfer attempts.
STATUS_NO_INTERWORKING_AVAILABLE - Static variable in class com.unipro.smlib.ACKReport
Permanent error, SC is not making any more transfer attempts.
STATUS_NO_RESPONSE_FROM_SME - Static variable in class com.unipro.smlib.ACKReport
Temporary error, SC still trying to transfer SM.
STATUS_NO_RESPONSE_FROM_SME2 - Static variable in class com.unipro.smlib.ACKReport
Temporary error, SC is not making any more transfer attempts.
STATUS_NOT_OBTAINABLE - Static variable in class com.unipro.smlib.ACKReport
Permanent error, SC is not making any more transfer attempts.
STATUS_QUALITY_OF_SERVICE_NOT_AVAILABLE - Static variable in class com.unipro.smlib.ACKReport
Temporary error, SC still trying to transfer SM.
STATUS_QUALITY_OF_SERVICE_NOT_AVAILABLE2 - Static variable in class com.unipro.smlib.ACKReport
Permanent error, SC is not making any more transfer attempts.
STATUS_QUALITY_OF_SERVICE_NOT_AVAILABLE3 - Static variable in class com.unipro.smlib.ACKReport
Temporary error, SC is not making any more transfer attempts.
STATUS_REJECTED - Static variable in class com.unipro.smlib.ACKReport
Temporary error, SC still trying to transfer SM.
STATUS_REMOTE_PROCEDURE_ERROR - Static variable in class com.unipro.smlib.ACKReport
Permanent error, SC is not making any more transfer attempts.
STATUS_REPLACED - Static variable in class com.unipro.smlib.ACKReport
Short message transaction completed.
STATUS_SERVICE_REJECTED - Static variable in class com.unipro.smlib.ACKReport
Temporary error, SC still trying to transfer SM.
STATUS_SERVICE_REJECTED2 - Static variable in class com.unipro.smlib.ACKReport
Temporary error, SC is not making any more transfer attempts.
STATUS_SM_DELETED_BY_ORIGINATING_SME - Static variable in class com.unipro.smlib.ACKReport
Permanent error, SC is not making any more transfer attempts.
STATUS_SM_DELETED_BY_SC_ADMINISTRATOR - Static variable in class com.unipro.smlib.ACKReport
Permanent error, SC is not making any more transfer attempts.
STATUS_SM_DOES_NOT_EXIST - Static variable in class com.unipro.smlib.ACKReport
Permanent error, SC is not making any more transfer attempts.
STATUS_SM_VALIDITY_PERIOD_EXPIRED - Static variable in class com.unipro.smlib.ACKReport
Permanent error, SC is not making any more transfer attempts.
STATUS_SME_BUSY - Static variable in class com.unipro.smlib.ACKReport
Temporary error, SC still trying to transfer SM.
STATUS_SME_BUSY2 - Static variable in class com.unipro.smlib.ACKReport
Temporary error, SC is not making any more transfer attempts.
STATUS_UNKNOWN - Static variable in class com.unipro.smlib.ACKReport
Status of the sent message.

T

toString() - Method in class com.unipro.smlib.SendException
Returns a String object representing the exception.
toString() - Method in class com.unipro.smlib.InMessage
Returns String representation of the object.
toString() - Method in class com.unipro.smlib.OutMessage
Returns a String representation of the OutMessage object.
toString() - Method in class com.unipro.smlib.ACKReport
Returns a String representation of the ACK.

V

ValidationException - exception com.unipro.smlib.ValidationException.
Exception occurs when invalid parameter of OutMessage or Configurator is set.
Additional information about SMLib exceptions: SMLib exceptions.
ValidationException(String) - Constructor for class com.unipro.smlib.ValidationException
Creates new ValidationException with the specified error message.

A B C D G I M O P R S T V