2 * jSite2 - FcpAdapter.java -
3 * Copyright © 2008 David Roden
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 package net.pterodactylus.fcp;
23 * Adapter for {@link FcpListener}.
25 * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
27 public class FcpAdapter implements FcpListener {
32 public void receivedNodeHello(FcpConnection fcpConnection, NodeHello nodeHello) {
39 public void receivedCloseConnectionDuplicateClientName(FcpConnection fcpConnection, CloseConnectionDuplicateClientName closeConnectionDuplicateClientName) {
46 public void receivedSSKKeypair(FcpConnection fcpConnection, SSKKeypair sskKeypair) {
53 public void receivedPeer(FcpConnection fcpConnection, Peer peer) {
60 public void receivedEndListPeers(FcpConnection fcpConnection, EndListPeers endListPeers) {
67 public void receivedPeerNote(FcpConnection fcpConnection, PeerNote peerNote) {
74 public void receivedEndListPeerNotes(FcpConnection fcpConnection, EndListPeerNotes endListPeerNotes) {
81 public void receivedPeerRemoved(FcpConnection fcpConnection, PeerRemoved peerRemoved) {
88 * @see FcpListener#receivedNodeData(FcpConnection, NodeData)
90 public void receivedNodeData(FcpConnection fcpConnection, NodeData nodeData) {
97 * @see FcpListener#receivedTestDDAReply(FcpConnection, TestDDAReply)
99 public void receivedTestDDAReply(FcpConnection fcpConnection, TestDDAReply testDDAReply) {
106 public void receivedTestDDAComplete(FcpConnection fcpConnection, TestDDAComplete testDDAComplete) {
113 public void receivedPersistentGet(FcpConnection fcpConnection, PersistentGet persistentGet) {
120 public void receivedPersistentPut(FcpConnection fcpConnection, PersistentPut persistentPut) {
127 public void receivedEndListPersistentRequests(FcpConnection fcpConnection, EndListPersistentRequests endListPersistentRequests) {
134 public void receivedURIGenerated(FcpConnection fcpConnection, URIGenerated uriGenerated) {
141 public void receivedDataFound(FcpConnection fcpConnection, DataFound dataFound) {
148 public void receivedAllData(FcpConnection fcpConnection, AllData allData) {
155 public void receivedSimpleProgress(FcpConnection fcpConnection, SimpleProgress simpleProgress) {
162 public void receivedStartedCompression(FcpConnection fcpConnection, StartedCompression startedCompression) {
169 public void receviedFinishedCompression(FcpConnection fcpConnection, FinishedCompression finishedCompression) {
176 public void receivedUnknownPeerNoteType(FcpConnection fcpConnection, UnknownPeerNoteType unknownPeerNoteType) {
183 public void receivedUnknownNodeIdentifier(FcpConnection fcpConnection, UnknownNodeIdentifier unknownNodeIdentifier) {
190 public void receivedConfigData(FcpConnection fcpConnection, ConfigData configData) {
197 public void receivedGetFailed(FcpConnection fcpConnection, GetFailed getFailed) {
204 public void receivedPutFailed(FcpConnection fcpConnection, PutFailed putFailed) {
211 public void receivedIdentifierCollision(FcpConnection fcpConnection, IdentifierCollision identifierCollision) {
218 public void receivedPersistentPutDir(FcpConnection fcpConnection, PersistentPutDir persistentPutDir) {
225 public void receivedPersistentRequestRemoved(FcpConnection fcpConnection, PersistentRequestRemoved persistentRequestRemoved) {
232 public void receivedSubscribedUSKUpdate(FcpConnection fcpConnection, SubscribedUSKUpdate subscribedUSKUpdate) {
239 public void receivedPluginInfo(FcpConnection fcpConnection, PluginInfo pluginInfo) {
246 public void receivedFCPPluginReply(FcpConnection fcpConnection, FCPPluginReply fcpPluginReply) {
253 public void receivedPersistentRequestModified(FcpConnection fcpConnection, PersistentRequestModified persistentRequestModified) {
260 public void receivedPutSuccessful(FcpConnection fcpConnection, PutSuccessful putSuccessful) {
267 public void receivedPutFetchable(FcpConnection fcpConnection, PutFetchable putFetchable) {
274 public void receivedProtocolError(FcpConnection fcpConnection, ProtocolError protocolError) {
281 public void receivedMessage(FcpConnection fcpConnection, FcpMessage fcpMessage) {
288 public void connectionClosed(FcpConnection fcpConnection, Throwable throwable) {