X-Git-Url: https://git.pterodactylus.net/?p=jSite.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Ftodesbaum%2Futil%2Ffreenet%2Ffcp2%2FClientPutDir.java;h=4ea4b1d9a21863b9d64f2350b3617b616f74da09;hp=386fe1d75e28077f72a48c430ae46c3f7b58e07c;hb=f936411037a6ec1afbc5efbb17dc9b0136adda76;hpb=db47bd203d7adacccea6c83da15acec21f793675 diff --git a/src/main/java/de/todesbaum/util/freenet/fcp2/ClientPutDir.java b/src/main/java/de/todesbaum/util/freenet/fcp2/ClientPutDir.java index 386fe1d..4ea4b1d 100644 --- a/src/main/java/de/todesbaum/util/freenet/fcp2/ClientPutDir.java +++ b/src/main/java/de/todesbaum/util/freenet/fcp2/ClientPutDir.java @@ -30,66 +30,9 @@ import java.io.Writer; */ public class ClientPutDir> extends ClientPut { - /** - * All possible manifest putters. Manifest putters are used to distribute - * files of a directory insert to different containers, depending on size, - * type, and other factors. - * - * @author David ‘Bombe’ Roden <bombe@freenetproject.org> - */ - public enum ManifestPutter { - - /** - * Use the “simple” manifest putter. Despite its name this is currently - * the default manifest putter. - */ - SIMPLE("simple"), - - /** Use the “default” manifest putter. */ - DEFAULT("default"); - - /** The name of the manifest putter. */ - private final String name; - - /** - * Creates a new manifest putter. - * - * @param name - * The name of the manifest putter - */ - private ManifestPutter(String name) { - this.name = name; - } - - /** - * Returns the name of the manifest putter. - * - * @return The name of the manifest putter - */ - public String getName() { - return name; - } - - // - // OBJECT METHODS - // - - /** - * {@inheritDoc} - */ - @Override - public String toString() { - return name.substring(0, 1).toUpperCase() + name.substring(1); - } - - } - /** The default file of the directory. */ protected String defaultName; - /** The manifest putter to use. */ - private ManifestPutter manifestPutter; - /** * Creates a new request with the specified name, identifier, and URI. * @@ -128,30 +71,6 @@ public class ClientPutDir> extends ClientPut { } /** - * Returns the current manifest putter. - * - * @return The current manifest putter (may be {@code null}) - */ - public ManifestPutter getManifestPutter() { - return manifestPutter; - } - - /** - * Sets the manifest putter for the “ClientPutDir” command. If {@code null} - * is given the node will choose a manifest putter. - * - * @param manifestPutter - * The manifest putter to use for the command (may be - * {@code null}) - * @return This ClientPutDir command - */ - @SuppressWarnings("unchecked") - public C setManifestPutter(ManifestPutter manifestPutter) { - this.manifestPutter = manifestPutter; - return (C) this; - } - - /** * {@inheritDoc} */ @Override @@ -159,9 +78,6 @@ public class ClientPutDir> extends ClientPut { super.write(writer); if (defaultName != null) writer.write("DefaultName=" + defaultName + LINEFEED); - if (manifestPutter != null) { - writer.write("ManifestPutter=" + manifestPutter.getName() + LINEFEED); - } } }