wjhk.jupload2.upload
Interface FileUploadThread

All Known Implementing Classes:
DefaultFileUploadThread, FileUploadThreadFTP, FileUploadThreadHTTP

public interface FileUploadThread

This interface defines the methods of the various FileUploadThread classes. These classes are kept in the CVS, as people often update them for their needs: I don't want to remove them, when I do a 'big bang' within them. Created on 21 nov. 06


Method Summary
 void close()
          Closes the connection to the server and releases resources.
 String getResponseMsg()
          Get the server response message.
 Thread.State getState()
           
 void interrupt()
          This method is created in this interface, and is implemented by DefaultFileUploadThread, as this class is a subclass of Thread.
 boolean isAlive()
          This method is created in this interface, and is implemented by DefaultFileUploadThread, as this class is a subclass of Thread.
 void join()
          This method is created in this interface, and is implemented by DefaultFileUploadThread, as this class is a subclass of Thread.
 void join(long millisec)
          This method is created in this interface, and is implemented by DefaultFileUploadThread, as this class is a subclass of Thread.
 void setFileUploadThreadManager(FileUploadManagerThread fileUploadManagerThread)
          Changes the FileUploadManagerThread.
 void start()
          This method is created in this interface, and is implemented by DefaultFileUploadThread, as this class is a subclass of Thread.
 

Method Detail

getResponseMsg

String getResponseMsg()
Get the server response message. In HTTP mode, it's the body part, without the HTTP headers.
Note: was getResponseMsg until release 3.4.1.

Returns:
The String that contains the HTTP response message (e.g. "SUCCESS")

close

void close()
Closes the connection to the server and releases resources.


getState

Thread.State getState()
Returns:
The Thread state
See Also:
Thread.getState()

isAlive

boolean isAlive()
This method is created in this interface, and is implemented by DefaultFileUploadThread, as this class is a subclass of Thread.

Returns:
true if the thread is currently working.
See Also:
Thread.isAlive()

join

void join()
          throws InterruptedException
This method is created in this interface, and is implemented by DefaultFileUploadThread, as this class is a subclass of Thread.

Throws:
InterruptedException
See Also:
Thread.join()

join

void join(long millisec)
          throws InterruptedException
This method is created in this interface, and is implemented by DefaultFileUploadThread, as this class is a subclass of Thread.

Parameters:
millisec -
Throws:
InterruptedException
See Also:
Thread.join(long)

start

void start()
This method is created in this interface, and is implemented by DefaultFileUploadThread, as this class is a subclass of Thread.

See Also:
Thread.start()

interrupt

void interrupt()
This method is created in this interface, and is implemented by DefaultFileUploadThread, as this class is a subclass of Thread.

See Also:
Thread.interrupt()

setFileUploadThreadManager

void setFileUploadThreadManager(FileUploadManagerThread fileUploadManagerThread)
                                throws JUploadException
Changes the FileUploadManagerThread. The standard way is to give the FileUploadManagerThread to the constructor.

Parameters:
fileUploadManagerThread -
Throws:
JUploadException
See Also:
FileUploadManagerThread