import java.util.logging.Level;
import java.util.logging.Logger;
+import javax.annotation.Nonnull;
+
import net.pterodactylus.sone.data.Sone;
import net.pterodactylus.sone.web.WebInterface;
import net.pterodactylus.sone.web.page.FreenetPage;
*
* @return A reply signaling success
*/
+ @Nonnull
protected static JsonReturnObject createSuccessJsonObject() {
return new JsonReturnObject(true);
}
* The error that has occured
* @return The JSON object, signalling failure and the error code
*/
+ @Nonnull
protected static JsonReturnObject createErrorJsonObject(String error) {
return new JsonErrorReturnObject(error);
}