Follow redirects in ClientGet
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / quelaton / ClientGetCommand.java
index 7c5bf8d..385506f 100644 (file)
@@ -2,11 +2,10 @@ package net.pterodactylus.fcp.quelaton;
 
 import java.io.InputStream;
 import java.util.Optional;
+import java.util.function.Consumer;
 
 import net.pterodactylus.fcp.Priority;
 
-import com.google.common.util.concurrent.ListenableFuture;
-
 /**
  * Command that retrieves data from Freenet.
  *
@@ -14,6 +13,7 @@ import com.google.common.util.concurrent.ListenableFuture;
  */
 public interface ClientGetCommand {
 
+       ClientGetCommand onRedirect(Consumer<String> onRedirect);
        ClientGetCommand ignoreDataStore();
        ClientGetCommand dataStoreOnly();
        ClientGetCommand maxSize(long maxSize);