From 50f1c4c53c9c3435bd1a0e33d1b949a22eab9df7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 10 Sep 2010 06:26:40 +0200 Subject: [PATCH] =?utf8?q?Add=20=E2=80=9CFilterData=E2=80=9D=20flag=20to?= =?utf8?q?=20ClientGet=20message.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/fcp/ClientGet.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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! -- 2.7.4