net.fckeditor.requestcycle
Interface UserPathBuilder

All Known Implementing Classes:
ContextPathBuilder, ServerRootPathBuilder

public interface UserPathBuilder

An interface for userfiles path construction. In particular, this interface gives you the ability to construct the connector.userFilesPath and connector.userFilesAbsolutePath properties dynamically. See configuration for more details.

Note: You are free to implement this interface the way you need it, in other words your return values can be global, regardless of the request, or on a per-request basis.

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

Method Summary
 String getUserFilesAbsolutePath(HttpServletRequest request)
          Returns the constructed server-side userfiles absolute path.
 String getUserFilesPath(HttpServletRequest request)
          Returns the constructed client-side userfiles path.
 

Method Detail

getUserFilesAbsolutePath

String getUserFilesAbsolutePath(HttpServletRequest request)
Returns the constructed server-side userfiles absolute path. This method is the dynamic constructor of the connector.userFilesAbsolutePath property. A concrete connector implementation will use this value to resolve the server-side location of resources.

Parameters:
request - current user request instance
Returns:
the constructed server-side userfiles absolute path

getUserFilesPath

String getUserFilesPath(HttpServletRequest request)
Returns the constructed client-side userfiles path. This method is the dynamic constructor of the connector.userFilesPath property. A browser will use this value to resolve the url-side location of resources on the server.

Parameters:
request - current user request instance
Returns:
the constructed client-side userfiles path


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