File Transfers from Plugins

I’d like to write a plugin to OpenFire which sends a file back to the

user. I’m not sure if I should find transfer facilities in the OpenFire

API’s or whether I should be using another library like smack for that.

FileTransferManager in OpenFire doesn’t seem to have a way to do it.

If I’m going to use smack then ideally I’d find a way to convert a Connection object to an XMPPConnection. But perhaps not.

Any pointers on whether the OpenFire API can transfer files or whether

I just need to establish another connection with the client to send

them a file?


you may have much more fun using the Smack API as the sender. Anyhow you may need an account (JID) for this.

Openfire is just a server and handles connections and it’s optimized for this.