Hi Thomaz,

It looks like your attachment didn't get attached.  Any chance you could
paste that in plaintext?  Or possibly use public file share?

-Dave


On Fri, Jul 19, 2013 at 7:05 AM, Thomaz Luiz Santos <thomaz.san...@gmail.com
> wrote:

> David,
> following attached example, of the Ftplet.
>
>
>
>
> On Fri, Jul 19, 2013 at 9:41 AM, David Hoffer <dhoff...@gmail.com> wrote:
>
>> Yeah I was thinking I might need to do some thing like that.
>>
>> As an interm solution I might stay with the native implementation (to
>> prove
>> my app concept) and replace that later, how can I 'know' that a new file
>> has arrived and get the full file path so I can retrieve it from the
>> native
>> file system?  I'm not clear how to use the Ftplet to accomplish this as
>> Thomaz suggested.
>>
>> -Dave
>>
>>
>> On Fri, Jul 19, 2013 at 2:47 AM, John Hartnup <john.hart...@gmail.com
>> >wrote:
>>
>> > To do something different instead of writing native files, you need to
>> > write your own implementations of FtpFilesystemFactory, FtpFile and
>> > FilesystemView.
>> >
>> > Use NativeFtpFile etc. as guides.
>> >
>> > Then, when wiring up your embedded server,
>> > server.setFilesystemFactory(myFilesystemFactory);
>> >
>> > ftplets may also be useful to you. They're there as hooks to "do
>> something"
>> > at certain moments in a session.
>> >
>> >
>> > On 18 July 2013 21:55, David Hoffer <dhoff...@gmail.com> wrote:
>> >
>> > > Not sure how to do that...  Do you mean extend DefaultFtpletContainer
>> and
>> > > override afterCommand()?  Then it it do something like...
>> > >
>> > > String command = request.getCommand().toUpperCase();
>> > > if ("STOR".equals(command)) {
>> > >            // data transfer is complete, get the data.  How?
>> > > }
>> > >
>> > > How can I get the data/file that was just transferred?  I don't see
>> data
>> > > methods on the Ftplet.
>> > >
>> > > I've not used this component before, any examples or pointers are
>> greatly
>> > > appreciated.
>> > >
>> > > -Dave
>> > >
>> > >
>> > > On Thu, Jul 18, 2013 at 2:16 PM, Thomaz Luiz Santos <
>> > > thomaz.san...@gmail.com
>> > > > wrote:
>> > >
>> > > > use the Ftplet and capture the command STOR ( Transfer complete ).
>> > > >
>> > > >
>> > > >
>> > > > On Thu, Jul 18, 2013 at 4:58 PM, David Hoffer <dhoff...@gmail.com>
>> > > wrote:
>> > > >
>> > > > > I'd like to use FTPServer in an embedded application.  The
>> > instructions
>> > > > > show how to do this but the example is not quite as embedded as
>> I'd
>> > > like.
>> > > > >
>> > > > > In my use case I want to receive FTPS files but I don't really
>> want
>> > the
>> > > > > file to be stored on disk, rather I want to be notified of the new
>> > > > message
>> > > > > event in Java code and then I want to get and consume the message
>> > data
>> > > > > directly by my application.  I.e. I don't want to have to poll the
>> > disk
>> > > > > looking for new data/etc.
>> > > > >
>> > > > > Ideally it would all be stream based as the files can be large but
>> > I'd
>> > > be
>> > > > > satisfied to start with getting the data in any form...but I need
>> to
>> > be
>> > > > > notified when it has arrived and have a way to get the
>> data...even if
>> > > > just
>> > > > > a byte [].
>> > > > >
>> > > > > How can I do this?
>> > > > >
>> > > > > Thanks,
>> > > > > -Dave
>> > > > >
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > ------------------------------
>> > > > Thomaz Luiz Santos
>> > > > Linux User: #359356
>> > > > http://thomaz.santos.googlepages.com/
>> > > >
>> > >
>> >
>> >
>> >
>> > --
>> > "There is no way to peace; peace is the way"
>> >
>>
>
>
>
> --
> ------------------------------
> Thomaz Luiz Santos
> Linux User: #359356
> http://thomaz.santos.googlepages.com/
>

Reply via email to