|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.ssh.OperationSetFileTransferSSHImpl
public class OperationSetFileTransferSSHImpl
This class provides operations to upload/download files to remote machines
| Constructor Summary | |
|---|---|
OperationSetFileTransferSSHImpl(ProtocolProviderServiceSSHImpl parentProvider)
Creates a new instance of OperationSetFileTransferSSHImpl |
|
| Method Summary | |
|---|---|
void |
addFileTransferListener(FileTransferListener listener)
Registers a FileTransferListener with this operation set so that it gets notifications of start, complete, failure of file transfers |
long |
getMaximumFileLength()
Returns the maximum file length supported by the protocol in bytes. |
void |
removeFileTransferListener(FileTransferListener listener)
Removes the given FileTransferListener that listens for file transfer requests and created file transfers. |
FileTransfer |
sendFile(Contact toContact,
Contact fromContact,
String remotePath,
String localPath)
The file transfer method to/from the remote machine either toContact is null(we are downloading file from remote machine or fromContact is null(we are uploading file to remote machine |
FileTransfer |
sendFile(Contact toContact,
File file)
Sends a file transfer request to the given toContact. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationSetFileTransferSSHImpl(ProtocolProviderServiceSSHImpl parentProvider)
parentProvider - the parent protocol provider service| Method Detail |
|---|
public void addFileTransferListener(FileTransferListener listener)
addFileTransferListener in interface OperationSetFileTransferlistener - the FileListener to register.public void removeFileTransferListener(FileTransferListener listener)
OperationSetFileTransfer
removeFileTransferListener in interface OperationSetFileTransferlistener - the FileTransferListener to remove
public FileTransfer sendFile(Contact toContact,
File file)
sendFile in interface OperationSetFileTransfertoContact - the contact that should receive the filefile - the file to send
public FileTransfer sendFile(Contact toContact,
Contact fromContact,
String remotePath,
String localPath)
sendFile in interface OperationSetFileTransfertoContact - - the file recipientfromContact - - the file senderremotePath - - the identifier for the remote filelocalPath - - the identifier for the local file
public long getMaximumFileLength()
getMaximumFileLength in interface OperationSetFileTransfer
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||