Smack

org.jivesoftware.smackx.filetransfer
Class FileTransfer.Status

java.lang.Object
  extended by org.jivesoftware.smackx.filetransfer.FileTransfer.Status
Enclosing class:
FileTransfer

public static class FileTransfer.Status
extends Object

A class to represent the current status of the file transfer.

Author:
Alexander Wenckus

Field Summary
static FileTransfer.Status CANCLED
          The file transfer was canceled
static FileTransfer.Status COMPLETE
          The transfer has completed successfully.
static FileTransfer.Status ERROR
          An error occured during the transfer.
static FileTransfer.Status IN_PROGRESS
          The transfer is in progress.
static FileTransfer.Status INITIAL
          The initial status of the file transfer.
static FileTransfer.Status NEGOTIATED
          After the stream negotitation has completed the intermediate state between the time when the negotiation is finished and the actual transfer begins.
static FileTransfer.Status NEGOTIATING_STREAM
          The stream to transfer the file is being negotiated over the chosen stream type.
static FileTransfer.Status NEGOTIATING_TRANSFER
          The file transfer is being negotiated with the peer.
static FileTransfer.Status REFUSED
          The peer has refused the file transfer request halting the file transfer negotiation process.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR

public static final FileTransfer.Status ERROR
An error occured during the transfer.

See Also:
FileTransfer.getError()

INITIAL

public static final FileTransfer.Status INITIAL
The initial status of the file transfer.


NEGOTIATING_TRANSFER

public static final FileTransfer.Status NEGOTIATING_TRANSFER
The file transfer is being negotiated with the peer. The party recieving the file has the option to accept or refuse a file transfer request. If they accept, then the process of stream negotiation will begin. If they refuse the file will not be transfered.

See Also:
NEGOTIATING_STREAM

REFUSED

public static final FileTransfer.Status REFUSED
The peer has refused the file transfer request halting the file transfer negotiation process.


NEGOTIATING_STREAM

public static final FileTransfer.Status NEGOTIATING_STREAM
The stream to transfer the file is being negotiated over the chosen stream type. After the stream negotiating process is complete the status becomes negotiated.

See Also:
NEGOTIATED

NEGOTIATED

public static final FileTransfer.Status NEGOTIATED
After the stream negotitation has completed the intermediate state between the time when the negotiation is finished and the actual transfer begins.


IN_PROGRESS

public static final FileTransfer.Status IN_PROGRESS
The transfer is in progress.

See Also:
FileTransfer.getProgress()

COMPLETE

public static final FileTransfer.Status COMPLETE
The transfer has completed successfully.


CANCLED

public static final FileTransfer.Status CANCLED
The file transfer was canceled

Method Detail

toString

public String toString()
Overrides:
toString in class Object

Smack

Copyright © 2003 Jive Software.