On Tue, Apr 19, 2011 at 7:33 AM, Niklas Gustavsson <[email protected]>wrote:
> On Tue, Apr 19, 2011 at 1:28 PM, Nitish Bangera > <[email protected]> wrote: > > What is the element to specify out own ftpsession for the ftpserver? > > Custom FtpSessions are not currently supported and you would have to > replace NioListener and FtpHandlerAdapter to implement it, both which > are internal classes. > > It depends why you think you need your own FtpSession, which you didn't state. One thing that may be useful, however, is to add attributes to the session using FtpSession.setAttribute() and later read them with FtpSession.getAttribute(). Anywhere you have the session you'll be able to access these attributes, which can include a class to do the work you desire to subclass FtpSession. You can create your own instance of an Ftplet and set these attributes in the Ftplet.onConnect() method. Allen
