org.relayirc.chatengine
Class ServerAdapter

java.lang.Object
  |
  +--org.relayirc.chatengine.ServerAdapter
All Implemented Interfaces:
ServerListener

public class ServerAdapter
extends java.lang.Object
implements ServerListener

Provides a default do-nothing implementation of ServerListener.

Version:
$Revision: 1.4.2.4 $

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 Engine
Initial Developer: David M. Johnson
Contributor(s): No contributors to this file
Copyright (C) 1997-2000 by David M. Johnson
All Rights Reserved.
Author:
David M. Johnson
See Also:
Server, ServerEvent, ServerListener

Constructor Summary
ServerAdapter()
           
 
Method Summary
 void onChannelAdd(ServerEvent event)
          Channel object has been added to list of those managed by Server object.
 void onChannelJoin(ServerEvent event)
          User has joined a channel.
 void onChannelPart(ServerEvent event)
          User has parted from a channel.
 void onConnect(ServerEvent event)
          Engine has connected to IRC server.
 void onDisconnect(ServerEvent event)
          Engine has disconnected from IRC server.
 void onInvite(ServerEvent event)
          User has invited us to join a channel.
 void onIsOn(ServerEvent event)
          Query results for an ISON query.
 void onStatus(ServerEvent event)
          Status message from engine.
 void onWhoIs(ServerEvent event)
          Query result from an WHOIS query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerAdapter

public ServerAdapter()
Method Detail

onConnect

public void onConnect(ServerEvent event)
Description copied from interface: ServerListener
Engine has connected to IRC server. event.getServer() will be valid.
Specified by:
onConnect in interface ServerListener

onDisconnect

public void onDisconnect(ServerEvent event)
Description copied from interface: ServerListener
Engine has disconnected from IRC server. event.getServer() will be valid.
Specified by:
onDisconnect in interface ServerListener

onChannelAdd

public void onChannelAdd(ServerEvent event)
Description copied from interface: ServerListener
Channel object has been added to list of those managed by Server object. May be followed by an onChannelJoin event. event.getChannel() will be valid.
Specified by:
onChannelAdd in interface ServerListener

onChannelJoin

public void onChannelJoin(ServerEvent event)
Description copied from interface: ServerListener
User has joined a channel. Will always follow an onChannelAdd event. event.getUser() and event.getChannel() will be valid.
Specified by:
onChannelJoin in interface ServerListener

onChannelPart

public void onChannelPart(ServerEvent event)
Description copied from interface: ServerListener
User has parted from a channel. event.getUser() and event.getChannel() will be valid.
Specified by:
onChannelPart in interface ServerListener

onInvite

public void onInvite(ServerEvent event)
Description copied from interface: ServerListener
User has invited us to join a channel. event.getUser() and event.getChannel() will be valid.
Specified by:
onInvite in interface ServerListener

onIsOn

public void onIsOn(ServerEvent event)
Description copied from interface: ServerListener
Query results for an ISON query. Use event.getUsers() to get an array of users that are online.
Specified by:
onIsOn in interface ServerListener

onStatus

public void onStatus(ServerEvent event)
Description copied from interface: ServerListener
Status message from engine. event.getMessage() will be valid.
Specified by:
onStatus in interface ServerListener

onWhoIs

public void onWhoIs(ServerEvent event)
Description copied from interface: ServerListener
Query result from an WHOIS query. event.getUser() will be valid and full of requested data.
Specified by:
onWhoIs in interface ServerListener