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
IOExceptionpublic ProxyFile getDefaultPath(Connection con) throws PermissionDeniedException, IOException
getDefaultPath in interface AbstractFileFactory<ProxyFile>ProxyFile that contain default pathPermissionDeniedExceptionIOExceptionpublic 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 filePermissionDeniedExceptionIOExceptionpublic Event populateEvent(Event event)
populateEvent in interface AbstractFileFactory<ProxyFile>Copyright © 2025. All rights reserved.