net.fckeditor.requestcycle.impl
Class ContextPathBuilder

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

public class ContextPathBuilder
extends ServerRootPathBuilder

UserPathBuilder implementation which always returns static userfiles paths with prepended context path. In particular it returns the connector.userFiles*Path properties and prepend the current context path to getUserFilesPath(HttpServletRequest) only.

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

Constructor Summary
ContextPathBuilder()
           
 
Method Summary
 String getUserFilesPath(HttpServletRequest request)
          Returns the constructed client-side userfiles path.
 
Methods inherited from class net.fckeditor.requestcycle.impl.ServerRootPathBuilder
getUserFilesAbsolutePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextPathBuilder

public ContextPathBuilder()
Method Detail

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
Overrides:
getUserFilesPath in class ServerRootPathBuilder
Parameters:
request - current user request instance
Returns:
the constructed client-side userfiles path


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