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>
28 public class FcpAdapter implements FcpListener {
33 public void receivedNodeHello(FcpConnection fcpConnection, NodeHello nodeHello) {
40 public void receivedCloseConnectionDuplicateClientName(FcpConnection fcpConnection, CloseConnectionDuplicateClientName closeConnectionDuplicateClientName) {
47 public void receivedSSKKeypair(FcpConnection fcpConnection, SSKKeypair sskKeypair) {
54 public void receivedPeer(FcpConnection fcpConnection, Peer peer) {
61 public void receivedEndListPeers(FcpConnection fcpConnection, EndListPeers endListPeers) {
68 public void receivedPeerNote(FcpConnection fcpConnection, PeerNote peerNote) {
75 public void receivedEndListPeerNotes(FcpConnection fcpConnection, EndListPeerNotes endListPeerNotes) {
82 public void receivedPeerRemoved(FcpConnection fcpConnection, PeerRemoved peerRemoved) {
89 * @see FcpListener#receivedNodeData(FcpConnection, NodeData)
91 public void receivedNodeData(FcpConnection fcpConnection, NodeData nodeData) {
98 * @see FcpListener#receivedTestDDAReply(FcpConnection, TestDDAReply)
100 public void receivedTestDDAReply(FcpConnection fcpConnection, TestDDAReply testDDAReply) {
107 public void receivedTestDDAComplete(FcpConnection fcpConnection, TestDDAComplete testDDAComplete) {
114 public void receivedPersistentGet(FcpConnection fcpConnection, PersistentGet persistentGet) {
121 public void receivedPersistentPut(FcpConnection fcpConnection, PersistentPut persistentPut) {
128 public void receivedEndListPersistentRequests(FcpConnection fcpConnection, EndListPersistentRequests endListPersistentRequests) {
135 public void receivedURIGenerated(FcpConnection fcpConnection, URIGenerated uriGenerated) {
142 public void receivedDataFound(FcpConnection fcpConnection, DataFound dataFound) {
149 public void receivedAllData(FcpConnection fcpConnection, AllData allData) {
156 public void receivedSimpleProgress(FcpConnection fcpConnection, SimpleProgress simpleProgress) {
163 public void receivedStartedCompression(FcpConnection fcpConnection, StartedCompression startedCompression) {
170 public void receviedFinishedCompression(FcpConnection fcpConnection, FinishedCompression finishedCompression) {
177 public void receivedUnknownPeerNoteType(FcpConnection fcpConnection, UnknownPeerNoteType unknownPeerNoteType) {
184 public void receivedUnknownNodeIdentifier(FcpConnection fcpConnection, UnknownNodeIdentifier unknownNodeIdentifier) {
191 public void receivedConfigData(FcpConnection fcpConnection, ConfigData configData) {
198 public void receivedGetFailed(FcpConnection fcpConnection, GetFailed getFailed) {
205 public void receivedPutFailed(FcpConnection fcpConnection, PutFailed putFailed) {
212 public void receivedIdentifierCollision(FcpConnection fcpConnection, IdentifierCollision identifierCollision) {
219 public void receivedPersistentPutDir(FcpConnection fcpConnection, PersistentPutDir persistentPutDir) {
226 public void receivedPersistentRequestRemoved(FcpConnection fcpConnection, PersistentRequestRemoved persistentRequestRemoved) {
233 public void receivedSubscribedUSKUpdate(FcpConnection fcpConnection, SubscribedUSKUpdate subscribedUSKUpdate) {
240 public void receivedPluginInfo(FcpConnection fcpConnection, PluginInfo pluginInfo) {
247 public void receivedFCPPluginReply(FcpConnection fcpConnection, FCPPluginReply fcpPluginReply) {
254 public void receivedPersistentRequestModified(FcpConnection fcpConnection, PersistentRequestModified persistentRequestModified) {
261 public void receivedPutSuccessful(FcpConnection fcpConnection, PutSuccessful putSuccessful) {
268 public void receivedPutFetchable(FcpConnection fcpConnection, PutFetchable putFetchable) {
275 public void receivedProtocolError(FcpConnection fcpConnection, ProtocolError protocolError) {
282 public void receivedMessage(FcpConnection fcpConnection, FcpMessage fcpMessage) {
289 public void connectionClosed(FcpConnection fcpConnection, Throwable throwable) {