From: David ‘Bombe’ Roden Date: Fri, 10 Sep 2010 04:26:40 +0000 (+0200) Subject: Add “FilterData” flag to ClientGet message. X-Git-Tag: v0.1.3^2~14 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=50f1c4c53c9c3435bd1a0e33d1b949a22eab9df7;p=jFCPlib.git Add “FilterData” flag to ClientGet message. --- 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!