X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FClientGet.java;h=d340cf00767d2d0b1905cd0400c9f652c530663a;hb=b436dbab55c63db3e0fc01d52d2dd177d93c19cc;hp=8b03ee484d99a153b40afed886a4670fdb6451ca;hpb=508624458578f01a393f8b44f32b98b40054fdc8;p=jFCPlib.git diff --git a/src/main/java/net/pterodactylus/fcp/ClientGet.java b/src/main/java/net/pterodactylus/fcp/ClientGet.java index 8b03ee4..d340cf0 100644 --- a/src/main/java/net/pterodactylus/fcp/ClientGet.java +++ b/src/main/java/net/pterodactylus/fcp/ClientGet.java @@ -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