com.lyrisoft.chat.server.local
Class HttpConnectionHandler
java.lang.Object
|
+--com.lyrisoft.chat.server.local.HttpConnectionHandler
- All Implemented Interfaces:
- IConnectionHandler, java.lang.Runnable
- public class HttpConnectionHandler
- extends java.lang.Object
- implements IConnectionHandler, java.lang.Runnable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpConnectionHandler
public HttpConnectionHandler(java.lang.String readURL,
java.lang.String writeURL)
throws java.io.IOException
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
queueMessage
public void queueMessage(java.lang.String message)
- Description copied from interface:
IConnectionHandler
- Queue a message headed outbound.
- Specified by:
queueMessage
in interface IConnectionHandler
sendImmediately
public void sendImmediately(java.lang.String s)
- Description copied from interface:
IConnectionHandler
- Send a message immediately.
- Specified by:
sendImmediately
in interface IConnectionHandler
shutdown
public void shutdown(boolean notify)
- Description copied from interface:
IConnectionHandler
- Shutdown this connection listener. The notify parameter
indicates whether or not the client (ConnectionListener) should
be notified of the shutdown. Basically, notify should only be
false if the client itself called us.
- Specified by:
shutdown
in interface IConnectionHandler
- Following copied from interface:
com.lyrisoft.chat.IConnectionHandler
- Parameters:
notify
- to notify the ConnectionListener
setListener
public void setListener(IConnectionListener listener)
- Description copied from interface:
IConnectionHandler
- Set the connection listener for this connection handler
- Specified by:
setListener
in interface IConnectionHandler
Copyright © 2000-2002 Taso Lyristis