*/
public class FcpInterface {
- /** The core. */
- private final Core core;
-
/** All available FCP commands. */
private final Map<String, Command> commands = Collections.synchronizedMap(new HashMap<String, Command>());
* The core
*/
public FcpInterface(Core core) {
- this.core = core;
commands.put("Version", new VersionCommand());
commands.put("GetPostFeed", new GetPostFeedCommand(core));
}
/* TODO - return error? */
return;
}
- Reply reply = command.execute(parameters, data, AccessType.values()[accessType]);
try {
+ Reply reply = command.execute(parameters, data, AccessType.values()[accessType]);
SimpleFieldSet replyParameters = reply.getReplyParameters();
replyParameters.putOverwrite("Identifier", identifier);
if (reply.hasData()) {
} else {
pluginReplySender.send(replyParameters);
}
+ } catch (FcpException fe1) {
+ /* TODO - log, report */
} catch (PluginNotFoundException pnfe1) {
/* TODO - log */
}