2 * jFCPlib - FcpAdapter.java - Copyright © 2008 David Roden
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 package net.pterodactylus.fcp;
22 * Adapter for {@link FcpListener}.
24 * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
26 public class FcpAdapter implements FcpListener {
31 public void receivedNodeHello(FcpConnection fcpConnection, NodeHello nodeHello) {
38 public void receivedCloseConnectionDuplicateClientName(FcpConnection fcpConnection, CloseConnectionDuplicateClientName closeConnectionDuplicateClientName) {
45 public void receivedSSKKeypair(FcpConnection fcpConnection, SSKKeypair sskKeypair) {
52 public void receivedPeer(FcpConnection fcpConnection, Peer peer) {
59 public void receivedEndListPeers(FcpConnection fcpConnection, EndListPeers endListPeers) {
66 public void receivedPeerNote(FcpConnection fcpConnection, PeerNote peerNote) {
73 public void receivedEndListPeerNotes(FcpConnection fcpConnection, EndListPeerNotes endListPeerNotes) {
80 public void receivedPeerRemoved(FcpConnection fcpConnection, PeerRemoved peerRemoved) {
87 * @see FcpListener#receivedNodeData(FcpConnection, NodeData)
89 public void receivedNodeData(FcpConnection fcpConnection, NodeData nodeData) {
96 * @see FcpListener#receivedTestDDAReply(FcpConnection, TestDDAReply)
98 public void receivedTestDDAReply(FcpConnection fcpConnection, TestDDAReply testDDAReply) {
105 public void receivedTestDDAComplete(FcpConnection fcpConnection, TestDDAComplete testDDAComplete) {
112 public void receivedPersistentGet(FcpConnection fcpConnection, PersistentGet persistentGet) {
119 public void receivedPersistentPut(FcpConnection fcpConnection, PersistentPut persistentPut) {
126 public void receivedEndListPersistentRequests(FcpConnection fcpConnection, EndListPersistentRequests endListPersistentRequests) {
133 public void receivedURIGenerated(FcpConnection fcpConnection, URIGenerated uriGenerated) {
140 public void receivedDataFound(FcpConnection fcpConnection, DataFound dataFound) {
147 public void receivedAllData(FcpConnection fcpConnection, AllData allData) {
154 public void receivedSimpleProgress(FcpConnection fcpConnection, SimpleProgress simpleProgress) {
161 public void receivedStartedCompression(FcpConnection fcpConnection, StartedCompression startedCompression) {
168 public void receivedFinishedCompression(FcpConnection fcpConnection, FinishedCompression finishedCompression) {
175 public void receivedUnknownPeerNoteType(FcpConnection fcpConnection, UnknownPeerNoteType unknownPeerNoteType) {
182 public void receivedUnknownNodeIdentifier(FcpConnection fcpConnection, UnknownNodeIdentifier unknownNodeIdentifier) {
189 public void receivedConfigData(FcpConnection fcpConnection, ConfigData configData) {
196 public void receivedGetFailed(FcpConnection fcpConnection, GetFailed getFailed) {
203 public void receivedPutFailed(FcpConnection fcpConnection, PutFailed putFailed) {
210 public void receivedIdentifierCollision(FcpConnection fcpConnection, IdentifierCollision identifierCollision) {
217 public void receivedPersistentPutDir(FcpConnection fcpConnection, PersistentPutDir persistentPutDir) {
224 public void receivedPersistentRequestRemoved(FcpConnection fcpConnection, PersistentRequestRemoved persistentRequestRemoved) {
231 public void receivedSubscribedUSKUpdate(FcpConnection fcpConnection, SubscribedUSKUpdate subscribedUSKUpdate) {
238 public void receivedPluginInfo(FcpConnection fcpConnection, PluginInfo pluginInfo) {
245 public void receivedFCPPluginReply(FcpConnection fcpConnection, FCPPluginReply fcpPluginReply) {
252 public void receivedPersistentRequestModified(FcpConnection fcpConnection, PersistentRequestModified persistentRequestModified) {
259 public void receivedPutSuccessful(FcpConnection fcpConnection, PutSuccessful putSuccessful) {
266 public void receivedPutFetchable(FcpConnection fcpConnection, PutFetchable putFetchable) {
273 public void receivedProtocolError(FcpConnection fcpConnection, ProtocolError protocolError) {
280 public void receivedSentFeed(FcpConnection source, SentFeed sentFeed) {
287 public void receivedBookmarkFeed(FcpConnection fcpConnection, ReceivedBookmarkFeed receivedBookmarkFeed) {
294 public void receivedMessage(FcpConnection fcpConnection, FcpMessage fcpMessage) {
301 public void connectionClosed(FcpConnection fcpConnection, Throwable throwable) {