1 /* 2 * FCKeditor - The text editor for Internet - http://www.fckeditor.net 3 * Copyright (C) 2004-2010 Frederico Caldeira Knabben 4 * 5 * == BEGIN LICENSE == 6 * 7 * Licensed under the terms of any of the following licenses at your 8 * choice: 9 * 10 * - GNU General Public License Version 2 or later (the "GPL") 11 * http://www.gnu.org/licenses/gpl.html 12 * 13 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") 14 * http://www.gnu.org/licenses/lgpl.html 15 * 16 * - Mozilla Public License Version 1.1 or later (the "MPL") 17 * http://www.mozilla.org/MPL/MPL-1.1.html 18 * 19 * == END LICENSE == 20 */ 21 package net.fckeditor.requestcycle.impl; 22 23 import javax.servlet.http.HttpServletRequest; 24 25 import net.fckeditor.handlers.PropertiesLoader; 26 import net.fckeditor.requestcycle.UserPathBuilder; 27 28 /** 29 * UserPathBuilder implementation which always returns static userfiles paths. 30 * In particular it returns the {@code connector.userFiles*Path} properties 31 * as-is. 32 * 33 * @version $Id: ServerRootPathBuilder.java 4785 2009-12-21 20:10:28Z mosipov $ 34 */ 35 public class ServerRootPathBuilder implements UserPathBuilder { 36 37 public String getUserFilesAbsolutePath(final HttpServletRequest request) { 38 return PropertiesLoader.getUserFilesAbsolutePath(); 39 } 40 41 public String getUserFilesPath(final HttpServletRequest request) { 42 return PropertiesLoader.getUserFilesPath(); 43 } 44 45 }