public class HttpCommandExecutor extends Object implements CommandExecutor, NeedsLocalLogs
| Constructor and Description |
|---|
HttpCommandExecutor(Map<String,CommandInfo> additionalCommands,
URL addressOfRemoteServer) |
HttpCommandExecutor(Map<String,CommandInfo> additionalCommands,
URL addressOfRemoteServer,
HttpClient.Factory httpClientFactory) |
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)
public HttpCommandExecutor(Map<String,CommandInfo> additionalCommands, URL addressOfRemoteServer, HttpClient.Factory httpClientFactory)
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 NeedsLocalLogspublic URL getAddressOfRemoteServer()
public Response execute(Command command) throws IOException
execute in interface CommandExecutorIOExceptionCopyright © 2015. All rights reserved.