Thank you. Appreciate your input.
> On Dec 18, 2015, at 3:27 AM, ukslim [via Apache MINA] > <[email protected]> wrote: > > I've achieved this -- sorry I can't provide code because it was proprietary > code at a previous job. > > However, as Guillaume says, write whatever Filesystem, File and > FileSystemFactory classes you need, and inject the FileSystemFactory into > your server. Typically you'd do this in the Spring config. No changes to > the SftpSubsystem should be required. > > On Fri, Dec 18, 2015 at 8:48 AM Guillaume Nodet <[hidden email] > <x-msg://15/user/SendEmail.jtp?type=node&node=49143&i=0>> wrote: > > > I'm not sure to understand. > > You want your client to use the SSH / SFTP protocol to connect to the > > server, and then, the server would call a web service to actually query the > > file system over the web service, right ? > > > > If you don't want your client to directly use the custom > > FileSystemProvider, and force it to use SFTP instead, you can achieve that > > by setting your custom FileSystemFactory on the ssh server and that should > > be enough. > > > > > > 2015-12-18 2:52 GMT+01:00 rockyfm <[hidden email] > > <x-msg://15/user/SendEmail.jtp?type=node&node=49143&i=1>>: > > > > > We are looking to extend sshd 1.0 to support a file system that does not > > > exist natively on the server running the sshd process. File operations > > like > > > "ls" would query a web service to return a structure that represents the > > > access the user has to files and directories on the remote file > > repository. > > > Similarly a "GET" would retrieve a file from the repository while a "PUT" > > > would save it to the repository. My initial understanding is that I could > > > achieve what I need by implementing something as follows (based on the > > > RootedFileSystemProvider) > > > 1. MyCustomFileSystemProvider extending FileSystemProvider > > > 2. MyCustomPath extending BasePath > > > 3. MyCustomtFileSystem extending BaseFileSystem< MyCustomPath > > > > 4. MyCustomFileSystemFactory implementing FileSystemFactory > > > > > > I was wondering if I was on the right track. Do I need to extend the > > > SftpSubsystem, if I need to stream a file from a remote server ? > > > > > > Any pointers is greatly appreciated. > > > > > > > > > > > > -- > > > View this message in context: > > > > > http://apache-mina.10907.n7.nabble.com/Extending-sshd-to-support-streaming-files-from-a-file-repository-tp49141.html > > > > <http://apache-mina.10907.n7.nabble.com/Extending-sshd-to-support-streaming-files-from-a-file-repository-tp49141.html> > > > Sent from the Apache MINA User Forum mailing list archive at Nabble.com. > > > > > > > > If you reply to this email, your message will be added to the discussion > below: > http://apache-mina.10907.n7.nabble.com/Extending-sshd-to-support-streaming-files-from-a-file-repository-tp49141p49143.html > > <http://apache-mina.10907.n7.nabble.com/Extending-sshd-to-support-streaming-files-from-a-file-repository-tp49141p49143.html> > To start a new topic under Apache MINA User Forum, email > [email protected] > <mailto:[email protected]> > To unsubscribe from Apache MINA User Forum, click here > <http://apache-mina.10907.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=31345&code=bmFpci5mbUBnbWFpbC5jb218MzEzNDV8NDgxMzc3MjY2>. > NAML > <http://apache-mina.10907.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> -- View this message in context: http://apache-mina.10907.n7.nabble.com/Extending-sshd-to-support-streaming-files-from-a-file-repository-tp49141p49151.html Sent from the Apache MINA User Forum mailing list archive at Nabble.com.
