public class GrouperSftpSession extends Object
Constructor and Description |
---|
GrouperSftpSession() |
Modifier and Type | Method and Description |
---|---|
void |
copyFile(String filenameRemoteFrom,
String filenameRemoteTo)
copy file
|
boolean |
deleteFile(String filenameRemote)
delete file
|
boolean |
existsFile(String filenameRemote)
exists file
|
List<String> |
listFiles(String filenameRemote)
list files in directory
|
void |
moveFile(String filenameRemoteFrom,
String filenameRemoteTo)
rename file
|
void |
receiveFile(String filenameRemote,
File fileToReceive)
receive file
|
void |
sendFile(File fileToSend,
String filenameRemote)
send file
|
void |
setConfigId(String configId1)
config id of session
|
void |
setDebugMap(Map<String,Object> debugMap1)
debug map to put debug info
|
void |
setFileSystemOptions(org.apache.commons.vfs2.FileSystemOptions fileSystemOptions1)
file system options of remote system
|
void |
setHost(String host1)
host to connect to
|
void |
setKnownHostsFile(File knownHostsFile1)
known hosts file
|
void |
setPassphrase(String passphrase1)
passphrase of private key (if not using password)
|
void |
setPassword(String password1)
password of user
|
void |
setPrivateKeyFilePath(String privateKeyFilePath) |
void |
setSysManager(org.apache.commons.vfs2.impl.StandardFileSystemManager sysManager1)
sftp sys manager
|
void |
setUser(String user1)
user to connect as
|
public void setConfigId(String configId1)
configId1
- the configId to setpublic void setDebugMap(Map<String,Object> debugMap1)
debugMap1
- the debugMap to setpublic void setSysManager(org.apache.commons.vfs2.impl.StandardFileSystemManager sysManager1)
sysManager1
- the sysManager to setpublic void setPrivateKeyFilePath(String privateKeyFilePath)
privateKeyFilePath
- the privateKeyFilePath to setpublic void setKnownHostsFile(File knownHostsFile1)
knownHostsFile1
- the knownHostsFile to setpublic void setHost(String host1)
host1
- the host to setpublic void setUser(String user1)
user1
- the user to setpublic void setPassphrase(String passphrase1)
passphrase1
- the passphrase to setpublic void setPassword(String password1)
password1
- the password to setpublic void setFileSystemOptions(org.apache.commons.vfs2.FileSystemOptions fileSystemOptions1)
fileSystemOptions1
- the fileSystemOptions to setpublic void sendFile(File fileToSend, String filenameRemote)
fileToSend
- filenameRemote
- public void receiveFile(String filenameRemote, File fileToReceive)
fileToReceive
- filenameRemote
- public boolean deleteFile(String filenameRemote)
filenameRemote
- public boolean existsFile(String filenameRemote)
filenameRemote
- public List<String> listFiles(String filenameRemote)
filenameRemote
- public void moveFile(String filenameRemoteFrom, String filenameRemoteTo)
filenameRemoteFrom
- filenameRemoteTo
- Copyright © 2016 Internet2. All rights reserved.