Add setter for real-time flag
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / ClientGet.java
index 8b03ee4..d340cf0 100644 (file)
@@ -89,8 +89,8 @@ public class ClientGet extends FcpMessage {
        }
 
        /**
-        * Sets the maximum size of the file to retrieve. If the file is larger than
-        * this size the request will fail!
+        * Sets the maximum size of the file to retrieve. If the file is larger
+        * than this size the request will fail!
         *
         * @param maxSize
         *            The maximum size of the file to retrieve
@@ -131,6 +131,10 @@ public class ClientGet extends FcpMessage {
                setField("PriorityClass", String.valueOf(priority));
        }
 
+       public void setRealTimeFlag(boolean realTimeFlag) {
+               setField("RealTimeFlag", String.valueOf(realTimeFlag));
+       }
+
        /**
         * Sets the persistence of the request.
         *
@@ -174,6 +178,16 @@ public class ClientGet extends FcpMessage {
        }
 
        /**
+        * Sets whether to filter the fetched content.
+        *
+        * @param filterData
+        *            {@code true} to filter content, {@code false} otherwise
+        */
+       public void setFilterData(boolean filterData) {
+               setField("FilterData", String.valueOf(filterData));
+       }
+
+       /**
         * Sets the allowed MIME types of the requested file. If the MIME type of
         * the file does not match one of the given MIME types the request will
         * fail!
@@ -197,8 +211,8 @@ public class ClientGet extends FcpMessage {
        }
 
        /**
-        * Sets the name for the temporary file. You should only call this method if
-        * your return type is {@link ReturnType#disk}!
+        * Sets the name for the temporary file. You should only call this method
+        * if your return type is {@link ReturnType#disk}!
         *
         * @param tempFilename
         *            The name of the temporary file