public class Receiver extends ArcIF
CONNECT_ERROR, DISCONNECT_ERROR, IOEXCEPTION, LOGIN_ERROR, LOGOUT_ERROR, NO_LOCAL_MD5, NO_MD5_MATCH, NO_REMOTE_MD5, SETUP_ERROR, SOCKET_EXCEPTION, SUCCESS, TRANSFER_ERROR, UNRESOLVED_ERROR| Constructor and Description |
|---|
Receiver(java.lang.String propertyFilename)
Class constructor specifying the local directory to be used.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CloseFTPServer()
Closes the FTP server.
|
org.apache.ftpserver.usermanager.impl.BaseUser |
CreateUserAccount(java.lang.String username,
java.lang.String password,
java.lang.String homeDir)
Creates a user account with the specified credentials.
|
java.lang.String |
getRootReceiveDirectory()
Returns the path to the directory where the received data are saved temporarily.
|
void |
saveReceiverProperties(java.lang.String propertyFilename,
ReceiverProperties properties) |
void |
setupFTPServer()
Sets up the FTP server and creates a user account that will access the local temporary directory.
|
void |
StartFTPServer() |
public Receiver(java.lang.String propertyFilename)
propertyFilename - the name of the property filepublic void saveReceiverProperties(java.lang.String propertyFilename,
ReceiverProperties properties)
public void setupFTPServer()
public void StartFTPServer()
public void CloseFTPServer()
public org.apache.ftpserver.usermanager.impl.BaseUser CreateUserAccount(java.lang.String username,
java.lang.String password,
java.lang.String homeDir)
username - the username of the account.password - the password of the accounthomeDir - the local directory that will be accessed by the userpublic java.lang.String getRootReceiveDirectory()