X-Git-Url: https://git.pterodactylus.net/?p=jFCPlib.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FClientGet.java;h=ce2abf12e01c3616ef6f131ceeeedc8d9196a204;hp=8b03ee484d99a153b40afed886a4670fdb6451ca;hb=50f1c4c53c9c3435bd1a0e33d1b949a22eab9df7;hpb=9c9a0d9c44111fd204399363e3037b6304795785 diff --git a/src/main/java/net/pterodactylus/fcp/ClientGet.java b/src/main/java/net/pterodactylus/fcp/ClientGet.java index 8b03ee4..ce2abf1 100644 --- a/src/main/java/net/pterodactylus/fcp/ClientGet.java +++ b/src/main/java/net/pterodactylus/fcp/ClientGet.java @@ -174,6 +174,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!