Package com.zebra.sdk.device
Class ProfileToMirrorServer
Object
com.zebra.sdk.device.ProfileToMirrorServer
Class which allows you to store a zprofile to a mirror server.
-
Constructor Summary
ConstructorsConstructorDescriptionProfileToMirrorServer(String pathToProfile) Creates an instance of a class which can be used to store a profile onto a mirror server. -
Method Summary
-
Constructor Details
-
ProfileToMirrorServer
Creates an instance of a class which can be used to store a profile onto a mirror server.- Parameters:
pathToProfile- Path to the profile to load. (e.g. /home/user/profile.zprofile)- Throws:
IOException- if an I/O error occurs.
-
-
Method Details
-
sendToMirrorServer
public List<String> sendToMirrorServer(String server, String user, String password) throws ConnectionException, FileNotFoundException, IOException Stores the profile to the mirror server. This method also deletes all files in appl/, commands/, and files/ directory before storing the contents of the profile in the proper directories.- Parameters:
server- The FTP server path.user- The FTP user name. (The user should have read/write/create/delete access.)password- The FTP password- Returns:
- A list of the errors that happened while uploading settings and files.
- Throws:
ConnectionException- if an I/O error occurs.FileNotFoundException- if the profile is not found.IOException- if an I/O error occurs.
-