rero.ircfw

Class ChatFramework

public class ChatFramework extends Object

Field Summary
protected ProtocolHandlerprotocol
Constructor Summary
ChatFramework()
Method Summary
voidaddChatListener(ChatListener l)
voidaddTemporaryListener(ChatListener l)
ProtocolDispatchergetProtocolDispatcher()
ProtocolHandlergetProtocolHandler()
voidinjectEvent(String data)
Injects a string into the data stream as if it came from the server. parsed in the same manner. format should be :nick!
voidstoreDataStructures(WeakHashMap centralDataRepository)

Field Detail

protocol

protected ProtocolHandler protocol

Constructor Detail

ChatFramework

public ChatFramework()

Method Detail

addChatListener

public void addChatListener(ChatListener l)

addTemporaryListener

public void addTemporaryListener(ChatListener l)

getProtocolDispatcher

public ProtocolDispatcher getProtocolDispatcher()

getProtocolHandler

public ProtocolHandler getProtocolHandler()

injectEvent

public void injectEvent(String data)
Injects a string into the data stream as if it came from the server. parsed in the same manner. format should be :nick!user@host EVENT_NAME target :parameters just like the irc protocol. Since jIRC handles everything in a generic way, client events will be more uniform with this system

storeDataStructures

public void storeDataStructures(WeakHashMap centralDataRepository)