f00f.net.irc.martyr.services
Class AutoResponder

java.lang.Object
  extended by f00f.net.irc.martyr.services.AutoResponder
All Implemented Interfaces:
java.util.Observer

public class AutoResponder
extends java.lang.Object
implements java.util.Observer

AutoResponder is where commands that should be auto-responded (such as PING-PONG) should go.


Constructor Summary
AutoResponder(IRCConnection connection)
           
 
Method Summary
 void disable()
           
 void enable()
           
 void update(java.util.Observable observer, java.lang.Object updated)
          Does the work of figuring out what to respond to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoResponder

public AutoResponder(IRCConnection connection)
Method Detail

enable

public void enable()

disable

public void disable()

update

public void update(java.util.Observable observer,
                   java.lang.Object updated)
Does the work of figuring out what to respond to. If a PING is received, send a PONG. If we JOIN a channel, send a request for modes.

Specified by:
update in interface java.util.Observer


Copyright © 2000-2007 Ben Damm, Daniel Henninger, et al.