org.deegree.client.core.utils
Class FacesUtils

java.lang.Object
  extended by org.deegree.client.core.utils.FacesUtils

public class FacesUtils
extends Object

TODO add class documentation here

Version:
$Revision: $, $Date: $
Author:
Lyn Buesching, last edited by: $Author: lyn $

Constructor Summary
FacesUtils()
           
 
Method Summary
static String getAbsolutePath(String target, String fileName)
           
static String getServerURL()
           
static URL getWebAccessibleUrl(String target, String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesUtils

public FacesUtils()
Method Detail

getAbsolutePath

public static String getAbsolutePath(String target,
                                     String fileName)
Parameters:
target -
fileName -
Returns:

getWebAccessibleUrl

public static URL getWebAccessibleUrl(String target,
                                      String fileName)
                               throws MalformedURLException
Parameters:
target - the name of an existing directory in the webapps directory, if null the webapps directory will is the target
fileName - the name of the file
Returns:
the current URL extended with the target and fileName, or null if an error occurred. Example: http://localhost:8080/context/target/fileName
Throws:
MalformedURLException

getServerURL

public static String getServerURL()
Returns:
the current URL, or null if an error occurred. Example: http://localhost:8080/context/


Copyright © 2011. All Rights Reserved.