Changeset 2297 for FCKeditor.Java/trunk
- Timestamp:
- 2008-07-26 01:17:28 (6 months ago)
- Location:
- FCKeditor.Java/trunk
- Files:
-
- 3 added
- 9 modified
-
java-core/src/main/java/net/fckeditor/connector/ConnectorServlet.java (modified) (3 diffs)
-
java-core/src/main/java/net/fckeditor/handlers/RequestCycleHandler.java (modified) (1 diff)
-
java-core/src/main/java/net/fckeditor/requestcycle/impl/ContextPathBuilder.java (added)
-
java-core/src/main/java/net/fckeditor/requestcycle/impl/FalseUserAction.java (added)
-
java-core/src/main/java/net/fckeditor/requestcycle/impl/TrueUserAction.java (added)
-
java-core/src/main/java/net/fckeditor/requestcycle/impl/UserActionImpl.java (modified) (1 diff)
-
java-core/src/main/java/net/fckeditor/requestcycle/UserPathBuilder.java (modified) (1 diff)
-
java-core/src/main/java/net/fckeditor/tool/UtilsFile.java (modified) (2 diffs)
-
java-core/src/main/java/net/fckeditor/tool/UtilsResponse.java (modified) (3 diffs)
-
java-core/src/main/resources/net/fckeditor/handlers/default.properties (modified) (1 diff)
-
src/site/apt/connector.apt (modified) (1 diff)
-
src/site/apt/properties.apt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/connector/ConnectorServlet.java
r2292 r2297 149 149 xr = new XmlResponse(command, resourceType, currentFolderStr, 150 150 UtilsResponse.constructResponseUrl(request, 151 resourceType, currentFolderStr, true, 152 ConnectorHandler.isFullUrl())); 151 resourceType, currentFolderStr, ConnectorHandler.isFullUrl())); 153 152 154 153 if (command.equals(CommandHandler.GET_FOLDERS)) … … 289 288 UtilsResponse.constructResponseUrl(request, 290 289 resourceType, currentFolderStr, 291 true,ConnectorHandler.isFullUrl())290 ConnectorHandler.isFullUrl()) 292 291 .concat(filename)); 293 292 else … … 295 294 UtilsResponse.constructResponseUrl(request, 296 295 resourceType, currentFolderStr, 297 true,ConnectorHandler.isFullUrl())296 ConnectorHandler.isFullUrl()) 298 297 .concat(newFilename), newFilename); 299 298 -
FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/handlers/RequestCycleHandler.java
r2230 r2297 108 108 * <code>null</code>. 109 109 */ 110 p rotectedstatic String getUserFilePath(final HttpServletRequest request) {110 public static String getUserFilePath(final HttpServletRequest request) { 111 111 return (userPathBuilder != null) ? userPathBuilder.getUserFilesPath(request) : null; 112 112 } 113 114 public static String getLocalUserFilePath() { 115 return (userPathBuilder != null) ? userPathBuilder.getLocalUserFilesPath() : null; 116 } 113 117 } -
FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/requestcycle/impl/UserActionImpl.java
r2151 r2297 29 29 * <code>true</code>. 30 30 * 31 * @see TrueUserAction 31 32 * @version $Id$ 32 33 */ 34 @Deprecated 33 35 public class UserActionImpl implements UserAction { 34 36 -
FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/requestcycle/UserPathBuilder.java
r2151 r2297 46 46 * 47 47 * @param request 48 * @return <code>null</code> or the <code>UserFilesPath</code> for the 49 * current user. 48 * @return <code>UserFilesPath</code> for the current user. 50 49 */ 51 50 public String getUserFilesPath(final HttpServletRequest request); 51 52 public String getLocalUserFilesPath(); 52 53 } -
FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/tool/UtilsFile.java
r2151 r2297 32 32 33 33 import net.fckeditor.handlers.ConnectorHandler; 34 import net.fckeditor.handlers.RequestCycleHandler; 34 35 import net.fckeditor.handlers.ResourceTypeHandler; 35 36 … … 158 159 public static String constructServerSidePath(HttpServletRequest request, 159 160 ResourceTypeHandler resourceType) { 160 StringBuffer sb = new StringBuffer(ConnectorHandler 161 .getUserFilesPath(request)); 161 StringBuffer sb = new StringBuffer(RequestCycleHandler.getLocalUserFilePath()); 162 162 sb.append(resourceType.getPath()); 163 163 -
FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/tool/UtilsResponse.java
r2151 r2297 40 40 * @param resourceType 41 41 * @param urlPath 42 * @param prependContextPath43 42 * @param fullUrl 44 43 * @return constructed url … … 46 45 public static String constructResponseUrl(HttpServletRequest request, 47 46 ResourceTypeHandler resourceType, String urlPath, 48 boolean prependContextPath, booleanfullUrl) {47 boolean fullUrl) { 49 48 50 49 StringBuffer sb = new StringBuffer(); … … 52 51 if (fullUrl) { 53 52 String address = request.getRequestURL().toString(); 54 sb.append(address.substring(0, address.indexOf('/', 8)) 55 + request.getContextPath()); 53 sb.append(address.substring(0, address.indexOf('/', 8))); 56 54 } 57 58 if (prependContextPath && !fullUrl) 59 sb.append(request.getContextPath()); 60 55 61 56 sb.append(ConnectorHandler.getUserFilesPath(request)); 62 57 sb.append(resourceType.getPath()); -
FCKeditor.Java/trunk/java-core/src/main/resources/net/fckeditor/handlers/default.properties
r2223 r2297 61 61 fckeditor.width = 100% 62 62 63 # default LocaleResolver implementation 63 # default implementations 64 connector.userActionImpl = net.fckeditor.requestcycle.impl.FalseUserAction 65 connector.userPathBuilderImpl = net.fckeditor.requestcycle.impl.ContextPathBuilder 64 66 localization.localeResolverImpl = net.fckeditor.localization.impl.AcceptLanguageHeaderResolver 65 67 -
FCKeditor.Java/trunk/src/site/apt/connector.apt
r2293 r2297 62 62 63 63 +------------------------------------------------------------------------------+ 64 connector.userActionImpl=net.fckeditor.requestcycle.impl. UserActionImpl64 connector.userActionImpl=net.fckeditor.requestcycle.impl.TrueUserAction 65 65 +------------------------------------------------------------------------------+ 66 66 -
FCKeditor.Java/trunk/src/site/apt/properties.apt
r2293 r2297 133 133 | | | | other renamed file type. | 134 134 *-------------------------------+-------------------------------------------+---------------------------+---------------------------------------------------+ 135 | connector.userActionImpl | | any fully-qualified class | Provides custom security functions for the File |136 | | | name of a valid {{{java-core/apidocs/net/fckeditor/requestcycle/UserAction.html}<<<UserAction>>>}} | Browser Connector. For more details see {{{connector.html}here}}. |135 | connector.userActionImpl | {{{java-core/apidocs/net/fckeditor/requestcycle/impl/FalseUserAction.html}<<<net.fckeditor.requestcycle. | any fully-qualified class | Provides custom security functions for the File | 136 | | impl.FalseUserAction>>>}} | name of a valid {{{java-core/apidocs/net/fckeditor/requestcycle/UserAction.html}<<<UserAction>>>}} | Browser Connector. For more details see {{{connector.html}here}}. | 137 137 | | | implementation | | 138 138 *-------------------------------+-------------------------------------------+---------------------------+---------------------------------------------------+ 139 | connector.userPathBuilderImpl | | any fully-qualified class | Provides a custom function for constructing a user-dependent <<<UserFilesPath>>> for the File |140 | | | name of a valid {{{java-core/apidocs/net/fckeditor/requestcycle/UserPathBuilder.html}<<<UserPathBuilder>>>}} | Browser Connector. For more details see {{{connector.html}here}}. |139 | connector.userPathBuilderImpl | {{{java-core/apidocs/net/fckeditor/requestcycle/impl/ContextPathBuilder.html}<<<net.fckeditor.requestcycle. | any fully-qualified class | Provides a custom function for constructing a user-dependent <<<UserFilesPath>>> for the File | 140 | | impl.ContextPathBuilder>>>}} | name of a valid {{{java-core/apidocs/net/fckeditor/requestcycle/UserPathBuilder.html}<<<UserPathBuilder>>>}} | Browser Connector. For more details see {{{connector.html}here}}. | 141 141 | | | implementation | | 142 142 *-------------------------------+-------------------------------------------+---------------------------+---------------------------------------------------+ … … 151 151 *-----------------------------------+-------------------------------------------+---------------+---------------------------------------------------+ 152 152 | localization.localeResolverImpl | {{{java-core/apidocs/net/fckeditor/localization/impl/AcceptLanguageHeaderResolver.html}<<<net.fckeditor.localization.impl. | any fully-qualified class | Provides localization capabilites for the integration pack. For more details see {{{i18n.html}here}}. | 153 | | AcceptLanguageHeaderResolver>>>}} | name of a valid {{{java-core/apidocs/net/fckeditor/localization/LocaleResolver.html}<<<LocaleResolver>>>}} | |153 | | AcceptLanguageHeaderResolver>>>}} | name of a valid {{{java-core/apidocs/net/fckeditor/localization/LocaleResolver.html}<<<LocaleResolver>>>}} | | 154 154 | | | implementation| | 155 155 *-----------------------------------+-------------------------------------------+---------------+---------------------------------------------------+