Expose lots of constructors and accessors
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / PersistentGet.java
index 7489801..7fc70a9 100644 (file)
@@ -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, <code>-1</code>
-        *         for endless retries, <code>-2</code> if the number could not be
-        *         parsed
+        * @return The maximum number of retries for a failed block,
+        *         <code>-1</code> for endless retries, <code>-2</code> if the
+        *         number could not be parsed
         */
        public int getMaxRetries() {
                return FcpUtils.safeParseInt(getField("MaxRetries"), -2);