|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ie.ncl.sms.smpp.Smpp
public class Smpp
This class is used to establish a connection with a Short Message Service Center (SMSC) and provides an implementation of the SMPP protocol version 3.3 and the SMPPP (provisioning) protocol version 1.1.
Field Summary | |
---|---|
static boolean |
encryption
Deprecated. |
int |
RECONNECT_RETRY_ATTEMPTS
Deprecated. |
long |
RECONNECT_TIMER
Deprecated. |
Constructor Summary | |
---|---|
Smpp()
Deprecated. This constructor sets up the SMPP protocol and connects to the SMSC. |
|
Smpp(int port)
Deprecated. This constructor sets up the SMPP protocol and waits for a connect from the SMSC. |
|
Smpp(java.lang.String host,
int port)
Deprecated. This constructor sets up the SMPP protocol and connects to the SMSC. |
Method Summary | |
---|---|
void |
acknowledge(Message m,
boolean success)
Deprecated. Send a acknowledgement (negative or positive) to a received message. |
void |
add(AddCustomerResponse target,
Customer c)
Deprecated. This method is used to asynchronously add a new Customer to the SMSC. |
void |
add(AddDLResponse target,
Address source,
java.lang.String dlname)
Deprecated. These method asynchronously adds a new (empty) Distribution list to the SMSC. |
void |
add(AddMemberResponse target,
Address source,
java.lang.String dlname,
Member member)
Deprecated. These method asynchronously adds a new member to distribution list on the SMSC. |
void |
add(Address source,
java.lang.String dlname)
Deprecated. This method is a synchronous version of the one above. |
void |
add(Address source,
java.lang.String dlname,
Member member)
Deprecated. This method is a synchronous version of the one above. |
void |
add(Customer c)
Deprecated. This method is used to synchronously add a new Customer to the SMSC. |
void |
add(ie.ncl.sms.smpp.SmppRequest request)
Deprecated. Add a request to the outgoing queue. |
void |
add(ie.ncl.sms.smpp.SmppRequest request,
boolean expedite)
Deprecated. Add a request to the outgoing queue. |
void |
add(ie.ncl.sms.smpp.SmppResponse response)
Deprecated. Add a request to the outgoing queue. |
void |
addOverTheLimit(ie.ncl.sms.smpp.SmppRequest request)
Deprecated. |
void |
alerts(AlertNotification target)
Deprecated. This method sets up a callback target which will be called when alert notifications are received. |
boolean |
areAnyQueuesFull()
Deprecated. |
void |
bind(Binding b)
Deprecated. This method performs an synchronous bind with the SMSC. |
void |
bind(BindResponse target,
Binding b)
Deprecated. This method is used to perform an asynchronous bind with the SMSC. |
void |
cancel(CancelResponse target,
Message m)
Deprecated. This method is used to asynchronously cancel a short message sent to the SMSC for further delivery to an SME or SMEs. |
void |
cancel(Message m)
Deprecated. |
void |
checkForTimedOutRequests()
Deprecated. |
void |
checkLink()
Deprecated. This method performs a up-link check on the SMPP connection. |
void |
checkLink(CheckLinkResponse target)
Deprecated. This method performs a up-link check on the SMPP connection. |
void |
close()
Deprecated. |
void |
closeServer()
Deprecated. For outbinds only. |
boolean |
connected()
Deprecated. Is the SMPP object still connected to the SMSC. |
void |
debug(boolean ind,
boolean outd)
Deprecated. Debug is now turned on in a configuration file |
void |
del(Address source,
java.lang.String dlname)
Deprecated. This method is a synchronous version of the one above. |
void |
del(Address source,
java.lang.String dlname,
Member member)
Deprecated. This method is a synchronous version of the one above. |
void |
del(Customer c)
Deprecated. This method is used to synchronously delete an existing customer on the SMSC. |
void |
del(DelCustomerResponse target,
Customer c)
Deprecated. This method is used to asynchronously delete an existing customer on the SMSC. |
void |
del(DelDLResponse target,
Address source,
java.lang.String dlname)
Deprecated. These method asynchronously deletes an existing Distribution List on the SMSC. |
void |
del(DelMemberResponse target,
Address source,
java.lang.String dlname,
Member member)
Deprecated. These method asynchronously adds a deletes an existing member of distribution list on the SMSC. |
void |
details(DetailsResponse target,
Message m)
Deprecated. This method is used to asynchronously query all of the details of a short message sent to the SMSC for further delivery to an SME. |
void |
details(Message m)
Deprecated. This method is used to synchronously query all of the details of a short message sent to See the asynchronous version of this method above for more detail. |
java.lang.String[] |
get(Address source)
Deprecated. This method is a synchronous version of the one above. |
Member[] |
get(Address source,
java.lang.String dlname)
Deprecated. This method is a synchronous version of the one above. |
void |
get(Customer c)
Deprecated. This method is used to synchronously retrieve an existing customer's attributes See the asynchronous version of this method above for more detail. |
void |
get(GetCustomerResponse target,
Customer c)
Deprecated. This method is used to asynchronously retrieve an existing customer's attributes on the SMSC. |
void |
get(GetDLResponse target,
Address source)
Deprecated. These method asynchronously retrieves a list of distribution list names on the SMSC. |
void |
get(GetMemberResponse target,
Address source,
java.lang.String dlname)
Deprecated. These method asynchronously retrieves the members of distribution list on the SMSC. |
java.lang.String |
getAlphanumericAddressCharacterEncoding()
Deprecated. |
boolean |
getAutoAcknowledge()
Deprecated. Acknowledge received messages automatically. |
int |
getAutomaticLinkCheck()
Deprecated. Gets the automatic link check. |
long |
getBindResponseTimeout()
Deprecated. |
int |
getFlowControlTimer()
Deprecated. |
int |
getInputStreamTimer()
Deprecated. |
boolean |
getLinkAliveIfAnyDataReceived()
Deprecated. Get the Link Alive functionality. |
LinkTimers |
getLinkTimers()
Deprecated. |
int |
getMaximumNumberOfRetries()
Deprecated. |
int |
getMaxLengthPdu()
Deprecated. |
boolean |
getNotifyApplicationOfTempErrors()
Deprecated. |
int |
getOutputQueueSize()
Deprecated. Get the size of the output queue. |
ie.ncl.util.ClosableFiniteFifo |
getPendingRequests()
Deprecated. |
boolean |
getReconnectOnDisconnect()
Deprecated. Reconnect if there is a disconnection. |
int |
getRequestTimeout()
Deprecated. |
boolean |
getRetryMessagesOnQueueFull()
Deprecated. |
boolean |
getSequentialAcks()
Deprecated. |
ie.ncl.sms.smpp.prot.SmppDecoder |
getSmppDecoder(byte[] bytes)
Deprecated. |
ie.ncl.sms.smpp.prot.SmppEncoder |
getSmppEncoder()
Deprecated. |
int |
getSmscResponseTimeout()
Deprecated. The response time out for an SMSC (30 seconds). |
int |
getSocketConnectTimeout()
Deprecated. |
int |
getSocketSoTimeout()
Deprecated. |
int |
getStatusForReceiveException()
Deprecated. |
int |
getThrottling()
Deprecated. |
long |
getTimeBetweenRetries()
Deprecated. |
int |
getUnackedQueueSize()
Deprecated. |
int |
getUnackedQueueSizePause()
Deprecated. |
boolean |
isDeliverUnknownPDUs()
Deprecated. |
boolean |
isMaxLengthPduExceeded(int length)
Deprecated. |
boolean |
isMessageIdReturned()
Deprecated. |
boolean |
isNotifyApplicationOfDecodingErrors()
Deprecated. |
boolean |
isThreadDaemon()
Deprecated. |
boolean |
isThrottleOnMsgQueueFullError()
Deprecated. |
java.lang.String[] |
list(Address source,
int count)
Deprecated. This method is used to synchronously query a list of short messages sent to the SMSC for further delivery to an SME. |
void |
list(ListResponse target,
Address source,
int count)
Deprecated. This method is used to asynchronously query a list of short messages sent to the SMSC for further delivery to an SME. |
static void |
main(java.lang.String[] args)
Deprecated. Print version information. |
void |
mod(Customer c)
Deprecated. This method is used to synchronously modify an existing Customer at the SMSC. |
void |
mod(ModCustomerResponse target,
Customer c)
Deprecated. This method is used to asynchronously modify an existing Customer at the SMSC. |
void |
parameter(ParameterResponse target,
java.lang.String name)
Deprecated. This method is used to retrieve a (per ESME & system wide) configurable parameter at the SMSC. |
java.lang.String |
parameter(java.lang.String name)
Deprecated. This method is used to retrieve a (per ESME & system wide) configurable parameter at the SMSC. |
void |
receive(ExtendedReceiver target)
Deprecated. This method sets up a callback target which will be called when messages are received. |
void |
receive(Receiver target)
Deprecated. This method sets up a callback target which will be called when messages are received. |
void |
recordDataReceived()
Deprecated. |
void |
replace(Message m)
Deprecated. This method is used to synchronously replace a short message sent to the SMSC for further delivery to an SME. |
void |
replace(ReplaceResponse target,
Message m)
Deprecated. This method is used to asynchronously replace a short message sent to the SMSC for further delivery to an SME. |
void |
retry(ie.ncl.sms.smpp.SmppRequest request)
Deprecated. Add a request to the outgoing queue but expedite it. |
void |
send(ExtendedSendResponse target,
Message m,
MessageSettings settings)
Deprecated. This method is used to asynchronously send a short message to the SMSC for further delivery to an SME or SMEs. |
void |
send(Message m)
Deprecated. |
void |
send(Message m,
MessageSettings ms)
Deprecated. |
void |
send(SendResponse target,
Message m)
Deprecated. This method is used to asynchronously send a short message to the SMSC for further delivery to an SME or SMEs. |
void |
send(SendResponse target,
Message m,
MessageSettings ms)
Deprecated. |
void |
service(java.net.Socket socket)
Deprecated. |
void |
setAlphanumericAddressCharacterEncoding(java.lang.String alphanumericAddressCharacterEncoding)
Deprecated. |
void |
setAutoAcknowledge(boolean yesno)
Deprecated. Acknowledge received messages automatically. |
void |
setAutomaticLinkCheck(int usec)
Deprecated. Sets the automatic link check. |
void |
setBindResponseTimeout(long bindResponseTimeout)
Deprecated. |
void |
setConnectionErrorTarget(ConnectionError ce)
Deprecated. Used to specify a callback when the connection is closed. |
void |
setDeliverUnknownPDUs(boolean deliverUnknownPDUs)
Deprecated. |
void |
setFlowControlTimer(int usec)
Deprecated. The default FLOW CONTROL timer is how long to wait before starting to send messages again (10 seconds) after receiving a throttling error. |
void |
setInputStreamTimer(int timer)
Deprecated. |
void |
setLinkAliveIfAnyDataReceived(boolean newVal)
Deprecated. Set the Link Alive functionality. |
void |
setMaximumNumberOfRetries(int val)
Deprecated. |
void |
setMaxLengthPdu(int maxLengthPdu)
Deprecated. |
void |
setMessageIdReturned(boolean messageIdReturned)
Deprecated. |
void |
setNotifyApplicationOfDecodingErrors(boolean notifyApplicationOfDecodingErrors)
Deprecated. |
void |
setNotifyApplicationOfTempErrors(boolean val)
Deprecated. |
void |
setOutputQueueSize(int size)
Deprecated. Set the size of the output queue. |
void |
setReconnectOnDisconnect(boolean yesOrNo)
Deprecated. Reconnect if there is a disconnection. |
void |
setRequestTimeout(int requestTimeout)
Deprecated. |
void |
setRetryMessagesOnQueueFull(boolean val)
Deprecated. |
void |
setSequentialAcks(boolean yesOrNo)
Deprecated. |
static void |
setSMSC(java.lang.String host,
int port)
Deprecated. This static method sets the default TCP/IP address of the SMSC. |
void |
setSmscResponseTimeout(int usec)
Deprecated. The response time out for an SMSC (30 seconds). |
void |
setSocketConnectTimeout(int socketConnectTimeout)
Deprecated. |
void |
setSocketSoTimeout(int socketSoTimeout)
Deprecated. |
void |
setStatusForReceiveException(int statusForReceiveException)
Deprecated. |
void |
setThreadDaemon(boolean threadDaemon)
Deprecated. |
void |
setThrottleOnMsgQueueFullError(boolean throttleOnMsgQueueFullError)
Deprecated. |
void |
setThrottling(int throttleUsecond)
Deprecated. |
void |
setTimeBetweenRetries(long msec)
Deprecated. |
void |
setUnackedQueueSize(int size)
Deprecated. |
void |
setUnackedQueueSizePause(int pause)
Deprecated. |
void |
shutdown()
Deprecated. This method is used to abort the smpp connection. |
void |
status(Message m)
Deprecated. This method is used to synchronously query the status of a short message sent to See the asynchronous version of this method above for more detail. |
void |
status(StatusResponse target,
Message m)
Deprecated. This method is used to asynchronously query the status of a short message sent to the SMSC for further delivery to an SME. |
static java.lang.String |
version()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean encryption
public int RECONNECT_RETRY_ATTEMPTS
public long RECONNECT_TIMER
Constructor Detail |
---|
public Smpp(java.lang.String host, int port) throws java.net.UnknownHostException, java.io.IOException, ie.ncl.net.socks.SocksException
host
- The host name or IP address of the SMSCport
- The port number of the SMPP server on the SMSC
java.net.UnknownHostException
- If the host name look up failed
java.io.IOException
- If a socket could not be created
ie.ncl.net.socks.SocksException
- If communication with the SOCKS V4 proxy failedpublic Smpp(int port) throws java.net.UnknownHostException, java.io.IOException, ie.ncl.net.socks.SocksException
port
- The port number that an incomming SMPP connection will arrive
java.net.UnknownHostException
- If the host name look up failed
java.io.IOException
- If a socket could not be created
ie.ncl.net.socks.SocksException
- If communication with the SOCKS V4 proxy failedpublic Smpp() throws java.net.UnknownHostException, java.io.IOException, ie.ncl.net.socks.SocksException, SMSException
java.net.UnknownHostException
- If the host name look up failed
java.io.IOException
- If a socket could not be created
ie.ncl.net.socks.SocksException
- If communication with the SOCKS V4 proxy failed
SMSException
- If there is no default SMSC addresssetSMSC(java.lang.String, int)
Method Detail |
---|
public LinkTimers getLinkTimers()
public void recordDataReceived()
public long getBindResponseTimeout()
public void setBindResponseTimeout(long bindResponseTimeout)
public boolean isThrottleOnMsgQueueFullError()
public void setThrottleOnMsgQueueFullError(boolean throttleOnMsgQueueFullError)
public int getSocketConnectTimeout()
public void setSocketConnectTimeout(int socketConnectTimeout)
public int getMaxLengthPdu()
public void setMaxLengthPdu(int maxLengthPdu)
public boolean isDeliverUnknownPDUs()
public void setDeliverUnknownPDUs(boolean deliverUnknownPDUs)
public boolean isMaxLengthPduExceeded(int length)
public boolean isNotifyApplicationOfDecodingErrors()
public void setNotifyApplicationOfDecodingErrors(boolean notifyApplicationOfDecodingErrors)
public boolean isThreadDaemon()
public void setThreadDaemon(boolean threadDaemon)
public boolean isMessageIdReturned()
public void setMessageIdReturned(boolean messageIdReturned)
public static void main(java.lang.String[] args)
public static java.lang.String version()
public int getStatusForReceiveException()
public void setStatusForReceiveException(int statusForReceiveException)
public void setThrottling(int throttleUsecond)
public int getThrottling()
public int getInputStreamTimer()
public void setInputStreamTimer(int timer)
public void setRetryMessagesOnQueueFull(boolean val)
public boolean getRetryMessagesOnQueueFull()
public boolean getNotifyApplicationOfTempErrors()
public void setNotifyApplicationOfTempErrors(boolean val)
public int getMaximumNumberOfRetries()
public void setMaximumNumberOfRetries(int val)
public int getSocketSoTimeout()
public void setSocketSoTimeout(int socketSoTimeout)
public void setConnectionErrorTarget(ConnectionError ce)
public boolean getLinkAliveIfAnyDataReceived()
public void setLinkAliveIfAnyDataReceived(boolean newVal)
getLinkAliveIfAnyDataReceived()
public void setAutoAcknowledge(boolean yesno)
public boolean getAutoAcknowledge()
public boolean getSequentialAcks()
public void setSequentialAcks(boolean yesOrNo)
public boolean getReconnectOnDisconnect()
public void setReconnectOnDisconnect(boolean yesOrNo)
public int getOutputQueueSize()
public void setOutputQueueSize(int size)
public void setUnackedQueueSize(int size)
public int getUnackedQueueSize()
public void setUnackedQueueSizePause(int pause)
public int getUnackedQueueSizePause()
public ie.ncl.util.ClosableFiniteFifo getPendingRequests()
public void setSmscResponseTimeout(int usec)
public int getSmscResponseTimeout()
public void setFlowControlTimer(int usec)
public int getFlowControlTimer()
setFlowControlTimer(int)
public void setAutomaticLinkCheck(int usec)
public int getAutomaticLinkCheck()
public static void setSMSC(java.lang.String host, int port)
public void service(java.net.Socket socket) throws java.io.IOException
java.io.IOException
public void retry(ie.ncl.sms.smpp.SmppRequest request) throws ie.ncl.util.QueueClosedException
ie.ncl.util.QueueClosedException
public void receive(Receiver target) throws SMSException
SMSException
- If not bound as a receiverbind(ie.ncl.sms.smpp.BindResponse, ie.ncl.sms.smpp.Binding)
,
Receiver
public void receive(ExtendedReceiver target) throws SMSException
SMSException
- If not bound as a receiverbind(ie.ncl.sms.smpp.BindResponse, ie.ncl.sms.smpp.Binding)
,
ExtendedReceiver
public void alerts(AlertNotification target) throws SMSException
SMSException
AlertNotification
public void add(ie.ncl.sms.smpp.SmppRequest request, boolean expedite) throws ie.ncl.util.QueueClosedException
ie.ncl.util.QueueClosedException
public void add(ie.ncl.sms.smpp.SmppRequest request) throws ie.ncl.util.QueueClosedException
ie.ncl.util.QueueClosedException
public void addOverTheLimit(ie.ncl.sms.smpp.SmppRequest request) throws ie.ncl.util.QueueClosedException
ie.ncl.util.QueueClosedException
public boolean areAnyQueuesFull()
public void add(ie.ncl.sms.smpp.SmppResponse response) throws ie.ncl.util.QueueClosedException
ie.ncl.util.QueueClosedException
public boolean connected()
public void bind(BindResponse target, Binding b) throws SMSException, java.io.IOException
target
- The object to be called when the bind is completeb
- The bind information
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorBindResponse
public void bind(Binding b) throws SMSException, java.io.IOException
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void send(SendResponse target, Message m) throws SMSException, java.io.IOException
m
- The short message to be sent.target
- The object to be called when the response has been received
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorMessage.getId()
,
SendResponse
public void send(SendResponse target, Message m, MessageSettings ms) throws SMSException, java.io.IOException
SMSException
java.io.IOException
public void send(ExtendedSendResponse target, Message m, MessageSettings settings) throws SMSException, java.io.IOException
m
- The short message to be sent.target
- The object to be called when the response has been received.settings
- Extended message settings for SMPP 3.4
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorMessage.getId()
,
SendResponse
public void send(Message m) throws SMSException, java.io.IOException
SMSException
java.io.IOException
public void send(Message m, MessageSettings ms) throws SMSException, java.io.IOException
SMSException
java.io.IOException
public void cancel(CancelResponse target, Message m) throws SMSException, java.io.IOException
m
- The short message to be cancelled.target
- The object to be called when the response has been received
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorMessage
,
Message.setFrom(ie.ncl.sms.smpp.prot.Address)
,
CancelResponse
public void cancel(Message m) throws java.io.IOException, SMSException
java.io.IOException
SMSException
public void replace(ReplaceResponse target, Message m) throws SMSException, java.io.IOException
m
- The replacement short message.target
- The object to be called when the response has been received
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorMessage
,
Message.setFrom(ie.ncl.sms.smpp.prot.Address)
,
ReplaceResponse
public void replace(Message m) throws SMSException, java.io.IOException
m
- The replacement short message.
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void status(StatusResponse target, Message m) throws SMSException, java.io.IOException
m
- The replacement short message.target
- The object to be called when the response has been received
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorMessage
,
Message.setFrom(ie.ncl.sms.smpp.prot.Address)
,
Message.getTimeStamp()
,
Message.getGsmError()
,
Message.getStatus()
,
StatusResponse
public void status(Message m) throws SMSException, java.io.IOException
m
- The replacement short message.
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void details(DetailsResponse target, Message m) throws SMSException, java.io.IOException
m
- The message in which the details will be returned.target
- The object to be called when the response has been received
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorMessage
,
Message.setFrom(ie.ncl.sms.smpp.prot.Address)
,
DetailsResponse
public void details(Message m) throws SMSException, java.io.IOException
m
- The message in which the details will be returned.
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void list(ListResponse target, Address source, int count) throws SMSException, java.io.IOException
target
- The object to be called when the response has been receivedsource
- The short messages' original source address.count
- Indicates the maximum number of IDs to be returned.
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorMessage
,
status(ie.ncl.sms.smpp.StatusResponse, ie.ncl.sms.smpp.Message)
,
details(ie.ncl.sms.smpp.DetailsResponse, ie.ncl.sms.smpp.Message)
,
ListResponse
public java.lang.String[] list(Address source, int count) throws SMSException, java.io.IOException
source
- The short messages' original source address.count
- Indicates the maximum number of IDs to be returned.
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void parameter(ParameterResponse target, java.lang.String name) throws SMSException, java.io.IOException
target
- The object to be called when the response has been receivedname
- The name of the parameter
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorParameterResponse
public java.lang.String parameter(java.lang.String name) throws SMSException, java.io.IOException
name
- The name of the parameter
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void checkLink() throws SMSException, java.io.IOException
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void checkLink(CheckLinkResponse target) throws SMSException, java.io.IOException
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void add(AddCustomerResponse target, Customer c) throws SMSException, java.io.IOException
target
- The callback target.c
- The new customer.
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorAddCustomerResponse
,
Customer
public void add(Customer c) throws SMSException, java.io.IOException
c
- The new customer.
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void mod(ModCustomerResponse target, Customer c) throws SMSException, java.io.IOException
target
- The callback targetc
- The replacement customer's attributes
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorModCustomerResponse
,
Customer
public void mod(Customer c) throws SMSException, java.io.IOException
c
- The replacement customer's attributes
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void get(GetCustomerResponse target, Customer c) throws SMSException, java.io.IOException
target
- The callback targetc
- The customer object in which the retrieved attributes will be placed
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorGetCustomerResponse
,
Customer
public void get(Customer c) throws SMSException, java.io.IOException
c
- The customer object in which the retrieved attributes will be placed
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void del(DelCustomerResponse target, Customer c) throws SMSException, java.io.IOException
target
- The callback targetc
- The customer to be deleted.
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorDelCustomerResponse
,
Customer
public void del(Customer c) throws SMSException, java.io.IOException
c
- The customer to be deleted.
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void add(AddDLResponse target, Address source, java.lang.String dlname) throws SMSException, java.io.IOException
target
- The callback targetdlname
- The name of the distribution list to be addedsource
- The SME owner of the distrbution list
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void add(Address source, java.lang.String dlname) throws SMSException, java.io.IOException
dlname
- The name of the distribution list to be addedsource
- The SME owner of the distrbution list
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void del(DelDLResponse target, Address source, java.lang.String dlname) throws SMSException, java.io.IOException
target
- The callback targetdlname
- The name of the distribution list to be deletedsource
- The SME owner of the distrbution list
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void del(Address source, java.lang.String dlname) throws SMSException, java.io.IOException
dlname
- The name of the distribution list to be deletedsource
- The SME owner of the distrbution list
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void get(GetDLResponse target, Address source) throws SMSException, java.io.IOException
target
- The callback targetsource
- The SME owner of the distrbution lists
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic java.lang.String[] get(Address source) throws SMSException, java.io.IOException
source
- The SME owner of the distrbution lists
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void add(AddMemberResponse target, Address source, java.lang.String dlname, Member member) throws SMSException, java.io.IOException
target
- The callback targetsource
- The SME owner of the distrbution listdlname
- The name of the distribution list to be modifiedmember
- The new distribution list member
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void add(Address source, java.lang.String dlname, Member member) throws SMSException, java.io.IOException
source
- The SME owner of the distrbution listdlname
- The name of the distribution list to be modifiedmember
- The new distribution list member
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void del(DelMemberResponse target, Address source, java.lang.String dlname, Member member) throws SMSException, java.io.IOException
target
- The callback targetsource
- The SME owner of the distrbution listdlname
- The name of the distribution list to be modifiedmember
- The distribution list member to be deleted.
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void del(Address source, java.lang.String dlname, Member member) throws SMSException, java.io.IOException
source
- The SME owner of the distrbution listdlname
- The name of the distribution list to be modifiedmember
- The distribution list member to be deleted.
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void get(GetMemberResponse target, Address source, java.lang.String dlname) throws SMSException, java.io.IOException
target
- The callback targetsource
- The SME owner of the distrbution listdlname
- The name of the distribution list to be retrieved
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic Member[] get(Address source, java.lang.String dlname) throws SMSException, java.io.IOException
source
- The SME owner of the distrbution listdlname
- The name of the distribution list to be retrieved
java.io.IOException
- If communication with the SMSC breaks down
SMSException
- If the SMSC returns an errorpublic void closeServer()
public void close()
public void debug(boolean ind, boolean outd)
ind
- Turns debugging on for the input stream if this is true.outd
- Turns debugging on for the output stream if this is true.public void shutdown()
public void acknowledge(Message m, boolean success) throws java.io.IOException, SMSException
java.io.IOException
SMSException
public long getTimeBetweenRetries()
public void setTimeBetweenRetries(long msec)
public void setRequestTimeout(int requestTimeout)
public int getRequestTimeout()
public void checkForTimedOutRequests()
public java.lang.String getAlphanumericAddressCharacterEncoding()
public void setAlphanumericAddressCharacterEncoding(java.lang.String alphanumericAddressCharacterEncoding)
public ie.ncl.sms.smpp.prot.SmppDecoder getSmppDecoder(byte[] bytes)
public ie.ncl.sms.smpp.prot.SmppEncoder getSmppEncoder()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |