public interface FileTransferManager extends Module
Modifier and Type | Field and Description |
---|---|
static String |
NAMESPACE_BYTESTREAMS
Bytestreams namespace
|
static String |
NAMESPACE_SI
The Stream Initiation, SI, namespace.
|
static String |
NAMESPACE_SI_FILETRANSFER
Namespace for the file transfer profile of Stream Initiation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptIncomingFileTransferRequest(FileTransfer transfer)
Checks an incoming file transfer request to see if it should be accepted or rejected.
|
void |
addListener(FileTransferEventListener eventListener)
Registers an event listener that will be notified of file transfer related events.
|
void |
fireFileTransferCompleted(String sid,
boolean wasSuccessful)
Invokes
FileTransferEventListener.fileTransferComplete(FileTransfer, boolean) for all registered event
listeners. |
void |
fireFileTransferStart(String sid,
boolean isReady)
Invokes
FileTransferEventListener.fileTransferStart(FileTransfer, boolean) for all registered event
listeners. |
void |
registerProxyTransfer(String transferDigest,
ProxyTransfer proxyTransfer)
Registers that a transfer has begun through the proxy connected to the server.
|
void |
removeListener(FileTransferEventListener eventListener)
Unregisters an event listener from the list of event listeners that are notified of file transfer related events.
|
static final String NAMESPACE_SI
static final String NAMESPACE_SI_FILETRANSFER
static final String NAMESPACE_BYTESTREAMS
boolean acceptIncomingFileTransferRequest(FileTransfer transfer) throws FileTransferRejectedException
transfer
- the transfer to test for acceptanceFileTransferRejectedException
void registerProxyTransfer(String transferDigest, ProxyTransfer proxyTransfer) throws UnauthorizedException
transferDigest
- the digest of the initiator + target + sessionID that uniquely
identifies a file transferproxyTransfer
- the related proxy transfer.UnauthorizedException
- when in the current server configuration this transfer
should not be permitted.void addListener(FileTransferEventListener eventListener)
eventListener
- an event listener (cannot be null).void removeListener(FileTransferEventListener eventListener)
eventListener
- an event listener (cannot be null).void fireFileTransferStart(String sid, boolean isReady) throws FileTransferRejectedException
FileTransferEventListener.fileTransferStart(FileTransfer, boolean)
for all registered event
listeners.sid
- The session id of the file transfer that is being intercepted (cannot be null).isReady
- true if the transfer is ready to commence or false if this is related to the
initial file transfer request. An exception at this point will cause the transfer to
not go through.FileTransferRejectedException
- When at least one of the listeners aborts the file transfer.void fireFileTransferCompleted(String sid, boolean wasSuccessful)
FileTransferEventListener.fileTransferComplete(FileTransfer, boolean)
for all registered event
listeners.sid
- The session id of the file transfer that is being intercepted (cannot be null).wasSuccessful
- false when an exception was thrown during file transfer, otherwise true.FileTransferRejectedException
- When at least one of the listeners aborts the file transfer.Copyright © 2003–2019 Ignite Realtime. All rights reserved.