public abstract class IRCEventListenerImpl extends java.lang.Object implements org.schwering.irc.lib.IRCEventListener
ACTION_INDICATOR, BOLD_INDICATOR, COLOR_END_INDICATOR, COLOR_INDICATOR, COLOR_REVERSE_INDICATOR, ERR_ALREADYREGISTRED, ERR_BADCHANMASK, ERR_BADCHANNELKEY, ERR_BANNEDFROMCHAN, ERR_CANNOTSENDTOCHAN, ERR_CANTKILLSERVER, ERR_CHANNELISFULL, ERR_CHANOPRIVSNEEDED, ERR_ERRONEUSNICKNAME, ERR_FILEERROR, ERR_INVITEONLYCHAN, ERR_KEYSET, ERR_NEEDMOREPARAMS, ERR_NICKCOLLISION, ERR_NICKNAMEINUSE, ERR_NOADMININFO, ERR_NOLOGIN, ERR_NOMOTD, ERR_NONICKNAMEGIVEN, ERR_NOOPERHOST, ERR_NOORIGIN, ERR_NOPERMFORHOST, ERR_NOPRIVILEGES, ERR_NORECIPIENT, ERR_NOSERVICEHOST, ERR_NOSUCHCHANNEL, ERR_NOSUCHNICK, ERR_NOSUCHSERVER, ERR_NOTEXTTOSEND, ERR_NOTONCHANNEL, ERR_NOTOPLEVEL, ERR_NOTREGISTERED, ERR_PASSWDMISMATCH, ERR_SUMMONDISABLED, ERR_TOOMANYCHANNELS, ERR_TOOMANYTARGETS, ERR_UMODEUNKNOWNFLAG, ERR_UNKNOWNCOMMAND, ERR_UNKNOWNMODE, ERR_USERNOTINCHANNEL, ERR_USERONCHANNEL, ERR_USERSDISABLED, ERR_USERSDONTMATCH, ERR_WASNOSUCHNICK, ERR_WILDTOPLEVEL, ERR_YOUREBANNEDCREEP, ERR_YOUWILLBEBANNED, RPL_ADMINEMAIL, RPL_ADMINLOC1, RPL_ADMINLOC2, RPL_ADMINME, RPL_AUTHNAME, RPL_AWAY, RPL_BANLIST, RPL_CHANNELMODEIS, RPL_CLOSEEND, RPL_CLOSING, RPL_CREATED, RPL_ENDOFBANLIST, RPL_ENDOFINFO, RPL_ENDOFLINKS, RPL_ENDOFMOTD, RPL_ENDOFNAMES, RPL_ENDOFSERVICES, RPL_ENDOFSTATS, RPL_ENDOFUSERS, RPL_ENDOFWHO, RPL_ENDOFWHOIS, RPL_ENDOFWHOWAS, RPL_INFO, RPL_INFOSTART, RPL_INVITING, RPL_ISON, RPL_ISUPPORT, RPL_KILLDONE, RPL_LINKS, RPL_LIST, RPL_LISTEND, RPL_LISTSTART, RPL_LUSERCHANNELS, RPL_LUSERCLIENT, RPL_LUSERME, RPL_LUSEROP, RPL_LUSERUNKNOWN, RPL_MOTD, RPL_MOTDSTART, RPL_MYINFO, RPL_MYPORTIS, RPL_NAMREPLY, RPL_NONE, RPL_NOTOPIC, RPL_NOUSERS, RPL_NOWAWAY, RPL_REHASHING, RPL_SERVICE, RPL_SERVICEINFO, RPL_SERVLIST, RPL_SERVLISTEND, RPL_STATSCLINE, RPL_STATSCOMMANDS, RPL_STATSHLINE, RPL_STATSILINE, RPL_STATSKLINE, RPL_STATSLINKINFO, RPL_STATSLLINE, RPL_STATSNLINE, RPL_STATSOLINE, RPL_STATSQLINE, RPL_STATSUPTIME, RPL_STATSYLINE, RPL_SUMMONING, RPL_TIME, RPL_TOPIC, RPL_TOPICINFO, RPL_TRACECLASS, RPL_TRACECONNECTING, RPL_TRACEHANDSHAKE, RPL_TRACELINK, RPL_TRACELOG, RPL_TRACENEWTYPE, RPL_TRACEOPERATOR, RPL_TRACESERVER, RPL_TRACEUNKNOWN, RPL_TRACEUSER, RPL_UMODEIS, RPL_UNAWAY, RPL_USERHOST, RPL_USERS, RPL_USERSSTART, RPL_VERSION, RPL_WELCOME, RPL_WHOISCHANNELS, RPL_WHOISCHANOP, RPL_WHOISIDLE, RPL_WHOISOPERATOR, RPL_WHOISSERVER, RPL_WHOISUSER, RPL_WHOREPLY, RPL_WHOWASUSER, RPL_YOUREOPER, RPL_YOURHOST, UNDERLINE_INDICATOR
Constructor and Description |
---|
IRCEventListenerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
onConnected() |
void |
onDisconnected() |
void |
onError(int num,
java.lang.String msg) |
void |
onError(java.lang.String msg) |
void |
onInvite(java.lang.String chan,
org.schwering.irc.lib.IRCUser u,
java.lang.String nickPass) |
void |
onJoin(java.lang.String chan,
org.schwering.irc.lib.IRCUser u) |
void |
onKick(java.lang.String chan,
org.schwering.irc.lib.IRCUser u,
java.lang.String nickPass,
java.lang.String msg) |
void |
onLeave(java.lang.String chan,
org.schwering.irc.lib.IRCUser u,
java.lang.String msg) |
void |
onMode(org.schwering.irc.lib.IRCUser u,
java.lang.String nickPass,
java.lang.String mode) |
void |
onMode(java.lang.String chan,
org.schwering.irc.lib.IRCUser u,
org.schwering.irc.lib.IRCModeParser mp) |
void |
onNick(org.schwering.irc.lib.IRCUser u,
java.lang.String nickNew) |
void |
onNotice(java.lang.String target,
org.schwering.irc.lib.IRCUser u,
java.lang.String msg) |
void |
onPart(java.lang.String chan,
org.schwering.irc.lib.IRCUser u,
java.lang.String msg) |
void |
onPing(java.lang.String p) |
void |
onPrivmsg(java.lang.String chan,
org.schwering.irc.lib.IRCUser u,
java.lang.String msg) |
void |
onQuit(org.schwering.irc.lib.IRCUser u,
java.lang.String msg) |
abstract void |
onReceive(java.lang.String nick,
java.lang.String target,
java.lang.String text)
Called on message receive event.
|
void |
onRegistered() |
void |
onReply(int num,
java.lang.String value,
java.lang.String msg) |
void |
onTopic(java.lang.String chan,
org.schwering.irc.lib.IRCUser u,
java.lang.String topic) |
void |
unknown(java.lang.String a,
java.lang.String b,
java.lang.String c,
java.lang.String d) |
public IRCEventListenerImpl()
public abstract void onReceive(java.lang.String nick, java.lang.String target, java.lang.String text)
nick
- nickname of the author of message if any (can be null).target
- channel or nickname of destination if any (can be null).text
- messagepublic void onConnected()
public void onRegistered()
onRegistered
in interface org.schwering.irc.lib.IRCEventListener
public void onDisconnected()
onDisconnected
in interface org.schwering.irc.lib.IRCEventListener
public void onError(java.lang.String msg)
onError
in interface org.schwering.irc.lib.IRCEventListener
public void onError(int num, java.lang.String msg)
onError
in interface org.schwering.irc.lib.IRCEventListener
public void onInvite(java.lang.String chan, org.schwering.irc.lib.IRCUser u, java.lang.String nickPass)
onInvite
in interface org.schwering.irc.lib.IRCEventListener
public void onJoin(java.lang.String chan, org.schwering.irc.lib.IRCUser u)
onJoin
in interface org.schwering.irc.lib.IRCEventListener
public void onKick(java.lang.String chan, org.schwering.irc.lib.IRCUser u, java.lang.String nickPass, java.lang.String msg)
onKick
in interface org.schwering.irc.lib.IRCEventListener
public void onLeave(java.lang.String chan, org.schwering.irc.lib.IRCUser u, java.lang.String msg)
public void onMode(org.schwering.irc.lib.IRCUser u, java.lang.String nickPass, java.lang.String mode)
onMode
in interface org.schwering.irc.lib.IRCEventListener
public void onMode(java.lang.String chan, org.schwering.irc.lib.IRCUser u, org.schwering.irc.lib.IRCModeParser mp)
onMode
in interface org.schwering.irc.lib.IRCEventListener
public void onNick(org.schwering.irc.lib.IRCUser u, java.lang.String nickNew)
onNick
in interface org.schwering.irc.lib.IRCEventListener
public void onNotice(java.lang.String target, org.schwering.irc.lib.IRCUser u, java.lang.String msg)
onNotice
in interface org.schwering.irc.lib.IRCEventListener
public void onPart(java.lang.String chan, org.schwering.irc.lib.IRCUser u, java.lang.String msg)
onPart
in interface org.schwering.irc.lib.IRCEventListener
public void onPrivmsg(java.lang.String chan, org.schwering.irc.lib.IRCUser u, java.lang.String msg)
onPrivmsg
in interface org.schwering.irc.lib.IRCEventListener
public void onQuit(org.schwering.irc.lib.IRCUser u, java.lang.String msg)
onQuit
in interface org.schwering.irc.lib.IRCEventListener
public void onReply(int num, java.lang.String value, java.lang.String msg)
onReply
in interface org.schwering.irc.lib.IRCEventListener
public void onTopic(java.lang.String chan, org.schwering.irc.lib.IRCUser u, java.lang.String topic)
onTopic
in interface org.schwering.irc.lib.IRCEventListener
public void onPing(java.lang.String p)
onPing
in interface org.schwering.irc.lib.IRCEventListener
public void unknown(java.lang.String a, java.lang.String b, java.lang.String c, java.lang.String d)
unknown
in interface org.schwering.irc.lib.IRCEventListener