
org.pircbotx.cap.CapHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pircbotx Show documentation
Show all versions of pircbotx Show documentation
PircBotX is a simple, easy to use, Java IRC Bot Framework based
off of a fork of the popular PircBot? framework, bringing many new up-to-date
features and bug fixes in an official alternative distribution.
The newest version!
/**
* Copyright (C) 2010-2014 Leon Blakey
*
* This file is part of PircBotX.
*
* PircBotX is free software: you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* PircBotX is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* PircBotX. If not, see .
*/
package org.pircbotx.cap;
import com.google.common.collect.ImmutableList;
import org.pircbotx.PircBotX;
import org.pircbotx.exception.CAPException;
/**
* Generic CAP handler. Relevant handle methods are called when a CAP line is
* received. Connecting is not considered finished until a method returns true
*
* @author Leon Blakey
*/
public interface CapHandler {
public boolean handleLS(PircBotX bot, ImmutableList capabilities) throws CAPException;
public boolean handleACK(PircBotX bot, ImmutableList capabilities) throws CAPException;
public boolean handleNAK(PircBotX bot, ImmutableList capabilities) throws CAPException;
public boolean handleUnknown(PircBotX bot, String rawLine) throws CAPException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy