Changeset 2101 for FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/handlers/ConnectorHandler.java
- Timestamp:
- 2008-06-23 00:00:48 (7 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/handlers/ConnectorHandler.java
r1905 r2101 26 26 27 27 /** 28 * Handler for some base properties.<br>29 * It's a kind of wrapper to some basic properties handled bythe {@link PropertiesLoader}.28 * Handler for Connector-related properties.<br /> 29 * Wraps to the {@link PropertiesLoader}. 30 30 * 31 31 * @version $Id$ … … 34 34 35 35 /** 36 * Getter for the base dir (using for user files). 37 * 38 * @return {@link UserPathBuilder#getUserFilesPath(HttpServletRequest)} or the default base dir, if 39 * {@link UserPathBuilder}} isn't set. 40 */ 41 public static String getUserFilesPath(final HttpServletRequest servletRequest) { 42 String userFilePath = RequestCycleHandler.getUserFilePath(servletRequest); 36 * Getter for the <code>UserFilesPath</code>. 37 * 38 * @return {@link UserPathBuilder#getUserFilesPath(HttpServletRequest)} or 39 * the <code>DefaultUserFilePath</code> if {@link UserPathBuilder} 40 * isn't set. 41 */ 42 public static String getUserFilesPath(final HttpServletRequest request) { 43 String userFilePath = RequestCycleHandler.getUserFilePath(request); 43 44 return (userFilePath != null) ? userFilePath : getDefaultUserFilesPath(); 44 45 } 45 46 46 47 /** 47 * Getter for the default handling of single extensions.48 * Getter for the default handling of files with multiple extensions. 48 49 * 49 * @return the forceSingleExtension 50 * @return <code>true</code> if single extension only should be enforced 51 * else <code>false</code>. 50 52 */ 51 53 public static boolean isForceSingleExtension() { … … 54 56 55 57 /** 56 * Getter for the value to instruct the connector to return the full URL of a file/folder in the57 * XML response rather than the absolute URL.58 * Getter for the value to instruct the connector to return the full URL of 59 * a file/folder in the XML response rather than the absolute URL. 58 60 * 59 * @return Boolean value of the property 'connector.fullUrl'. 61 * @return <code>true</code> if the property <code>connector.fullUrl</code> is 62 * set else <code>false</code>. 60 63 */ 61 64 public static boolean isFullUrl() { … … 64 67 65 68 /** 66 * Getter for the default userFilesPath.69 * Getter for the default <code>UserFilesPath</code>. 67 70 * 68 * @return Default userfiles path(/userfiles)71 * @return <code>DefaultUserFilesPath</code> (/userfiles) 69 72 */ 70 73 public static String getDefaultUserFilesPath() { … … 73 76 74 77 /** 75 * Getter for the value to instruct the Connector to check, if the uploaded image is really one. 78 * Getter for the value to instruct the Connector to check if the uploaded 79 * image is really an image. 76 80 * 77 * @return Boolean value of the property 'connector.secureImageUploads'. 81 * @return Boolean value of the property 82 * <code>connector.secureImageUploads</code>. 78 83 */ 79 84 public static boolean isSecureImageUploads() {