add AllData
[jSite2.git] / src / net / pterodactylus / util / fcp / FcpListener.java
index 8b2c621..61c1292 100644 (file)
@@ -88,7 +88,7 @@ public interface FcpListener extends EventListener {
         * @param peerNote
         *            The “PeerNote” message
         */
-       public void receviedPeerNote(FcpConnection fcpConnection, PeerNote peerNote);
+       public void receivedPeerNote(FcpConnection fcpConnection, PeerNote peerNote);
 
        /**
         * Notifies a listener that an “EndListPeerNotes” message was received.
@@ -108,7 +108,87 @@ public interface FcpListener extends EventListener {
         * @param peerRemoved
         *            The “PeerRemoved” message
         */
-       public void receviedPeerRemoved(FcpConnection fcpConnection, PeerRemoved peerRemoved);
+       public void receivedPeerRemoved(FcpConnection fcpConnection, PeerRemoved peerRemoved);
+
+       /**
+        * Notifies a listener that a “NodeData” message was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param nodeData
+        *            The “NodeData” message
+        */
+       public void receivedNodeData(FcpConnection fcpConnection, NodeData nodeData);
+
+       /**
+        * Notifies a listener that a “TestDDAReply” message was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param testDDAReply
+        *            The “TestDDAReply” message
+        */
+       public void receivedTestDDAReply(FcpConnection fcpConnection, TestDDAReply testDDAReply);
+
+       /**
+        * Notifies a listener that a “TestDDAComplete” was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param testDDAComplete
+        *            The “TestDDAComplete” message
+        */
+       public void receivedTestDDAComplete(FcpConnection fcpConnection, TestDDAComplete testDDAComplete);
+
+       /**
+        * Notifies a listener that a “PersistentPut” was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param persistentPut
+        *            The “PersistentPut” message
+        */
+       public void receivedPersistentPut(FcpConnection fcpConnection, PersistentPut persistentPut);
+
+       /**
+        * Notifies a listener that a “EndListPersistentRequests” was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param endListPersistentRequests
+        *            The “EndListPersistentRequests” message
+        */
+       public void receivedEndListPersistentRequests(FcpConnection fcpConnection, EndListPersistentRequests endListPersistentRequests);
+
+       /**
+        * Notifies a listener that a “URIGenerated” was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param uriGenerated
+        *            The “URIGenerated” message
+        */
+       public void receivedURIGenerated(FcpConnection fcpConnection, URIGenerated uriGenerated);
+
+       /**
+        * Notifies a listener that an “AllData” was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param allData
+        *            The “AllData” message
+        */
+       public void receivedAllData(FcpConnection fcpConnection, AllData allData);
+
+       /**
+        * Notifies a listener that a “ProtocolError” was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param protocolError
+        *            The “ProtocolError” message
+        */
+       public void receivedProtocolError(FcpConnection fcpConnection, ProtocolError protocolError);
 
        /**
         * Notifies a listener that a message has been received. This method is only