From fccf5e712bfc43c5373d50cba86be1009814e3d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 8 Apr 2008 18:29:07 +0000 Subject: [PATCH] clean up interface git-svn-id: http://trooper/svn/projects/jSite/trunk@652 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/util/fcp/FcpListener.java | 26 ++++++++++++------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/src/net/pterodactylus/util/fcp/FcpListener.java b/src/net/pterodactylus/util/fcp/FcpListener.java index e3d6d00..1efcad8 100644 --- a/src/net/pterodactylus/util/fcp/FcpListener.java +++ b/src/net/pterodactylus/util/fcp/FcpListener.java @@ -20,25 +20,23 @@ package net.pterodactylus.util.fcp; import java.util.EventListener; -import java.util.Map; - /** - * TODO + * Interface for objects that want to be notified on certain FCP events. + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> * @version $Id$ */ public interface FcpListener extends EventListener { - public void fcpConnected(FcpConnection fcpConnection); - public void fcpDisconnected(FcpConnection fcpConnection); - - // - // connection setup - // - - public void fcpNodeHello(FcpConnection fcpConnection, Map nodeProperties); - public void fcpCloseConnectionDuplicateName(FcpConnection fcpConnection); - - + /** + * Notifies listeners that a message has been received. + * + * @param fcpConnection + * The connection that received the message + * @param fcpMessage + * The message that was received + */ + public void receivedMessage(FcpConnection fcpConnection, FcpMessage fcpMessage); + } -- 2.7.4