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 {
32 public void receivedNodeHello(FcpConnection fcpConnection, NodeHello nodeHello) {
40 public void receivedCloseConnectionDuplicateClientName(FcpConnection fcpConnection, CloseConnectionDuplicateClientName closeConnectionDuplicateClientName) {
48 public void receivedSSKKeypair(FcpConnection fcpConnection, SSKKeypair sskKeypair) {
56 public void receivedPeer(FcpConnection fcpConnection, Peer peer) {
64 public void receivedEndListPeers(FcpConnection fcpConnection, EndListPeers endListPeers) {
72 public void receivedPeerNote(FcpConnection fcpConnection, PeerNote peerNote) {
80 public void receivedEndListPeerNotes(FcpConnection fcpConnection, EndListPeerNotes endListPeerNotes) {
88 public void receivedPeerRemoved(FcpConnection fcpConnection, PeerRemoved peerRemoved) {
95 * @see FcpListener#receivedNodeData(FcpConnection, NodeData)
98 public void receivedNodeData(FcpConnection fcpConnection, NodeData nodeData) {
105 * @see FcpListener#receivedTestDDAReply(FcpConnection, TestDDAReply)
108 public void receivedTestDDAReply(FcpConnection fcpConnection, TestDDAReply testDDAReply) {
116 public void receivedTestDDAComplete(FcpConnection fcpConnection, TestDDAComplete testDDAComplete) {
124 public void receivedPersistentGet(FcpConnection fcpConnection, PersistentGet persistentGet) {
132 public void receivedPersistentPut(FcpConnection fcpConnection, PersistentPut persistentPut) {
140 public void receivedEndListPersistentRequests(FcpConnection fcpConnection, EndListPersistentRequests endListPersistentRequests) {
148 public void receivedURIGenerated(FcpConnection fcpConnection, URIGenerated uriGenerated) {
156 public void receivedDataFound(FcpConnection fcpConnection, DataFound dataFound) {
164 public void receivedAllData(FcpConnection fcpConnection, AllData allData) {
172 public void receivedSimpleProgress(FcpConnection fcpConnection, SimpleProgress simpleProgress) {
180 public void receivedStartedCompression(FcpConnection fcpConnection, StartedCompression startedCompression) {
188 public void receivedFinishedCompression(FcpConnection fcpConnection, FinishedCompression finishedCompression) {
196 public void receivedUnknownPeerNoteType(FcpConnection fcpConnection, UnknownPeerNoteType unknownPeerNoteType) {
204 public void receivedUnknownNodeIdentifier(FcpConnection fcpConnection, UnknownNodeIdentifier unknownNodeIdentifier) {
212 public void receivedConfigData(FcpConnection fcpConnection, ConfigData configData) {
220 public void receivedGetFailed(FcpConnection fcpConnection, GetFailed getFailed) {
228 public void receivedPutFailed(FcpConnection fcpConnection, PutFailed putFailed) {
236 public void receivedIdentifierCollision(FcpConnection fcpConnection, IdentifierCollision identifierCollision) {
244 public void receivedPersistentPutDir(FcpConnection fcpConnection, PersistentPutDir persistentPutDir) {
252 public void receivedPersistentRequestRemoved(FcpConnection fcpConnection, PersistentRequestRemoved persistentRequestRemoved) {
260 public void receivedSubscribedUSKUpdate(FcpConnection fcpConnection, SubscribedUSKUpdate subscribedUSKUpdate) {
268 public void receivedPluginInfo(FcpConnection fcpConnection, PluginInfo pluginInfo) {
276 public void receivedFCPPluginReply(FcpConnection fcpConnection, FCPPluginReply fcpPluginReply) {
284 public void receivedPersistentRequestModified(FcpConnection fcpConnection, PersistentRequestModified persistentRequestModified) {
292 public void receivedPutSuccessful(FcpConnection fcpConnection, PutSuccessful putSuccessful) {
300 public void receivedPutFetchable(FcpConnection fcpConnection, PutFetchable putFetchable) {
308 public void receivedProtocolError(FcpConnection fcpConnection, ProtocolError protocolError) {
316 public void receivedSentFeed(FcpConnection source, SentFeed sentFeed) {
324 public void receivedBookmarkFeed(FcpConnection fcpConnection, ReceivedBookmarkFeed receivedBookmarkFeed) {
332 public void receivedMessage(FcpConnection fcpConnection, FcpMessage fcpMessage) {
340 public void connectionClosed(FcpConnection fcpConnection, Throwable throwable) {