net.fckeditor.handlers
Class ConnectorHandler

java.lang.Object
  extended by net.fckeditor.handlers.ConnectorHandler

public class ConnectorHandler
extends java.lang.Object

Handler for Connector-related properties.
Wraps to the PropertiesLoader.

Version:
$Id: ConnectorHandler.java 3840 2009-07-08 20:29:46Z mosipov $

Constructor Summary
ConnectorHandler()
           
 
Method Summary
static java.lang.String getDefaultUserFilesPath()
          Getter for the default UserFilesPath.
static java.lang.String getUserFilesPath(javax.servlet.http.HttpServletRequest request)
          Getter for the UserFilesPath.
static boolean isForceSingleExtension()
          Getter for the default handling of files with multiple extensions.
static boolean isFullUrl()
          Getter for the value to instruct the connector to return the full URL of a file/folder in the XML response rather than the absolute URL.
static boolean isSecureImageUploads()
          Getter for the value to instruct the Connector to check if the uploaded image is really an image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorHandler

public ConnectorHandler()
Method Detail

getUserFilesPath

public static java.lang.String getUserFilesPath(javax.servlet.http.HttpServletRequest request)
Getter for the UserFilesPath.

Returns:
UserPathBuilder.getUserFilesPath(HttpServletRequest) or the DefaultUserFilePath if UserPathBuilder isn't set.

isForceSingleExtension

public static boolean isForceSingleExtension()
Getter for the default handling of files with multiple extensions.

Returns:
true if single extension only should be enforced else false.

isFullUrl

public static boolean isFullUrl()
Getter for the value to instruct the connector to return the full URL of a file/folder in the XML response rather than the absolute URL.

Returns:
true if the property connector.fullUrl is set else false.

getDefaultUserFilesPath

public static java.lang.String getDefaultUserFilesPath()
Getter for the default UserFilesPath.

Returns:
DefaultUserFilesPath (/userfiles)

isSecureImageUploads

public static boolean isSecureImageUploads()
Getter for the value to instruct the Connector to check if the uploaded image is really an image.

Returns:
Boolean value of the property connector.secureImageUploads.


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