Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit

ie.ncl.sms.nbs
Class NarrowBandSocket

java.lang.Object
  extended by ie.ncl.sms.nbs.NarrowBandSocket
All Implemented Interfaces:
AttributeNames, MessageAttributeNames

public class NarrowBandSocket
extends java.lang.Object
implements MessageAttributeNames


Field Summary
 
Fields inherited from interface ie.ncl.sms.MessageAttributeNames
CC, DCS, EOT_GSM_ESCAPE_CHARACTER, PID, PRIORITY, RECEIPT, RECEIPT_BYTES, RECEIPT_STATUS, RECEIPT_TEXT, REPLACE, REPLY_PATH, SCA, SCHEDULE, SUBMIT_ERROR, TIMESTAMP, UDH, UDHI, VALIDITY
 
Constructor Summary
NarrowBandSocket(Sender sender)
          Create a narrow band socket using some underlying SMS transport.
 
Method Summary
 void close()
          Close the connection.
 void connect()
          Connect with the underlying transport.
static BinaryMessage[] fragmentMessage(SmartMessage sm, int sequenceNumber)
          Fragment a smart message into sms fragments.
 boolean getDeliveryReceiptInLastMessage()
           
 Sender getSender()
           
 SyncSender getSyncSender()
           
 void send(SmartMessage sm)
          Send a smart message.
 void setDeliveryReceiptInLastMessage(boolean val)
          Set the delivery receipt in the last message fragment of a narrow band socket message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NarrowBandSocket

public NarrowBandSocket(Sender sender)
                 throws ConnectionException
Create a narrow band socket using some underlying SMS transport.

Throws:
ConnectionException
Method Detail

setDeliveryReceiptInLastMessage

public void setDeliveryReceiptInLastMessage(boolean val)
Set the delivery receipt in the last message fragment of a narrow band socket message. The default is true. When set to false, the delivery receipt is set in the first fragment of the narrow band socket message.

Parameters:
val -

getDeliveryReceiptInLastMessage

public boolean getDeliveryReceiptInLastMessage()

getSender

public Sender getSender()

getSyncSender

public SyncSender getSyncSender()

connect

public void connect()
             throws ConnectionException
Connect with the underlying transport.

Throws:
ConnectionException

send

public void send(SmartMessage sm)
          throws MessageException,
                 ie.ncl.net.pdu.EncoderException,
                 ConnectionException
Send a smart message.

Throws:
MessageException
ie.ncl.net.pdu.EncoderException
ConnectionException

fragmentMessage

public static BinaryMessage[] fragmentMessage(SmartMessage sm,
                                              int sequenceNumber)
                                       throws MessageException,
                                              ie.ncl.net.pdu.EncoderException
Fragment a smart message into sms fragments.

Throws:
MessageException
ie.ncl.net.pdu.EncoderException

close

public void close()
Close the connection.


Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit