@Throws(value=PowershellErrorTypeProvider.class) public class PowershellOperations extends org.mule.connectors.commons.template.operation.ConnectorOperations<PowershellConfiguration,PowershellConnection,PowershellService>
| Modifier and Type | Field and Description |
|---|---|
static String |
END_OF_LOGGING |
static String |
LINE_SEPARATOR |
| Constructor and Description |
|---|
PowershellOperations() |
| Modifier and Type | Method and Description |
|---|---|
String |
executeCommand(PowershellConfiguration config,
PowershellConnection connection,
String command)
This operation executes the command on the machine.
|
String |
executeCommandExceptionHandlingEnabled(PowershellConfiguration config,
PowershellConnection connection,
String command)
This operation executes the command on the target machine and throws Powershell related
exceptions if any.
|
String |
executeScriptFile(PowershellConfiguration config,
PowershellConnection connection,
InputStream fileContent,
Map<String,String> parameters)
This operation executes the script file.
|
String |
executeScriptFileWithExceptionHandling(PowershellConfiguration config,
PowershellConnection connection,
InputStream fileContent,
Map<String,String> parameters)
This operation executes the script file and throws Powershell related exceptions if any.
|
public static final String LINE_SEPARATOR
public static final String END_OF_LOGGING
@MediaType(value="text/plain") @Summary(value="This operation executes the script file.") public String executeScriptFile(@Config PowershellConfiguration config, @Connection PowershellConnection connection, @Content @Summary(value="The file which contains the script.") InputStream fileContent, @Optional Map<String,String> parameters)
config - PowerShell Configurationconnection - Connection for the Powershell.fileContent - The file which contains the script.parameters - The Parameters for the Script.@MediaType(value="text/plain") @DisplayName(value="Execute script file (exception handling enabled)") @Summary(value="This operation executes the script file and throws Powershell related exceptions if any.") public String executeScriptFileWithExceptionHandling(@Config PowershellConfiguration config, @Connection PowershellConnection connection, @Content @Summary(value="The file which contains the script.") InputStream fileContent, @Optional Map<String,String> parameters)
config - Powershell Configurationconnection - Connection for the PowerShell.fileContent - The file which contains the script.parameters - The Parameters for the Script.@MediaType(value="text/plain") @Summary(value="This operation executes the command on the machine.") public String executeCommand(@Config PowershellConfiguration config, @Connection PowershellConnection connection, String command)
config - PowerShell configurationconnection - Connection for the Powershell.command - The command to Execute on the client machine.@MediaType(value="text/plain") @DisplayName(value="Execute command (exception handling enabled)") @Summary(value="This operation executes the command on the target machine and throws powershell related\nexceptions if any.") public String executeCommandExceptionHandlingEnabled(@Config PowershellConfiguration config, @Connection PowershellConnection connection, String command)
config - PowerShell configurationconnection - Connection for the Powershell.command - The command to Execute on the client machine.Copyright © 2021 MuleSoft, Inc.. All rights reserved.