net.fckeditor.requestcycle.impl
Class ServerRootPathBuilder

java.lang.Object
  extended by net.fckeditor.requestcycle.impl.ServerRootPathBuilder
All Implemented Interfaces:
UserPathBuilder
Direct Known Subclasses:
ContextPathBuilder

public class ServerRootPathBuilder
extends Object
implements UserPathBuilder

UserPathBuilder implementation which always returns static userfiles paths. In particular it returns the connector.userFiles*Path properties as-is.

Version:
$Id: ServerRootPathBuilder.java 3746 2009-06-22 17:53:03Z mosipov $

Constructor Summary
ServerRootPathBuilder()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerRootPathBuilder

public ServerRootPathBuilder()
Method Detail

getUserFilesAbsolutePath

public String getUserFilesAbsolutePath(HttpServletRequest request)
Description copied from interface: UserPathBuilder
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.

Specified by:
getUserFilesAbsolutePath in interface UserPathBuilder
Parameters:
request - current user request instance
Returns:
the constructed server-side userfiles absolute path

getUserFilesPath

public String getUserFilesPath(HttpServletRequest request)
Description copied from interface: UserPathBuilder
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.

Specified by:
getUserFilesPath in interface UserPathBuilder
Parameters:
request - current user request instance
Returns:
the constructed client-side userfiles path


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