On Thu, Oct 23, 2008 at 11:47 AM, Alessio Santacroce
<[EMAIL PROTECTED]> wrote:
> Hello there,
> I'm trying to customize the ftp server message sent after the client
> connection and the welcome message, sent after the client login.
> Does someone have any clue/suggestion to accomplish this?

This page attempts to explain how the message handling works, but
looking at it I see that it needs further information:
http://mina.apache.org/ftpserver/messages.html

You can provide a custom resource bundle that FtpServer will load. In
that, you can override the messages defined in the standard FtpServer
recource bundle. So, let's say you would like to override the "220
Service ready for new user" message. You can do so by creating a file
called FtpStatus.gen in some directory. Configure that directory on
the messages element (or in MessageResourceFactory if your embedding).
The file should contain:
220=My custom welcome message

I'll try to improve the documentation page above later tonight or
tomorrow to explain this better. Before I get that done, feel free
asking further here.

/niklas

Reply via email to