public class ProxyFileFactory extends Object implements AbstractFileFactory<ProxyFile>
Constructor and Description |
---|
ProxyFileFactory()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
ProxyFile |
getDefaultPath(Connection con)
This method is to get default path of server file structure
|
ProxyFile |
getFile(String fileName,
Connection con)
This method to get the reference to remote file
|
protected com.sshtools.sftp.SftpClient |
getSftpClient(Connection con) |
Event |
populateEvent(Event event) |
protected com.sshtools.sftp.SftpClient getSftpClient(Connection con) throws IOException
IOException
public ProxyFile getDefaultPath(Connection con) throws PermissionDeniedException, IOException
getDefaultPath
in interface AbstractFileFactory<ProxyFile>
ProxyFile
that contain default pathPermissionDeniedException
IOException
public ProxyFile getFile(String fileName, Connection con) throws PermissionDeniedException, IOException
getFile
in interface AbstractFileFactory<ProxyFile>
fileName
- remote file namecon
- connection to remote serverProxyFile
instance that refer to remote filePermissionDeniedException
IOException
public Event populateEvent(Event event)
populateEvent
in interface AbstractFileFactory<ProxyFile>
Copyright © 2024. All rights reserved.