net.fckeditor.tool
Class UtilsResponse

java.lang.Object
  extended by net.fckeditor.tool.UtilsResponse

public class UtilsResponse
extends Object

Static helper methods for the servlet response.

Version:
$Id: UtilsResponse.java 4785 2009-12-21 20:10:28Z mosipov $

Constructor Summary
UtilsResponse()
           
 
Method Summary
static String fileUrl(String userFilesPath, ResourceType type, String currentFolder, String filename)
          Assembles a file URL for the File Browser.
static String getUrl(String userFilesPath, ResourceType type, String currentFolder)
          Assembles a URL with omitted filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtilsResponse

public UtilsResponse()
Method Detail

getUrl

public static String getUrl(String userFilesPath,
                            ResourceType type,
                            String currentFolder)
Assembles a URL with omitted filename.

See Also:
fileUrl(String, ResourceType, String, String)

fileUrl

public static String fileUrl(String userFilesPath,
                             ResourceType type,
                             String currentFolder,
                             String filename)
Assembles a file URL for the File Browser. Simply appends parameters to a string buffer with reasonable parameter checking.

Parameters:
userFilesPath - the current userfiles path (may be null)
type - the current resource type
currentFolder - the selected current folder
filename - the current chosen file (may be null)
Returns:
assembled url for the File Browser


Copyright © 2004-2010 Frederico Caldeira Knabben. All Rights Reserved.