org.walluck.oscar.handlers.filetransfer
Class FileTransferHandler

java.lang.Object
  extended by java.lang.Thread
      extended by org.walluck.oscar.handlers.filetransfer.FileTransferHandler
All Implemented Interfaces:
Runnable

public class FileTransferHandler
extends Thread

File transfer tool (actually, this doesn't extend Tool, and probably should, but it was easier to extend Thread, and we can't have both).

Since:
1.0
Version:
1.0
Author:
David Walluck

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FileTransferHandler(AIMSession sess, FileTransfer ft, byte[] cookie, byte[] rCookie, String screenname, FTTLV fttlv, String host, int port)
          Creates a new file transfer tool.
 
Method Summary
 String getShareDir()
          Get the value of shareDir.
 boolean getWantResume()
          Get the value of wantResume.
 boolean isGetFile()
          Get the value of getFile.
 boolean isListener()
          Get the value of listener.
 boolean isSender()
          Get the value of sender.
 boolean isSendFile()
          Get the value of sendFile.
 void run()
          Run method for the file transfer thread.
 void setGetFile(boolean getFile)
          Set the value of getFile.
 void setListener(boolean listener)
          Set the value of listener.
 void setSender(boolean sender)
          Set the value of sender.
 void setSendFile(boolean sendFile)
          Set the value of sendFile.
 void setShareDir(String shareDir)
          Set the value of shareDir.
 void setWantResume(boolean wantResume)
          Set the value of wantResume.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileTransferHandler

public FileTransferHandler(AIMSession sess,
                           FileTransfer ft,
                           byte[] cookie,
                           byte[] rCookie,
                           String screenname,
                           FTTLV fttlv,
                           String host,
                           int port)
Creates a new file transfer tool.

Parameters:
sess - the oscar session
ft - the FileTransfer
cookie - the cookie
rCookie - the rCookie
screenname - the screenname
fttlv - the FileTransfer TLV
host - the host
port - the port
Method Detail

run

public void run()
Run method for the file transfer thread.

Specified by:
run in interface Runnable
Overrides:
run in class Thread

isListener

public boolean isListener()
Get the value of listener.

Returns:
value of listener.

setListener

public void setListener(boolean listener)
Set the value of listener.

Parameters:
listener - Value to assign to listener.

isSender

public boolean isSender()
Get the value of sender.

Returns:
value of sender.

setSender

public void setSender(boolean sender)
Set the value of sender.

Parameters:
sender - Value to assign to sender.

isGetFile

public boolean isGetFile()
Get the value of getFile.

Returns:
value of getFile.

setGetFile

public void setGetFile(boolean getFile)
Set the value of getFile.

Parameters:
getFile - Value to assign to getFile.

isSendFile

public boolean isSendFile()
Get the value of sendFile.

Returns:
value of sendFile.

setSendFile

public void setSendFile(boolean sendFile)
Set the value of sendFile.

Parameters:
sendFile - Value to assign to sendFile.

getWantResume

public boolean getWantResume()
Get the value of wantResume.

Returns:
value of wantResume.

setWantResume

public void setWantResume(boolean wantResume)
Set the value of wantResume.

Parameters:
wantResume - Value to assign to wantResume.

getShareDir

public String getShareDir()
Get the value of shareDir.

Returns:
value of shareDir.

setShareDir

public void setShareDir(String shareDir)
Set the value of shareDir.

Parameters:
shareDir - Value to assign to shareDir.