org.openuat.util.ip
Class FileTransferService

java.lang.Object
  extended by org.openuat.util.ip.FileTransferService

public class FileTransferService
extends java.lang.Object


Field Summary
static int DEFAULT_PORT
          default port where you http service is started.
 
Method Summary
 void addFileReceivedListener(FileTransferListener l)
           
 void close()
           
static FileTransferService getFileTransferService()
           
static FileTransferService getFileTransferService(java.net.InetAddress ia)
          starts the http server. this one is listening to the address of the InetAddress. the default port, where the relate http server is started is DEFAULT_PORT.
static FileTransferService getFileTransferService(int port, java.net.InetAddress ia)
          starts the http server. this one is listening to the address of the InetAddress. the default port, where the relate http server is started is the parameter port.
 FileTransferListener getListener()
           
 void removeFileReceivedListener(FileTransferListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static int DEFAULT_PORT
default port where you http service is started.

Method Detail

getFileTransferService

public static FileTransferService getFileTransferService(java.net.InetAddress ia)
starts the http server. this one is listening to the address of the InetAddress. the default port, where the relate http server is started is DEFAULT_PORT.

Parameters:
ia -
Returns:
FileTransferService

getFileTransferService

public static FileTransferService getFileTransferService(int port,
                                                         java.net.InetAddress ia)
starts the http server. this one is listening to the address of the InetAddress. the default port, where the relate http server is started is the parameter port.

Parameters:
port - to which http server is listening
ia - address where the server is bind to.
Returns:
FileTransferService

getFileTransferService

public static FileTransferService getFileTransferService()

getListener

public FileTransferListener getListener()

close

public void close()

addFileReceivedListener

public void addFileReceivedListener(FileTransferListener l)

removeFileReceivedListener

public void removeFileReceivedListener(FileTransferListener l)


2005-2009, Rene Mayrhofer.