public class ProfileToMirrorServer
extends Object
Constructor and Description |
---|
ProfileToMirrorServer(String pathToProfile)
Creates an instance of a class which can be used to store a profile onto a mirror server.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<String> |
sendToMirrorServer(String server,
String user,
String password)
Stores the profile to the mirror server.
|
public ProfileToMirrorServer(String pathToProfile) throws java.io.IOException
pathToProfile
- Path to the profile to load. (e.g. /home/user/profile.zprofile)java.io.IOException
- if an I/O error occurs.public java.util.List<String> sendToMirrorServer(String server, String user, String password) throws ConnectionException, java.io.FileNotFoundException, java.io.IOException
server
- The FTP server path.user
- The FTP user name. (The user should have read/write/create/delete access.)password
- The FTP passwordConnectionException
- if an I/O error occurs.java.io.FileNotFoundException
- if the profile is not found.java.io.IOException
- if an I/O error occurs.
© 2017 ZIH Corp. All Rights Reserved.