2 * jFCPlib - FcpAdapter.java - Copyright © 2008–2016 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 3 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, see <http://www.gnu.org/licenses/>.
18 package net.pterodactylus.fcp;
21 * Adapter for {@link FcpListener}.
23 * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
25 public class FcpAdapter implements FcpListener {
31 public void receivedNodeHello(FcpConnection fcpConnection, NodeHello nodeHello) {
39 public void receivedCloseConnectionDuplicateClientName(FcpConnection fcpConnection, CloseConnectionDuplicateClientName closeConnectionDuplicateClientName) {
47 public void receivedSSKKeypair(FcpConnection fcpConnection, SSKKeypair sskKeypair) {
55 public void receivedPeer(FcpConnection fcpConnection, Peer peer) {
63 public void receivedEndListPeers(FcpConnection fcpConnection, EndListPeers endListPeers) {
71 public void receivedPeerNote(FcpConnection fcpConnection, PeerNote peerNote) {
79 public void receivedEndListPeerNotes(FcpConnection fcpConnection, EndListPeerNotes endListPeerNotes) {
87 public void receivedPeerRemoved(FcpConnection fcpConnection, PeerRemoved peerRemoved) {
94 * @see FcpListener#receivedNodeData(FcpConnection, NodeData)
97 public void receivedNodeData(FcpConnection fcpConnection, NodeData nodeData) {
104 * @see FcpListener#receivedTestDDAReply(FcpConnection, TestDDAReply)
107 public void receivedTestDDAReply(FcpConnection fcpConnection, TestDDAReply testDDAReply) {
115 public void receivedTestDDAComplete(FcpConnection fcpConnection, TestDDAComplete testDDAComplete) {
123 public void receivedPersistentGet(FcpConnection fcpConnection, PersistentGet persistentGet) {
131 public void receivedPersistentPut(FcpConnection fcpConnection, PersistentPut persistentPut) {
139 public void receivedEndListPersistentRequests(FcpConnection fcpConnection, EndListPersistentRequests endListPersistentRequests) {
147 public void receivedURIGenerated(FcpConnection fcpConnection, URIGenerated uriGenerated) {
155 public void receivedDataFound(FcpConnection fcpConnection, DataFound dataFound) {
163 public void receivedAllData(FcpConnection fcpConnection, AllData allData) {
171 public void receivedSimpleProgress(FcpConnection fcpConnection, SimpleProgress simpleProgress) {
179 public void receivedStartedCompression(FcpConnection fcpConnection, StartedCompression startedCompression) {
187 public void receivedFinishedCompression(FcpConnection fcpConnection, FinishedCompression finishedCompression) {
195 public void receivedUnknownPeerNoteType(FcpConnection fcpConnection, UnknownPeerNoteType unknownPeerNoteType) {
203 public void receivedUnknownNodeIdentifier(FcpConnection fcpConnection, UnknownNodeIdentifier unknownNodeIdentifier) {
211 public void receivedConfigData(FcpConnection fcpConnection, ConfigData configData) {
219 public void receivedGetFailed(FcpConnection fcpConnection, GetFailed getFailed) {
227 public void receivedPutFailed(FcpConnection fcpConnection, PutFailed putFailed) {
235 public void receivedIdentifierCollision(FcpConnection fcpConnection, IdentifierCollision identifierCollision) {
243 public void receivedPersistentPutDir(FcpConnection fcpConnection, PersistentPutDir persistentPutDir) {
251 public void receivedPersistentRequestRemoved(FcpConnection fcpConnection, PersistentRequestRemoved persistentRequestRemoved) {
256 public void receivedSubscribedUSK(FcpConnection fcpConnection, SubscribedUSK subscribedUSK) {
264 public void receivedSubscribedUSKUpdate(FcpConnection fcpConnection, SubscribedUSKUpdate subscribedUSKUpdate) {
272 public void receivedPluginInfo(FcpConnection fcpConnection, PluginInfo pluginInfo) {
280 public void receivedPluginRemoved(FcpConnection fcpConnection, PluginRemoved pluginRemoved) {
285 public void receivedFCPPluginReply(FcpConnection fcpConnection, FCPPluginReply fcpPluginReply) {
293 public void receivedPersistentRequestModified(FcpConnection fcpConnection, PersistentRequestModified persistentRequestModified) {
301 public void receivedPutSuccessful(FcpConnection fcpConnection, PutSuccessful putSuccessful) {
309 public void receivedPutFetchable(FcpConnection fcpConnection, PutFetchable putFetchable) {
317 public void receivedProtocolError(FcpConnection fcpConnection, ProtocolError protocolError) {
325 public void receivedSentFeed(FcpConnection source, SentFeed sentFeed) {
333 public void receivedBookmarkFeed(FcpConnection fcpConnection, ReceivedBookmarkFeed receivedBookmarkFeed) {
341 public void receivedMessage(FcpConnection fcpConnection, FcpMessage fcpMessage) {
349 public void connectionClosed(FcpConnection fcpConnection, Throwable throwable) {