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 3729 2009-06-21 18:32:59Z 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-2009 Frederico Caldeira Knabben. All Rights Reserved.