org.apache.camel.component.irc
Class IrcLogger

java.lang.Object
  extended by org.schwering.irc.lib.IRCEventAdapter
      extended by org.apache.camel.component.irc.IrcLogger
All Implemented Interfaces:
EventListener, org.schwering.irc.lib.IRCConstants, org.schwering.irc.lib.IRCEventListener

public class IrcLogger
extends org.schwering.irc.lib.IRCEventAdapter

A helper class which logs errors

Version:
$Revision: 14905 $

Field Summary
 
Fields inherited from interface org.schwering.irc.lib.IRCConstants
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 Summary
IrcLogger(org.apache.commons.logging.Log log, String server)
           
 
Method Summary
 void onDisconnected()
           
 void onError(int num, String msg)
           
 void onError(String msg)
           
 void onInvite(String chan, org.schwering.irc.lib.IRCUser user, String passiveNick)
           
 void onJoin(String chan, org.schwering.irc.lib.IRCUser user)
           
 void onKick(String chan, org.schwering.irc.lib.IRCUser user, String passiveNick, String msg)
           
 void onMode(org.schwering.irc.lib.IRCUser user, String passiveNick, String mode)
           
 void onMode(String chan, org.schwering.irc.lib.IRCUser user, org.schwering.irc.lib.IRCModeParser ircModeParser)
           
 void onNick(org.schwering.irc.lib.IRCUser user, String newNick)
           
 void onNotice(String target, org.schwering.irc.lib.IRCUser user, String msg)
           
 void onPart(String chan, org.schwering.irc.lib.IRCUser user, String msg)
           
 void onPing(String ping)
           
 void onPrivmsg(String target, org.schwering.irc.lib.IRCUser user, String msg)
           
 void onQuit(org.schwering.irc.lib.IRCUser user, String msg)
           
 void onRegistered()
           
 void onReply(int num, String value, String msg)
           
 void onTopic(String chan, org.schwering.irc.lib.IRCUser user, String topic)
           
 void unknown(String prefix, String command, String middle, String trailing)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IrcLogger

public IrcLogger(org.apache.commons.logging.Log log,
                 String server)
Method Detail

onDisconnected

public void onDisconnected()
Specified by:
onDisconnected in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onDisconnected in class org.schwering.irc.lib.IRCEventAdapter

onError

public void onError(int num,
                    String msg)
Specified by:
onError in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onError in class org.schwering.irc.lib.IRCEventAdapter

onError

public void onError(String msg)
Specified by:
onError in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onError in class org.schwering.irc.lib.IRCEventAdapter

onInvite

public void onInvite(String chan,
                     org.schwering.irc.lib.IRCUser user,
                     String passiveNick)
Specified by:
onInvite in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onInvite in class org.schwering.irc.lib.IRCEventAdapter

onJoin

public void onJoin(String chan,
                   org.schwering.irc.lib.IRCUser user)
Specified by:
onJoin in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onJoin in class org.schwering.irc.lib.IRCEventAdapter

onKick

public void onKick(String chan,
                   org.schwering.irc.lib.IRCUser user,
                   String passiveNick,
                   String msg)
Specified by:
onKick in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onKick in class org.schwering.irc.lib.IRCEventAdapter

onMode

public void onMode(String chan,
                   org.schwering.irc.lib.IRCUser user,
                   org.schwering.irc.lib.IRCModeParser ircModeParser)
Specified by:
onMode in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onMode in class org.schwering.irc.lib.IRCEventAdapter

onMode

public void onMode(org.schwering.irc.lib.IRCUser user,
                   String passiveNick,
                   String mode)
Specified by:
onMode in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onMode in class org.schwering.irc.lib.IRCEventAdapter

onNick

public void onNick(org.schwering.irc.lib.IRCUser user,
                   String newNick)
Specified by:
onNick in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onNick in class org.schwering.irc.lib.IRCEventAdapter

onNotice

public void onNotice(String target,
                     org.schwering.irc.lib.IRCUser user,
                     String msg)
Specified by:
onNotice in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onNotice in class org.schwering.irc.lib.IRCEventAdapter

onPart

public void onPart(String chan,
                   org.schwering.irc.lib.IRCUser user,
                   String msg)
Specified by:
onPart in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onPart in class org.schwering.irc.lib.IRCEventAdapter

onPing

public void onPing(String ping)
Specified by:
onPing in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onPing in class org.schwering.irc.lib.IRCEventAdapter

onPrivmsg

public void onPrivmsg(String target,
                      org.schwering.irc.lib.IRCUser user,
                      String msg)
Specified by:
onPrivmsg in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onPrivmsg in class org.schwering.irc.lib.IRCEventAdapter

onQuit

public void onQuit(org.schwering.irc.lib.IRCUser user,
                   String msg)
Specified by:
onQuit in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onQuit in class org.schwering.irc.lib.IRCEventAdapter

onRegistered

public void onRegistered()
Specified by:
onRegistered in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onRegistered in class org.schwering.irc.lib.IRCEventAdapter

onReply

public void onReply(int num,
                    String value,
                    String msg)
Specified by:
onReply in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onReply in class org.schwering.irc.lib.IRCEventAdapter

onTopic

public void onTopic(String chan,
                    org.schwering.irc.lib.IRCUser user,
                    String topic)
Specified by:
onTopic in interface org.schwering.irc.lib.IRCEventListener
Overrides:
onTopic in class org.schwering.irc.lib.IRCEventAdapter

unknown

public void unknown(String prefix,
                    String command,
                    String middle,
                    String trailing)
Specified by:
unknown in interface org.schwering.irc.lib.IRCEventListener
Overrides:
unknown in class org.schwering.irc.lib.IRCEventAdapter


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.