Package jrpc.clightning.commands
Class CommandRPCMediator
- java.lang.Object
-
- jrpc.clightning.commands.CommandRPCMediator
-
public class CommandRPCMediator extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<Command,IRPCCommand>
commands
protected java.util.Map<java.lang.String,IRPCCommand>
customCommands
-
Constructor Summary
Constructors Constructor Description CommandRPCMediator(CLightningSocket socket)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsCommand(ICommandKey key, boolean custom)
protected void
initializeMediator()
void
registerCommand(ICommandKey key, IRPCCommand command)
java.lang.Object
runCommand(Command command, java.lang.String payload)
Deprecated.java.lang.Object
runCommand(Command command, java.util.Map<java.lang.String,java.lang.Object> payload)
<T> T
runRegisterCommand(java.lang.String key, java.util.HashMap<java.lang.String,java.lang.Object> payload)
<T> T
runRegisterCommand(ICommandKey key, java.util.HashMap<java.lang.String,java.lang.Object> payload)
void
unregisterCommand(ICommandKey key)
protected java.util.HashMap<java.lang.String,java.lang.String>
valueToHasMap(java.lang.String value)
Deprecated.protected java.util.List<java.lang.String>
valueToList(java.lang.String value)
Deprecated.
-
-
-
Field Detail
-
commands
protected java.util.Map<Command,IRPCCommand> commands
-
customCommands
protected java.util.Map<java.lang.String,IRPCCommand> customCommands
-
-
Constructor Detail
-
CommandRPCMediator
public CommandRPCMediator(CLightningSocket socket)
-
-
Method Detail
-
initializeMediator
protected void initializeMediator()
-
runCommand
@Deprecated public java.lang.Object runCommand(Command command, java.lang.String payload)
Deprecated.
-
runCommand
public java.lang.Object runCommand(Command command, java.util.Map<java.lang.String,java.lang.Object> payload)
-
registerCommand
public void registerCommand(ICommandKey key, IRPCCommand command)
-
runRegisterCommand
public <T> T runRegisterCommand(ICommandKey key, java.util.HashMap<java.lang.String,java.lang.Object> payload)
-
runRegisterCommand
public <T> T runRegisterCommand(java.lang.String key, java.util.HashMap<java.lang.String,java.lang.Object> payload)
-
valueToHasMap
@Deprecated protected java.util.HashMap<java.lang.String,java.lang.String> valueToHasMap(java.lang.String value)
Deprecated.
-
valueToList
@Deprecated protected java.util.List<java.lang.String> valueToList(java.lang.String value)
Deprecated.
-
containsCommand
public boolean containsCommand(ICommandKey key, boolean custom)
-
unregisterCommand
public void unregisterCommand(ICommandKey key)
-
-