/*
- * Sone - GetSoneCommand.java - Copyright © 2011–2015 David Roden
+ * Sone - GetSoneCommand.java - Copyright © 2011–2016 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
import com.google.common.base.Optional;
import freenet.support.SimpleFieldSet;
-import freenet.support.api.Bucket;
/**
* Implements the “GetSone“ FCP command which returns {@link Profile}
* {@inheritDoc}
*/
@Override
- public Response execute(SimpleFieldSet parameters, Bucket data, AccessType accessType) throws FcpException {
+ public Response execute(SimpleFieldSet parameters) throws FcpException {
Sone sone = getSone(parameters, "Sone", false);
- Optional<Sone> localSone = getSone(parameters, "LocalSone", false, false);
- return new Response("Sone", encodeSone(sone, "", localSone));
+ Optional<Sone> localSone = getSone(parameters, "LocalSone", true, false);
+ return new Response("Sone", encodeSone(sone, "Sone.", localSone));
}
}