You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by Sam Mizanin <sa...@yahoo.com> on 2011/04/18 13:15:56 UTC

Passing transfer rate request to a session

Hello,
    .How do you pass a TransferRateRequest to an ongoing FTPsession usng the Ftplet?

Re: Passing transfer rate request to a session

Posted by Niklas Gustavsson <ni...@protocol7.com>.
On Mon, Apr 18, 2011 at 1:15 PM, Sam Mizanin <sa...@yahoo.com> wrote:
> How do you pass a TransferRateRequest to an ongoing FTPsession usng the Ftplet?

You might be misunderstanding the API. TransferRateRequest is what is
used when checking if a user is authorized to perform an action. You
probably mean adding a TransferRatePermission to the user? If so, this
can not be done using the public API, but you can do it using the
internal classes (usual warnings apply). Cast the User to BaseUser and
add your TransferRatePermission to the setAuthorities() methods (with
a copy of the already existing authorities).

/niklas