public class PowerShellClient extends NTCMDClient
Modifier and Type | Class and Description |
---|---|
static class |
PowerShellClient.FsBridge
Class representing file system operations abstraction
|
static class |
PowerShellClient.PlatformNotSupportedException |
static class |
PowerShellClient.ProbeLayout
Abstraction layer to the probe file system layout
|
static class |
PowerShellClient.ProbeRuntime
Abstraction layer to the probe runtime
|
BaseClient.FilteredMethodsHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
POWERSHELL_PROTOCOL_NAME |
ERRORLEVEL_COMMAND
UNIX_CMD_SEPARATOR, WIN_CMD_SEPARATOR
CREDENTIALS_ID, ENCODING
Constructor and Description |
---|
PowerShellClient(ClientsFrameworkImpl framework,
java.util.Properties props) |
Modifier and Type | Method and Description |
---|---|
boolean |
canCopyFile()
Checks whether files can be copied.
|
boolean |
deleteFile(java.lang.String remoteFileName,
java.lang.String remoteShareName)
Deletes the specified file.
|
java.lang.String |
getFile(java.lang.String remoteFileName,
java.lang.String remoteShareName) |
java.lang.String |
putFile(java.lang.String localFilePath,
java.lang.String remoteShareName) |
downloadFile, getBandwidthLimit, setBandwidthLimit, uploadFile
deleteOption, executeCmd, executeCmd, executeCmd, executeCmd, executeCmd, executeCmdWithTimeOut, getErrorVariable, getLastCommandOutputBytes, getMaxCommandLength, getOptionsDirectory, getOptionsMap, getRemotePlatform, getServerPort, getWelcomeBuffer, setCharset, setErrorVariable, setMaxCommandLength, setOptionIfNotExist, setOptionsDirectory, setOptionsMap, setOptionsMap, setRemotePlatform
addDeniedPackage, close, getClientType, getCredentialId, getIpAddress, getProperty, getShellCmdSeperator, getSudoCommands, getSudoPaths, getTimeout, getUserName, isConnected, setAttributeEncrypted, supportsSudo
public static final java.lang.String POWERSHELL_PROTOCOL_NAME
public PowerShellClient(ClientsFrameworkImpl framework, java.util.Properties props) throws java.lang.Exception
java.lang.Exception
public boolean canCopyFile()
canCopyFile
in class NTCMDClient
public boolean deleteFile(java.lang.String remoteFileName, java.lang.String remoteShareName) throws java.lang.Exception
NTCMDClient
deleteFile
in class NTCMDClient
remoteFileName
- The name of the file on remote host to deleteremoteShareName
- The path to the shared folder containing the file to deletejava.lang.Exception
public java.lang.String getFile(java.lang.String remoteFileName, java.lang.String remoteShareName) throws java.lang.Exception
getFile
in class NTCMDClient
remoteFileName
- -
file name we want to get from remote machineremoteShareName
- -
name of the remote share from which we want to get the filejava.lang.Exception
public java.lang.String putFile(java.lang.String localFilePath, java.lang.String remoteShareName) throws java.lang.Exception
putFile
in class NTCMDClient
java.lang.Exception
Documentation Feedback
Copyright 2012 Micro Focus or one of its affiliates.