Awake File v1.1

org.awakefw.file.api.server.fileaction
Class HttpConfigurationUtil

java.lang.Object
  extended by org.awakefw.file.api.server.fileaction.HttpConfigurationUtil

public class HttpConfigurationUtil
extends Object

Utility class to use with AwakeFileActionManager implementation

Since:
1.0

Method Summary
static String addRootPath(AwakeFileConfigurator awakeFileConfigurator, String username, String filename)
          Adds the root path to the beginning of path for a remote file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 configuration
username - the client username
filename - the filename path
Returns:
the new filename path, prefixed with the root path
Throws:
IOException

Awake File v1.1

Copyright © 2012 Kawan Softwares SAS