rero.client.server
Class ServerHandler

java.lang.Object
  extended byrero.client.Feature
      extended byrero.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.


Nested Class Summary
protected  class ServerHandler.NickInUseListener
           
 
Field Summary
protected  InternalDataList data
           
protected  IgnoreHandler ignoreHandler
           
protected  ServerHandler.NickInUseListener nickListener
           
protected  NotifyData notify
           
protected  User restoreInformation
           
protected  String restoreServer
           
protected  SocketConnection socket
           
 
Fields inherited from class rero.client.Feature
abilities
 
Fields inherited from interface rero.ircfw.interfaces.FrameworkConstants
$ADDRESS$, $DATA$, $EVENT$, $HOST$, $NICK$, $NUMERIC$, $PARMS$, $RAW$, $SERVER$, $SOURCE$, $TARGET$, $TYPE$, $USER$
 
Fields inherited from interface rero.ircfw.interfaces.ChatListener
EVENT_DONE, EVENT_HALT, REMOVE_LISTENER
 
Constructor Summary
ServerHandler()
           
 
Method Summary
 void cleanup()
          execute any cleanup that needs to be done so we don't have memory leaks
 int fireChatEvent(HashMap eventDescription)
           
 void identRequest(String host, String text)
           
 void init()
           
 boolean isChatEvent(String eventId, HashMap eventDescription)
           
 void socketStatusChanged(SocketEvent ev)
           
 
Methods inherited from class rero.client.Feature
getCapabilities, installCapabilities, storeDataStructures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ServerHandler

public ServerHandler()
Method Detail

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