X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FGetLocalSonesCommand.java;h=fdef44684ab8f30a72b5bd368cc221d3a455cebe;hp=5d44befc9095259dae2ec6902bc25b7971d9b3d9;hb=419098bcd6215125408b29e60bd888e60979d37b;hpb=2581481ff5a60ea2b00fd69df276a3f3a1f4ef21 diff --git a/src/main/java/net/pterodactylus/sone/fcp/GetLocalSonesCommand.java b/src/main/java/net/pterodactylus/sone/fcp/GetLocalSonesCommand.java index 5d44bef..fdef446 100644 --- a/src/main/java/net/pterodactylus/sone/fcp/GetLocalSonesCommand.java +++ b/src/main/java/net/pterodactylus/sone/fcp/GetLocalSonesCommand.java @@ -1,5 +1,5 @@ /* - * Sone - GetLocalSonesCommand.java - Copyright © 2011 David Roden + * Sone - GetLocalSonesCommand.java - Copyright © 2011–2015 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,7 +18,6 @@ package net.pterodactylus.sone.fcp; import net.pterodactylus.sone.core.Core; -import net.pterodactylus.sone.freenet.fcp.FcpException; import freenet.support.SimpleFieldSet; import freenet.support.api.Bucket; @@ -44,8 +43,8 @@ public class GetLocalSonesCommand extends AbstractSoneCommand { * {@inheritDoc} */ @Override - public Reply execute(SimpleFieldSet parameters, Bucket data, AccessType accessType) throws FcpException { - return new Reply(encodeSones(getCore().getLocalSones())); + public Response execute(SimpleFieldSet parameters, Bucket data, AccessType accessType) { + return new Response("ListLocalSones", encodeSones(getCore().getLocalSones(), "LocalSones.")); } }