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.smpp.server
Class SmppServerConnectionRequest

java.lang.Object
  extended by ie.ncl.sms.smpp.server.SmppServerConnectionRequest
All Implemented Interfaces:
MessageServerConnectionRequest

public class SmppServerConnectionRequest
extends java.lang.Object
implements MessageServerConnectionRequest


Field Summary
static java.lang.String factoryPropertiesConfigurationName
           
 
Method Summary
 Connection accept(ie.ncl.util.Properties connectionProperties, ReceiverListener receiverListener, ErrorListener errorListener)
          Accepts an inbound SMPP connection return an SMPP_ROK (0) to the client.
 Connection accept(ReceiverListener receiverListener)
          Accepts an inbound SMPP connection return an SMPP_ROK (0) to the client
 Connection accept(ReceiverListener receiverListener, ErrorListener errorListener)
           
 ie.ncl.util.Properties getProperties()
          Returns the properties of the connection.
 int getRejectStatus()
          Gets the error status that is sent in an unsuccessful bind response when the connection is rejected
 java.lang.String getSmscId()
          Gets the SMSC ID that is sent in a successful bind response when the connection is accepted
 void reject()
          Rejects an inbound SMPP connection.
 void setRejectStatus(int rejectStatus)
          Sets the error status that is sent in an unsuccessful bind response when the connection is rejected
 void setSmscId(java.lang.String smscId)
          Sets the SMSC ID that is sent in a successful bind response when the connection is accepted
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factoryPropertiesConfigurationName

public static final java.lang.String factoryPropertiesConfigurationName
See Also:
Constant Field Values
Method Detail

getProperties

public ie.ncl.util.Properties getProperties()
Returns the properties of the connection. Properties include

Specified by:
getProperties in interface MessageServerConnectionRequest
Returns:

accept

public Connection accept(ReceiverListener receiverListener)
                  throws ConnectionException
Accepts an inbound SMPP connection return an SMPP_ROK (0) to the client

Specified by:
accept in interface MessageServerConnectionRequest
Parameters:
receiverListener - - the callback called for received messages
Throws:
ConnectionException

getSmscId

public java.lang.String getSmscId()
Gets the SMSC ID that is sent in a successful bind response when the connection is accepted


setSmscId

public void setSmscId(java.lang.String smscId)
Sets the SMSC ID that is sent in a successful bind response when the connection is accepted


accept

public Connection accept(ie.ncl.util.Properties connectionProperties,
                         ReceiverListener receiverListener,
                         ErrorListener errorListener)
                  throws ConnectionException
Accepts an inbound SMPP connection return an SMPP_ROK (0) to the client. The SMSC ID is send in the response. By default this is an empty string.

Specified by:
accept in interface MessageServerConnectionRequest
Parameters:
connectionProperties - - the smpp connection properties of the SmppConnection object. If this is null then SmppServer.* properties are loaded from the Factory.properties file.
receiverListener - - the callback called to notify application of received messages
errorListener - - the callback called to notify application of connection errors
Throws:
ConnectionException
See Also:
SmppConnection, setSmscId(String)

accept

public Connection accept(ReceiverListener receiverListener,
                         ErrorListener errorListener)
                  throws ConnectionException
Specified by:
accept in interface MessageServerConnectionRequest
Throws:
ConnectionException

getRejectStatus

public int getRejectStatus()
Gets the error status that is sent in an unsuccessful bind response when the connection is rejected


setRejectStatus

public void setRejectStatus(int rejectStatus)
Sets the error status that is sent in an unsuccessful bind response when the connection is rejected

Parameters:
rejectStatus -

reject

public void reject()
Rejects an inbound SMPP connection. Sending the reject status as the error. The default value is SMPP_RSYSERR (system error 0x08)

Specified by:
reject in interface MessageServerConnectionRequest
See Also:
setRejectStatus(int)

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