rero.client.server

Class ServerHandler

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 classServerHandler.NickInUseListener
Field Summary
protected InternalDataListdata
protected IgnoreHandlerignoreHandler
protected ServerHandler.NickInUseListenernickListener
protected NotifyDatanotify
protected UserrestoreInformation
protected StringrestoreServer
protected SocketConnectionsocket
Method Summary
voidcleanup()
intfireChatEvent(HashMap eventDescription)
voididentRequest(String host, String text)
voidinit()
booleanisChatEvent(String eventId, HashMap eventDescription)
voidsocketStatusChanged(SocketEvent ev)

Field Detail

data

protected InternalDataList data

ignoreHandler

protected IgnoreHandler ignoreHandler

nickListener

protected ServerHandler.NickInUseListener nickListener

notify

protected NotifyData notify

restoreInformation

protected User restoreInformation

restoreServer

protected String restoreServer

socket

protected SocketConnection socket

Method Detail

cleanup

public void cleanup()

fireChatEvent

public int fireChatEvent(HashMap eventDescription)

identRequest

public void identRequest(String host, String text)

init

public void init()

isChatEvent

public boolean isChatEvent(String eventId, HashMap eventDescription)

socketStatusChanged

public void socketStatusChanged(SocketEvent ev)