Smack

org.jivesoftware.smackx.filetransfer
Interface OutgoingFileTransfer.NegotiationProgress

Enclosing class:
OutgoingFileTransfer

public static interface OutgoingFileTransfer.NegotiationProgress

A callback class to retrieve the status of an outgoing transfer negotiation process.

Author:
Alexander Wenckus

Method Summary
 void errorEstablishingStream(java.lang.Exception e)
          Called when an exception occurs during the negotiation progress.
 void outputStreamEstablished(java.io.OutputStream stream)
          Once the negotiation process is completed the output stream can be retrieved.
 void statusUpdated(FileTransfer.Status oldStatus, FileTransfer.Status newStatus)
          Called when the status changes
 

Method Detail

statusUpdated

void statusUpdated(FileTransfer.Status oldStatus,
                   FileTransfer.Status newStatus)
Called when the status changes

Parameters:
oldStatus - the previous status of the file transfer.
newStatus - the new status of the file transfer.

outputStreamEstablished

void outputStreamEstablished(java.io.OutputStream stream)
Once the negotiation process is completed the output stream can be retrieved.

Parameters:
stream - the established stream which can be used to transfer the file to the remote entity

errorEstablishingStream

void errorEstablishingStream(java.lang.Exception e)
Called when an exception occurs during the negotiation progress.

Parameters:
e - the exception that occurred.

Smack

Copyright © 2003-2007 Jive Software.