public class HttpCommandExecutor extends Object implements CommandExecutor, NeedsLocalLogs
Constructor and Description |
---|
HttpCommandExecutor(Map<String,CommandInfo> additionalCommands,
URL addressOfRemoteServer) |
HttpCommandExecutor(URL addressOfRemoteServer) |
Modifier and Type | Method and Description |
---|---|
protected void |
defineCommand(String commandName,
CommandInfo info)
It may be useful to extend the commands understood by this
HttpCommandExecutor at run
time, and this can be achieved via this method. |
Response |
execute(Command command) |
URL |
getAddressOfRemoteServer() |
void |
setLocalLogs(LocalLogs logs) |
public HttpCommandExecutor(URL addressOfRemoteServer)
public HttpCommandExecutor(Map<String,CommandInfo> additionalCommands, URL addressOfRemoteServer)
protected void defineCommand(String commandName, CommandInfo info)
HttpCommandExecutor
at run
time, and this can be achieved via this method. Note, this is protected, and expected usage is
for subclasses only to call this.commandName
- The name of the command to use.public void setLocalLogs(LocalLogs logs)
setLocalLogs
in interface NeedsLocalLogs
public URL getAddressOfRemoteServer()
public Response execute(Command command) throws IOException
execute
in interface CommandExecutor
IOException
Copyright © 2014. All rights reserved.