org.awakefw.file.api.server.fileaction
Class HttpConfigurationUtil
java.lang.Object
org.awakefw.file.api.server.fileaction.HttpConfigurationUtil
public class HttpConfigurationUtil
- extends Object
Utility class to use with AwakeFileActionManager
implementation
- Since:
- 1.0
addRootPath
public static String addRootPath(AwakeFileConfigurator awakeFileConfigurator,
String username,
String filename)
throws IOException
- Adds the root path to the beginning of path for a remote file.
If the Awake server runs on Windows: the method will convert the "/" file
separator to "\" if necessary.
- Parameters:
awakeFileConfigurator
- the user http configurationusername
- the client usernamefilename
- the filename path
- Returns:
- the new filename path, prefixed with the root path
- Throws:
IOException
Copyright © 2012 Kawan Softwares SAS