X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Ffcp%2FCommand.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Ffcp%2FCommand.java;h=faa10db7316f877e53478c3917097266476e6af3;hp=07fb7a4f7b01a0c99c0aed6c1eedbdc8bbf20728;hb=6a426e5c3a82f3e63a8763d2a5ad57f311bc6065;hpb=9974554893d242667d5a7aace777ce07f7c07f95 diff --git a/src/main/java/net/pterodactylus/sone/freenet/fcp/Command.java b/src/main/java/net/pterodactylus/sone/freenet/fcp/Command.java index 07fb7a4..faa10db 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/fcp/Command.java +++ b/src/main/java/net/pterodactylus/sone/freenet/fcp/Command.java @@ -42,7 +42,7 @@ public interface Command { * @throws FcpException * if an error processing the parameters occurs */ - public Reply execute(SimpleFieldSet parameters, Bucket data, AccessType accessType) throws FcpException; + public Response execute(SimpleFieldSet parameters, Bucket data, AccessType accessType) throws FcpException; /** * The access type of the request. @@ -67,7 +67,7 @@ public interface Command { * * @author David ‘Bombe’ Roden */ - public static class Reply { + public static class Response { /** The reply parameters. */ private final SimpleFieldSet replyParameters; @@ -84,7 +84,7 @@ public interface Command { * @param replyParameters * The reply parameters */ - public Reply(SimpleFieldSet replyParameters) { + public Response(SimpleFieldSet replyParameters) { this(replyParameters, null, null); } @@ -96,7 +96,7 @@ public interface Command { * @param data * The data of the reply (may be {@code null}) */ - public Reply(SimpleFieldSet replyParameters, byte[] data) { + public Response(SimpleFieldSet replyParameters, byte[] data) { this(replyParameters, data, null); } @@ -108,7 +108,7 @@ public interface Command { * @param bucket * The bucket of the reply (may be {@code null}) */ - public Reply(SimpleFieldSet replyParameters, Bucket bucket) { + public Response(SimpleFieldSet replyParameters, Bucket bucket) { this(replyParameters, null, bucket); } @@ -122,7 +122,7 @@ public interface Command { * @param bucket * The bucket of the reply (may be {@code null}) */ - private Reply(SimpleFieldSet replyParameters, byte[] data, Bucket bucket) { + private Response(SimpleFieldSet replyParameters, byte[] data, Bucket bucket) { this.replyParameters = replyParameters; this.data = data; this.bucket = bucket;