org.openuat.util.ip
Class FileTransferService
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PORT
public static int DEFAULT_PORT
- default port where you http service
is started.
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 listeningia - 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-2006, Rene Mayrhofer.