X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FFcpConnection.java;h=d97a541fcab691a8e6c6031dfb8d00bde73a7dc1;hb=b79fe9f456ab75770df2610c76f0a2f4a906833f;hp=2688d2181cc6d20cda4c278fb1b6fc3bc9fc7d94;hpb=5cf64105e5bd8f1e679dcfe189671e30ac2a653c;p=jFCPlib.git
diff --git a/src/main/java/net/pterodactylus/fcp/FcpConnection.java b/src/main/java/net/pterodactylus/fcp/FcpConnection.java
index 2688d21..d97a541 100644
--- a/src/main/java/net/pterodactylus/fcp/FcpConnection.java
+++ b/src/main/java/net/pterodactylus/fcp/FcpConnection.java
@@ -31,8 +31,6 @@ import java.util.HashMap;
import java.util.Map;
import java.util.logging.Logger;
-import net.pterodactylus.util.logging.Logging;
-
/**
* An FCP connection to a Freenet node.
*
@@ -41,7 +39,7 @@ import net.pterodactylus.util.logging.Logging;
public class FcpConnection implements Closeable {
/** Logger. */
- private static final Logger logger = Logging.getLogger(FcpConnection.class.getName());
+ private static final Logger logger = Logger.getLogger(FcpConnection.class.getName());
/** The default port for FCP v2. */
public static final int DEFAULT_PORT = 9481;
@@ -193,8 +191,8 @@ public class FcpConnection implements Closeable {
}
/**
- * Closes the connection. If there is no connection to the node, this method
- * does nothing.
+ * Closes the connection. If there is no connection to the node, this
+ * method does nothing.
*/
@Override
public void close() {
@@ -299,6 +297,8 @@ public class FcpConnection implements Closeable {
}
} else if ("PluginInfo".equals(messageName)) {
fcpListenerManager.fireReceivedPluginInfo(new PluginInfo(fcpMessage));
+ } else if ("PluginRemoved".equals(messageName)) {
+ fcpListenerManager.fireReceivedPluginRemoved(new PluginRemoved(fcpMessage));
} else if ("NodeData".equals(messageName)) {
fcpListenerManager.fireReceivedNodeData(new NodeData(fcpMessage));
} else if ("TestDDAReply".equals(messageName)) {
@@ -324,8 +324,8 @@ public class FcpConnection implements Closeable {
* Handles a disconnect from the node.
*
* @param throwable
- * The exception that caused the disconnect, or null
- * if there was no exception
+ * The exception that caused the disconnect, or
+ * null
if there was no exception
*/
synchronized void handleDisconnect(Throwable throwable) {
FcpUtils.close(remoteInputStream);
@@ -373,8 +373,8 @@ public class FcpConnection implements Closeable {
}
/**
- * A wrapper around an {@link InputStream} that only supplies a limit number
- * of bytes from the underlying input stream.
+ * A wrapper around an {@link InputStream} that only supplies a limit
+ * number of bytes from the underlying input stream.
*
* @author David âBombeâ Roden <bombe@freenetproject.org>
*/