org.safs.android.messenger
Class SocketServer

java.lang.Object
  extended by org.safs.sockets.AbstractProtocolRunner
      extended by org.safs.android.messenger.SocketServer
All Implemented Interfaces:
java.lang.Runnable, ConnectionListener, DebugListener, NamedListener

public class SocketServer
extends AbstractProtocolRunner


Field Summary
 
Fields inherited from class org.safs.sockets.AbstractProtocolRunner
_debugEnabled, protocolserver, runnerlisteners
 
Constructor Summary
SocketServer()
           
SocketServer(SocketServerListener listener)
           
 
Method Summary
protected  void notifyDispatchFile(java.lang.String filepath)
           
protected  void notifyDispatchProps(char[] props)
           
protected  void notifyMessage(java.lang.String message)
           
 void processProtocolMessage(java.lang.String message)
          Concrete implementations must insert the parsing and processing of the messages received from the underlying SocketProtocol.
 
Methods inherited from class org.safs.sockets.AbstractProtocolRunner
addListener, debug, getListenerName, onReceiveConnection, onReceiveDebug, onReceiveLocalShutdown, onReceiveRemoteShutdown, removeListener, run, sendProtocolMessage, setListenerName, shutdownThread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketServer

public SocketServer()

SocketServer

public SocketServer(SocketServerListener listener)
Method Detail

notifyMessage

protected void notifyMessage(java.lang.String message)

notifyDispatchFile

protected void notifyDispatchFile(java.lang.String filepath)

notifyDispatchProps

protected void notifyDispatchProps(char[] props)

processProtocolMessage

public void processProtocolMessage(java.lang.String message)
Description copied from class: AbstractProtocolRunner
Concrete implementations must insert the parsing and processing of the messages received from the underlying SocketProtocol. Subclasses of AbstractProtocolRunner will usually define the message content and syntax to be appropriate for whatever the application is trying to accomplish. That is, different applications will send and receive different messages.

Specified by:
processProtocolMessage in class AbstractProtocolRunner