X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FPersistentGet.java;h=7fc70a9f530e24de14b0e5026d6fcdff1147858c;hb=db657e470022206c978717b53cffb0c9f3c7569b;hp=7489801bead9b81c29ae758f21d67585c8f6b500;hpb=508624458578f01a393f8b44f32b98b40054fdc8;p=jFCPlib.git diff --git a/src/main/java/net/pterodactylus/fcp/PersistentGet.java b/src/main/java/net/pterodactylus/fcp/PersistentGet.java index 7489801..7fc70a9 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentGet.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentGet.java @@ -20,11 +20,12 @@ package net.pterodactylus.fcp; /** * The “PersistentGet” message is sent to the client to inform it about a - * persistent download, either in the client-local queue or in the global queue. + * persistent download, either in the client-local queue or in the global + * queue. * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class PersistentGet extends BaseMessage { +public class PersistentGet extends BaseMessage implements Identifiable { /** * Creates a new “PersistentGet” message that wraps the received message. @@ -32,7 +33,7 @@ public class PersistentGet extends BaseMessage { * @param receivedMessage * The received message */ - PersistentGet(FcpMessage receivedMessage) { + public PersistentGet(FcpMessage receivedMessage) { super(receivedMessage); } @@ -41,6 +42,7 @@ public class PersistentGet extends BaseMessage { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } @@ -117,8 +119,8 @@ public class PersistentGet extends BaseMessage { /** * Returns the persistence of the request. * - * @return The persistence of the request, or {@link Persistence#unknown} if - * the persistence could not be parsed + * @return The persistence of the request, or {@link Persistence#unknown} + * if the persistence could not be parsed */ public Persistence getPersistence() { try { @@ -142,9 +144,9 @@ public class PersistentGet extends BaseMessage { /** * Returns the maximum number of retries for a failed block. * - * @return The maximum number of retries for a failed block, -1 - * for endless retries, -2 if the number could not be - * parsed + * @return The maximum number of retries for a failed block, + * -1 for endless retries, -2 if the + * number could not be parsed */ public int getMaxRetries() { return FcpUtils.safeParseInt(getField("MaxRetries"), -2);