Class FtpConfigImpl
- java.lang.Object
-
- org.exoplatform.services.ftp.config.FtpConfigImpl
-
-
Field Summary
Fields Modifier and Type Field Description String_forbiddenCharsForbidden chars.protected org.exoplatform.container.PortalContainer_portalContainerPortal Container.char_replaceCharReplace char.boolean_replaceForbiddenCharsReplace forbidden chars.static StringDEFAULT_JCR_FORBIDDEN_CHARSAccording JCR specification JSR-170 .static charDEFAULT_REPLACE_CHARThe all forbidden chars will replaced '_' by default.static booleanDEFAULT_REPLACE_FORBIDDEN_CHARSThe replace forbidden chars is enable by default.protected booleanENABLE_TRACEIs enable trace.static StringINIT_PARAM_CACHE_FOLDER_NAME"cache-folder-name".static StringINIT_PARAM_CLIENT_SIDE_ENCODING"client-side-encoding".static StringINIT_PARAM_COMMAND_PORT"command-port".static StringINIT_PARAM_DATA_MAX_PORT"data-max-port".static StringINIT_PARAM_DATA_MIN_PORT"data-min-port".static StringINIT_PARAM_DEF_FILE_MIME_TYPE"def-file-mime-type".static StringINIT_PARAM_DEF_FILE_NODE_TYPE"def-file-node-type".static StringINIT_PARAM_DEF_FOLDER_NODE_TYPE"def-folder-node-type".static StringINIT_PARAM_DOWNLOAD_SPEED_LIMIT"download-speed-limit".static StringINIT_PARAM_FORBIDDEN_CHARSforbidden-charsstatic StringINIT_PARAM_REPLACE_CHARreplace-charstatic StringINIT_PARAM_REPLACE_FORBIDDEN_CHARSreplace-forbidden-charsstatic StringINIT_PARAM_SYSTEM"system".static StringINIT_PARAM_TIME_OUT"timeout".static StringINIT_PARAM_UPLOAD_SPEED_LIMIT"upload-speed-limit".
-
Constructor Summary
Constructors Constructor Description FtpConfigImpl(org.exoplatform.container.ExoContainerContext context, org.exoplatform.container.xml.InitParams params)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCacheFolderName()StringgetClientSideEncoding()intgetCommandPort()intgetDataMaxPort()intgetDataMinPort()StringgetDefFileMimeType()StringgetDefFileNodeType()StringgetDefFolderNodeType()intgetDownLoadSpeed()StringgetForbiddenChars()org.exoplatform.container.PortalContainergetPortalContainer()chargetReplaceChar()StringgetSystemType()intgetTimeOut()intgetUpLoadSpeed()booleanisNeedSlowDownLoad()booleanisNeedSlowUpLoad()booleanisNeedTimeOut()booleanisReplaceForbiddenChars()
-
-
-
Field Detail
-
INIT_PARAM_COMMAND_PORT
public static final String INIT_PARAM_COMMAND_PORT
"command-port".- See Also:
- Constant Field Values
-
INIT_PARAM_DATA_MIN_PORT
public static final String INIT_PARAM_DATA_MIN_PORT
"data-min-port".- See Also:
- Constant Field Values
-
INIT_PARAM_DATA_MAX_PORT
public static final String INIT_PARAM_DATA_MAX_PORT
"data-max-port".- See Also:
- Constant Field Values
-
INIT_PARAM_SYSTEM
public static final String INIT_PARAM_SYSTEM
"system".- See Also:
- Constant Field Values
-
INIT_PARAM_CLIENT_SIDE_ENCODING
public static final String INIT_PARAM_CLIENT_SIDE_ENCODING
"client-side-encoding".- See Also:
- Constant Field Values
-
INIT_PARAM_DEF_FOLDER_NODE_TYPE
public static final String INIT_PARAM_DEF_FOLDER_NODE_TYPE
"def-folder-node-type".- See Also:
- Constant Field Values
-
INIT_PARAM_DEF_FILE_NODE_TYPE
public static final String INIT_PARAM_DEF_FILE_NODE_TYPE
"def-file-node-type".- See Also:
- Constant Field Values
-
INIT_PARAM_DEF_FILE_MIME_TYPE
public static final String INIT_PARAM_DEF_FILE_MIME_TYPE
"def-file-mime-type".- See Also:
- Constant Field Values
-
INIT_PARAM_CACHE_FOLDER_NAME
public static final String INIT_PARAM_CACHE_FOLDER_NAME
"cache-folder-name".- See Also:
- Constant Field Values
-
INIT_PARAM_UPLOAD_SPEED_LIMIT
public static final String INIT_PARAM_UPLOAD_SPEED_LIMIT
"upload-speed-limit".- See Also:
- Constant Field Values
-
INIT_PARAM_DOWNLOAD_SPEED_LIMIT
public static final String INIT_PARAM_DOWNLOAD_SPEED_LIMIT
"download-speed-limit".- See Also:
- Constant Field Values
-
INIT_PARAM_REPLACE_FORBIDDEN_CHARS
public static final String INIT_PARAM_REPLACE_FORBIDDEN_CHARS
replace-forbidden-chars- See Also:
- Constant Field Values
-
INIT_PARAM_FORBIDDEN_CHARS
public static final String INIT_PARAM_FORBIDDEN_CHARS
forbidden-chars- See Also:
- Constant Field Values
-
INIT_PARAM_REPLACE_CHAR
public static final String INIT_PARAM_REPLACE_CHAR
replace-char- See Also:
- Constant Field Values
-
INIT_PARAM_TIME_OUT
public static final String INIT_PARAM_TIME_OUT
"timeout".- See Also:
- Constant Field Values
-
DEFAULT_JCR_FORBIDDEN_CHARS
public static final String DEFAULT_JCR_FORBIDDEN_CHARS
According JCR specification JSR-170 . See 4.6 Path Syntax: Any Unicode character except: '/', ':', '[', ']', '*', '|'- See Also:
- Constant Field Values
-
DEFAULT_REPLACE_CHAR
public static final char DEFAULT_REPLACE_CHAR
The all forbidden chars will replaced '_' by default.- See Also:
- Constant Field Values
-
DEFAULT_REPLACE_FORBIDDEN_CHARS
public static final boolean DEFAULT_REPLACE_FORBIDDEN_CHARS
The replace forbidden chars is enable by default.- See Also:
- Constant Field Values
-
_forbiddenChars
public String _forbiddenChars
Forbidden chars.
-
_replaceChar
public char _replaceChar
Replace char.
-
_replaceForbiddenChars
public boolean _replaceForbiddenChars
Replace forbidden chars.
-
ENABLE_TRACE
protected boolean ENABLE_TRACE
Is enable trace.
-
_portalContainer
protected org.exoplatform.container.PortalContainer _portalContainer
Portal Container.
-
-
Method Detail
-
getCommandPort
public int getCommandPort()
- Specified by:
getCommandPortin interfaceFtpConfig
-
getDataMinPort
public int getDataMinPort()
- Specified by:
getDataMinPortin interfaceFtpConfig
-
getDataMaxPort
public int getDataMaxPort()
- Specified by:
getDataMaxPortin interfaceFtpConfig
-
getSystemType
public String getSystemType()
- Specified by:
getSystemTypein interfaceFtpConfig
-
getClientSideEncoding
public String getClientSideEncoding()
- Specified by:
getClientSideEncodingin interfaceFtpConfig
-
getDefFolderNodeType
public String getDefFolderNodeType()
- Specified by:
getDefFolderNodeTypein interfaceFtpConfig
-
getDefFileNodeType
public String getDefFileNodeType()
- Specified by:
getDefFileNodeTypein interfaceFtpConfig
-
getDefFileMimeType
public String getDefFileMimeType()
- Specified by:
getDefFileMimeTypein interfaceFtpConfig
-
getCacheFolderName
public String getCacheFolderName()
- Specified by:
getCacheFolderNamein interfaceFtpConfig
-
isNeedSlowUpLoad
public boolean isNeedSlowUpLoad()
- Specified by:
isNeedSlowUpLoadin interfaceFtpConfig
-
getUpLoadSpeed
public int getUpLoadSpeed()
- Specified by:
getUpLoadSpeedin interfaceFtpConfig
-
isNeedSlowDownLoad
public boolean isNeedSlowDownLoad()
- Specified by:
isNeedSlowDownLoadin interfaceFtpConfig
-
getDownLoadSpeed
public int getDownLoadSpeed()
- Specified by:
getDownLoadSpeedin interfaceFtpConfig
-
isNeedTimeOut
public boolean isNeedTimeOut()
- Specified by:
isNeedTimeOutin interfaceFtpConfig
-
getTimeOut
public int getTimeOut()
- Specified by:
getTimeOutin interfaceFtpConfig
-
getPortalContainer
public org.exoplatform.container.PortalContainer getPortalContainer()
- Specified by:
getPortalContainerin interfaceFtpConfig
-
getForbiddenChars
public String getForbiddenChars()
- Specified by:
getForbiddenCharsin interfaceFtpConfig
-
getReplaceChar
public char getReplaceChar()
- Specified by:
getReplaceCharin interfaceFtpConfig
-
isReplaceForbiddenChars
public boolean isReplaceForbiddenChars()
- Specified by:
isReplaceForbiddenCharsin interfaceFtpConfig
-
-