SMSLib 3.5.3

org.smslib.smsserver.interfaces
Class SimpleInboundFileLogger

java.lang.Object
  extended by org.smslib.smsserver.interfaces.Interface<java.lang.Void>
      extended by org.smslib.smsserver.interfaces.SimpleInboundFileLogger

public class SimpleInboundFileLogger
extends Interface<java.lang.Void>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.smslib.smsserver.interfaces.Interface
Interface.InterfaceTypes
 
Constructor Summary
SimpleInboundFileLogger(java.lang.String myInterfaceId, java.util.Properties myProps, SMSServer myServer, Interface.InterfaceTypes myType)
           
 
Method Summary
 void messagesReceived(java.util.Collection<InboundMessage> msgList)
          This method is called by SMSServer every time a message (or more messages) is received.
 void start()
          Called once before SMSServer starts its operation.
 void stop()
          Called once after SMSServer has finished.
 
Methods inherited from class org.smslib.smsserver.interfaces.Interface
callReceived, getDescription, getId, getMessageCache, getMessagesToSend, getPendingMessagesToSend, getProperty, getProperty, getServer, getType, isInbound, isOutbound, markMessage, markMessages, setDescription
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleInboundFileLogger

public SimpleInboundFileLogger(java.lang.String myInterfaceId,
                               java.util.Properties myProps,
                               SMSServer myServer,
                               Interface.InterfaceTypes myType)
Method Detail

start

public void start()
           throws java.lang.Exception
Description copied from class: Interface
Called once before SMSServer starts its operation. Use this method for initialization.

Override this call if you wish to implement your own functionality.

Overrides:
start in class Interface<java.lang.Void>
Throws:
java.lang.Exception - An exception thrown will stop SMSServer from starting its processing.

stop

public void stop()
          throws java.lang.Exception
Description copied from class: Interface
Called once after SMSServer has finished. Use this method for cleaning up your interface.

Override this call if you wish to implement your own functionality.

Overrides:
stop in class Interface<java.lang.Void>
Throws:
java.lang.Exception

messagesReceived

public void messagesReceived(java.util.Collection<InboundMessage> msgList)
                      throws java.lang.Exception
Description copied from class: Interface
This method is called by SMSServer every time a message (or more messages) is received. SMSServer calls this method for all available/active interfaces.

Override this call if you wish to implement your own functionality.

Overrides:
messagesReceived in class Interface<java.lang.Void>
Parameters:
msgList - A message list of all received messages.
Throws:
java.lang.Exception

SMSLib 3.5.3

(c) 2002-2011, http://smslib.org