rero.client.server
Class ServerHandler
java.lang.Object
rero.client.Feature
rero.client.server.ServerHandler
- All Implemented Interfaces:
- ChatListener, FrameworkConstants, IdentListener, SocketStatusListener
- public class ServerHandler
- extends Feature
- implements FrameworkConstants, SocketStatusListener, ChatListener, IdentListener
Responsible for the following:
- miscellaneous features i.e. responding to server PING's etc
- send altnick IF we're not connected yet and get a reply of nick in use.
Fields inherited from interface rero.ircfw.interfaces.FrameworkConstants |
$ADDRESS$, $DATA$, $EVENT$, $HOST$, $NICK$, $NUMERIC$, $PARMS$, $RAW$, $SERVER$, $SOURCE$, $TARGET$, $TYPE$, $USER$ |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
notify
protected NotifyData notify
data
protected InternalDataList data
socket
protected SocketConnection socket
restoreInformation
protected User restoreInformation
restoreServer
protected String restoreServer
ignoreHandler
protected IgnoreHandler ignoreHandler
nickListener
protected ServerHandler.NickInUseListener nickListener
ServerHandler
public ServerHandler()
init
public void init()
- Specified by:
init
in class Feature
identRequest
public void identRequest(String host,
String text)
- Specified by:
identRequest
in interface IdentListener
cleanup
public void cleanup()
- Description copied from class:
Feature
- execute any cleanup that needs to be done so we don't have memory leaks
- Overrides:
cleanup
in class Feature
fireChatEvent
public int fireChatEvent(HashMap eventDescription)
- Specified by:
fireChatEvent
in interface ChatListener
isChatEvent
public boolean isChatEvent(String eventId,
HashMap eventDescription)
- Specified by:
isChatEvent
in interface ChatListener
socketStatusChanged
public void socketStatusChanged(SocketEvent ev)
- Specified by:
socketStatusChanged
in interface SocketStatusListener