X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2Fquelaton%2FClientPutCommand.java;h=7e900f281a50290af99f82dc55baf794d7ffcc51;hb=f85a8ea030d563b573acca6f1a117ec87c82cc4e;hp=41c23772be26c70be70e2ff0d4952a0b013ccead;hpb=3351e5f36c74fc270152688c251ea32365808222;p=jFCPlib.git diff --git a/src/main/java/net/pterodactylus/fcp/quelaton/ClientPutCommand.java b/src/main/java/net/pterodactylus/fcp/quelaton/ClientPutCommand.java index 41c2377..7e900f2 100644 --- a/src/main/java/net/pterodactylus/fcp/quelaton/ClientPutCommand.java +++ b/src/main/java/net/pterodactylus/fcp/quelaton/ClientPutCommand.java @@ -16,8 +16,20 @@ public interface ClientPutCommand { ClientPutCommand onKeyGenerated(Consumer keyGenerated); ClientPutCommand named(String targetFilename); - WithUri>> redirectTo(String uri); - WithUri>> from(File file); - WithLength>>> from(InputStream inputStream); + WithUri redirectTo(String uri); + WithUri from(File file); + WithLength from(InputStream inputStream); + + interface WithLength { + + WithUri length(long length); + + } + + interface WithUri { + + Executable> uri(String uri); + + } }