org.relayirc.core
Class IRCConnectionAdapter
java.lang.Object
|
+--org.relayirc.core.IRCConnectionAdapter
- All Implemented Interfaces:
- IRCConnectionListener
- public class IRCConnectionAdapter
- extends java.lang.Object
- implements IRCConnectionListener
Do-nothing implementation of IRCConnectionListener to make it easy
to derive new connection listeners.
- Author:
- David M. Johnson
The contents of this file are subject to the Mozilla Public License
Version 1.0 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Original Code: Relay IRC Chat Server
Initial Developer: David M. Johnson
Contributor(s): No contributors to this file
Copyright (C) 1997-2000 by David M. Johnson
All Rights Reserved.
- See Also:
IRCConnection
,
IRCConnectionListener
Method Summary |
void |
onAction(java.lang.String user,
java.lang.String chan,
java.lang.String txt)
|
void |
onBan(java.lang.String banned,
java.lang.String chan,
java.lang.String banner)
|
void |
onClientInfo(java.lang.String orgnick)
|
void |
onClientSource(java.lang.String orgnick)
|
void |
onClientVersion(java.lang.String orgnick)
|
void |
onConnect()
|
void |
onDisconnect()
|
void |
onErrorAlreadyRegistered()
|
void |
onErrorErroneusNickname(java.lang.String badNick)
|
void |
onErrorNeedMoreParams()
|
void |
onErrorNickCollision(java.lang.String badNick)
|
void |
onErrorNickNameInUse(java.lang.String badNick)
|
void |
onErrorNoMOTD()
|
void |
onErrorNoNicknameGiven()
|
void |
onErrorUnknown(java.lang.String message)
|
void |
onErrorUnsupported(java.lang.String messag)
|
void |
onInvite(java.lang.String orgin,
java.lang.String orgnick,
java.lang.String invitee,
java.lang.String chan)
|
void |
onIsOn(java.lang.String[] usersOn)
|
void |
onJoin(java.lang.String user,
java.lang.String nick,
java.lang.String chan,
boolean create)
|
void |
onJoins(java.lang.String users,
java.lang.String chan)
|
void |
onKick(java.lang.String kicked,
java.lang.String chan,
java.lang.String kicker,
java.lang.String txt)
|
void |
onMessage(java.lang.String message)
|
void |
onNick(java.lang.String user,
java.lang.String oldnick,
java.lang.String newnick)
|
void |
onNotice(java.lang.String text)
|
void |
onOp(java.lang.String oper,
java.lang.String chan,
java.lang.String oped)
|
void |
onParsingError(java.lang.String message)
|
void |
onPart(java.lang.String user,
java.lang.String nick,
java.lang.String chan)
|
void |
onPing(java.lang.String params)
|
void |
onPrivateMessage(java.lang.String orgnick,
java.lang.String chan,
java.lang.String txt)
|
void |
onQuit(java.lang.String user,
java.lang.String nick,
java.lang.String txt)
|
void |
onReplyEndOfWhoIs(java.lang.String nick)
|
void |
onReplyList(java.lang.String channel,
int userCount,
java.lang.String topic)
|
void |
onReplyListEnd()
|
void |
onReplyListStart()
|
void |
onReplyListUserChannels(int channelCount)
|
void |
onReplyListUserClient(java.lang.String msg)
|
void |
onReplyMOTD(java.lang.String msg)
|
void |
onReplyMOTDEnd()
|
void |
onReplyMOTDStart()
|
void |
onReplyNameReply(java.lang.String channel,
java.lang.String users)
|
void |
onReplyTopic(java.lang.String channel,
java.lang.String topic)
|
void |
onReplyVersion(java.lang.String version)
|
void |
onReplyWhoIsChannels(java.lang.String nick,
java.lang.String channels)
|
void |
onReplyWhoIsIdle(java.lang.String nick,
int idle,
java.util.Date signon)
|
void |
onReplyWhoIsOperator(java.lang.String info)
|
void |
onReplyWhoIsServer(java.lang.String nick,
java.lang.String server,
java.lang.String info)
|
void |
onReplyWhoIsUser(java.lang.String nick,
java.lang.String user,
java.lang.String name,
java.lang.String host)
|
void |
onStatus(java.lang.String msg)
|
void |
onTopic(java.lang.String chanName,
java.lang.String newTopic)
|
void |
onVersionNotice(java.lang.String orgnick,
java.lang.String origin,
java.lang.String version)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IRCConnectionAdapter
public IRCConnectionAdapter()
onAction
public void onAction(java.lang.String user,
java.lang.String chan,
java.lang.String txt)
- Specified by:
onAction
in interface IRCConnectionListener
onBan
public void onBan(java.lang.String banned,
java.lang.String chan,
java.lang.String banner)
- Specified by:
onBan
in interface IRCConnectionListener
onClientInfo
public void onClientInfo(java.lang.String orgnick)
- Specified by:
onClientInfo
in interface IRCConnectionListener
onClientSource
public void onClientSource(java.lang.String orgnick)
- Specified by:
onClientSource
in interface IRCConnectionListener
onClientVersion
public void onClientVersion(java.lang.String orgnick)
- Specified by:
onClientVersion
in interface IRCConnectionListener
onConnect
public void onConnect()
- Specified by:
onConnect
in interface IRCConnectionListener
onDisconnect
public void onDisconnect()
- Specified by:
onDisconnect
in interface IRCConnectionListener
onIsOn
public void onIsOn(java.lang.String[] usersOn)
- Specified by:
onIsOn
in interface IRCConnectionListener
onInvite
public void onInvite(java.lang.String orgin,
java.lang.String orgnick,
java.lang.String invitee,
java.lang.String chan)
- Specified by:
onInvite
in interface IRCConnectionListener
onJoin
public void onJoin(java.lang.String user,
java.lang.String nick,
java.lang.String chan,
boolean create)
- Specified by:
onJoin
in interface IRCConnectionListener
onJoins
public void onJoins(java.lang.String users,
java.lang.String chan)
- Specified by:
onJoins
in interface IRCConnectionListener
onKick
public void onKick(java.lang.String kicked,
java.lang.String chan,
java.lang.String kicker,
java.lang.String txt)
- Specified by:
onKick
in interface IRCConnectionListener
onMessage
public void onMessage(java.lang.String message)
- Specified by:
onMessage
in interface IRCConnectionListener
onPrivateMessage
public void onPrivateMessage(java.lang.String orgnick,
java.lang.String chan,
java.lang.String txt)
- Specified by:
onPrivateMessage
in interface IRCConnectionListener
onNick
public void onNick(java.lang.String user,
java.lang.String oldnick,
java.lang.String newnick)
- Specified by:
onNick
in interface IRCConnectionListener
onNotice
public void onNotice(java.lang.String text)
- Specified by:
onNotice
in interface IRCConnectionListener
onPart
public void onPart(java.lang.String user,
java.lang.String nick,
java.lang.String chan)
- Specified by:
onPart
in interface IRCConnectionListener
onOp
public void onOp(java.lang.String oper,
java.lang.String chan,
java.lang.String oped)
- Specified by:
onOp
in interface IRCConnectionListener
onParsingError
public void onParsingError(java.lang.String message)
- Specified by:
onParsingError
in interface IRCConnectionListener
onPing
public void onPing(java.lang.String params)
- Specified by:
onPing
in interface IRCConnectionListener
onStatus
public void onStatus(java.lang.String msg)
- Specified by:
onStatus
in interface IRCConnectionListener
onTopic
public void onTopic(java.lang.String chanName,
java.lang.String newTopic)
- Specified by:
onTopic
in interface IRCConnectionListener
onVersionNotice
public void onVersionNotice(java.lang.String orgnick,
java.lang.String origin,
java.lang.String version)
- Specified by:
onVersionNotice
in interface IRCConnectionListener
onQuit
public void onQuit(java.lang.String user,
java.lang.String nick,
java.lang.String txt)
- Specified by:
onQuit
in interface IRCConnectionListener
onReplyVersion
public void onReplyVersion(java.lang.String version)
- Specified by:
onReplyVersion
in interface IRCConnectionListener
onReplyListUserChannels
public void onReplyListUserChannels(int channelCount)
- Specified by:
onReplyListUserChannels
in interface IRCConnectionListener
onReplyListStart
public void onReplyListStart()
- Specified by:
onReplyListStart
in interface IRCConnectionListener
onReplyList
public void onReplyList(java.lang.String channel,
int userCount,
java.lang.String topic)
- Specified by:
onReplyList
in interface IRCConnectionListener
onReplyListEnd
public void onReplyListEnd()
- Specified by:
onReplyListEnd
in interface IRCConnectionListener
onReplyListUserClient
public void onReplyListUserClient(java.lang.String msg)
- Specified by:
onReplyListUserClient
in interface IRCConnectionListener
onReplyWhoIsUser
public void onReplyWhoIsUser(java.lang.String nick,
java.lang.String user,
java.lang.String name,
java.lang.String host)
- Specified by:
onReplyWhoIsUser
in interface IRCConnectionListener
onReplyWhoIsServer
public void onReplyWhoIsServer(java.lang.String nick,
java.lang.String server,
java.lang.String info)
- Specified by:
onReplyWhoIsServer
in interface IRCConnectionListener
onReplyWhoIsOperator
public void onReplyWhoIsOperator(java.lang.String info)
- Specified by:
onReplyWhoIsOperator
in interface IRCConnectionListener
onReplyWhoIsIdle
public void onReplyWhoIsIdle(java.lang.String nick,
int idle,
java.util.Date signon)
- Specified by:
onReplyWhoIsIdle
in interface IRCConnectionListener
onReplyEndOfWhoIs
public void onReplyEndOfWhoIs(java.lang.String nick)
- Specified by:
onReplyEndOfWhoIs
in interface IRCConnectionListener
onReplyWhoIsChannels
public void onReplyWhoIsChannels(java.lang.String nick,
java.lang.String channels)
- Specified by:
onReplyWhoIsChannels
in interface IRCConnectionListener
onReplyMOTDStart
public void onReplyMOTDStart()
- Specified by:
onReplyMOTDStart
in interface IRCConnectionListener
onReplyMOTD
public void onReplyMOTD(java.lang.String msg)
- Specified by:
onReplyMOTD
in interface IRCConnectionListener
onReplyMOTDEnd
public void onReplyMOTDEnd()
- Specified by:
onReplyMOTDEnd
in interface IRCConnectionListener
onReplyNameReply
public void onReplyNameReply(java.lang.String channel,
java.lang.String users)
- Specified by:
onReplyNameReply
in interface IRCConnectionListener
onReplyTopic
public void onReplyTopic(java.lang.String channel,
java.lang.String topic)
- Specified by:
onReplyTopic
in interface IRCConnectionListener
onErrorNoMOTD
public void onErrorNoMOTD()
- Specified by:
onErrorNoMOTD
in interface IRCConnectionListener
onErrorNeedMoreParams
public void onErrorNeedMoreParams()
- Specified by:
onErrorNeedMoreParams
in interface IRCConnectionListener
onErrorNoNicknameGiven
public void onErrorNoNicknameGiven()
- Specified by:
onErrorNoNicknameGiven
in interface IRCConnectionListener
onErrorNickNameInUse
public void onErrorNickNameInUse(java.lang.String badNick)
- Specified by:
onErrorNickNameInUse
in interface IRCConnectionListener
onErrorNickCollision
public void onErrorNickCollision(java.lang.String badNick)
- Specified by:
onErrorNickCollision
in interface IRCConnectionListener
onErrorErroneusNickname
public void onErrorErroneusNickname(java.lang.String badNick)
- Specified by:
onErrorErroneusNickname
in interface IRCConnectionListener
onErrorAlreadyRegistered
public void onErrorAlreadyRegistered()
- Specified by:
onErrorAlreadyRegistered
in interface IRCConnectionListener
onErrorUnknown
public void onErrorUnknown(java.lang.String message)
- Specified by:
onErrorUnknown
in interface IRCConnectionListener
onErrorUnsupported
public void onErrorUnsupported(java.lang.String messag)
- Specified by:
onErrorUnsupported
in interface IRCConnectionListener