org.exoplatform.services.ftp.config
Class FtpConfigImpl

java.lang.Object
  extended by org.exoplatform.services.ftp.config.FtpConfigImpl
All Implemented Interfaces:
FtpConfig

public class FtpConfigImpl
extends java.lang.Object
implements FtpConfig

Created by The eXo Platform SAS Author : Vitaly Guly .

Version:
$Id: FtpConfigImpl.java 45993 2010-04-07 08:15:07Z rainf0x $

Field Summary
 java.lang.String _forbiddenChars
          Forbidden chars.
 char _replaceChar
          Replace char.
 boolean _replaceForbiddenChars
          Replace forbidden chars.
static java.lang.String DEFAULT_JCR_FORBIDDEN_CHARS
          According JCR specification JSR-170 .
static char DEFAULT_REPLACE_CHAR
          The all forbidden chars will replaced '_' by default.
static boolean DEFAULT_REPLACE_FORBIDDEN_CHARS
          The replace forbidden chars is enable by default.
protected  boolean ENABLE_TRACE
          Is enable trace.
static java.lang.String INIT_PARAM_CACHE_FOLDER_NAME
          "cache-folder-name".
static java.lang.String INIT_PARAM_CLIENT_SIDE_ENCODING
          "client-side-encoding".
static java.lang.String INIT_PARAM_COMMAND_PORT
          "command-port".
static java.lang.String INIT_PARAM_DATA_MAX_PORT
          "data-max-port".
static java.lang.String INIT_PARAM_DATA_MIN_PORT
          "data-min-port".
static java.lang.String INIT_PARAM_DEF_FILE_MIME_TYPE
          "def-file-mime-type".
static java.lang.String INIT_PARAM_DEF_FILE_NODE_TYPE
          "def-file-node-type".
static java.lang.String INIT_PARAM_DEF_FOLDER_NODE_TYPE
          "def-folder-node-type".
static java.lang.String INIT_PARAM_DOWNLOAD_SPEED_LIMIT
          "download-speed-limit".
static java.lang.String INIT_PARAM_FORBIDDEN_CHARS
          forbidden-chars
static java.lang.String INIT_PARAM_REPLACE_CHAR
          replace-char
static java.lang.String INIT_PARAM_REPLACE_FORBIDDEN_CHARS
          replace-forbidden-chars
static java.lang.String INIT_PARAM_SYSTEM
          "system".
static java.lang.String INIT_PARAM_TIME_OUT
          "timeout".
static java.lang.String INIT_PARAM_UPLOAD_SPEED_LIMIT
          "upload-speed-limit".
static java.lang.String PORTAL_CONTAINER_NAME
          Portal container name.
protected  java.lang.String portalContainerName
          Container name.
 
Constructor Summary
FtpConfigImpl(org.exoplatform.container.xml.InitParams params)
          Constructor.
 
Method Summary
 java.lang.String getCacheFolderName()
           
 java.lang.String getClientSideEncoding()
           
 int getCommandPort()
           
 int getDataMaxPort()
           
 int getDataMinPort()
           
 java.lang.String getDefFileMimeType()
           
 java.lang.String getDefFileNodeType()
           
 java.lang.String getDefFolderNodeType()
           
 int getDownLoadSpeed()
           
 java.lang.String getForbiddenChars()
           
 java.lang.String getPortalContainerName()
           
 char getReplaceChar()
           
 java.lang.String getSystemType()
           
 int getTimeOut()
           
 int getUpLoadSpeed()
           
 boolean isNeedSlowDownLoad()
           
 boolean isNeedSlowUpLoad()
           
 boolean isNeedTimeOut()
           
 boolean isReplaceForbiddenChars()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT_PARAM_COMMAND_PORT

public static final java.lang.String INIT_PARAM_COMMAND_PORT
"command-port".

See Also:
Constant Field Values

INIT_PARAM_DATA_MIN_PORT

public static final java.lang.String INIT_PARAM_DATA_MIN_PORT
"data-min-port".

See Also:
Constant Field Values

INIT_PARAM_DATA_MAX_PORT

public static final java.lang.String INIT_PARAM_DATA_MAX_PORT
"data-max-port".

See Also:
Constant Field Values

INIT_PARAM_SYSTEM

public static final java.lang.String INIT_PARAM_SYSTEM
"system".

See Also:
Constant Field Values

INIT_PARAM_CLIENT_SIDE_ENCODING

public static final java.lang.String INIT_PARAM_CLIENT_SIDE_ENCODING
"client-side-encoding".

See Also:
Constant Field Values

INIT_PARAM_DEF_FOLDER_NODE_TYPE

public static final java.lang.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 java.lang.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 java.lang.String INIT_PARAM_DEF_FILE_MIME_TYPE
"def-file-mime-type".

See Also:
Constant Field Values

INIT_PARAM_CACHE_FOLDER_NAME

public static final java.lang.String INIT_PARAM_CACHE_FOLDER_NAME
"cache-folder-name".

See Also:
Constant Field Values

INIT_PARAM_UPLOAD_SPEED_LIMIT

public static final java.lang.String INIT_PARAM_UPLOAD_SPEED_LIMIT
"upload-speed-limit".

See Also:
Constant Field Values

INIT_PARAM_DOWNLOAD_SPEED_LIMIT

public static final java.lang.String INIT_PARAM_DOWNLOAD_SPEED_LIMIT
"download-speed-limit".

See Also:
Constant Field Values

INIT_PARAM_REPLACE_FORBIDDEN_CHARS

public static final java.lang.String INIT_PARAM_REPLACE_FORBIDDEN_CHARS
replace-forbidden-chars

See Also:
Constant Field Values

INIT_PARAM_FORBIDDEN_CHARS

public static final java.lang.String INIT_PARAM_FORBIDDEN_CHARS
forbidden-chars

See Also:
Constant Field Values

INIT_PARAM_REPLACE_CHAR

public static final java.lang.String INIT_PARAM_REPLACE_CHAR
replace-char

See Also:
Constant Field Values

INIT_PARAM_TIME_OUT

public static final java.lang.String INIT_PARAM_TIME_OUT
"timeout".

See Also:
Constant Field Values

PORTAL_CONTAINER_NAME

public static final java.lang.String PORTAL_CONTAINER_NAME
Portal container name.

See Also:
Constant Field Values

DEFAULT_JCR_FORBIDDEN_CHARS

public static final java.lang.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 java.lang.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.


portalContainerName

protected java.lang.String portalContainerName
Container name.

Constructor Detail

FtpConfigImpl

public FtpConfigImpl(org.exoplatform.container.xml.InitParams params)
Constructor.

Parameters:
InitParams -
Method Detail

getCommandPort

public int getCommandPort()
Specified by:
getCommandPort in interface FtpConfig

getDataMinPort

public int getDataMinPort()
Specified by:
getDataMinPort in interface FtpConfig

getDataMaxPort

public int getDataMaxPort()
Specified by:
getDataMaxPort in interface FtpConfig

getSystemType

public java.lang.String getSystemType()
Specified by:
getSystemType in interface FtpConfig

getClientSideEncoding

public java.lang.String getClientSideEncoding()
Specified by:
getClientSideEncoding in interface FtpConfig

getDefFolderNodeType

public java.lang.String getDefFolderNodeType()
Specified by:
getDefFolderNodeType in interface FtpConfig

getDefFileNodeType

public java.lang.String getDefFileNodeType()
Specified by:
getDefFileNodeType in interface FtpConfig

getDefFileMimeType

public java.lang.String getDefFileMimeType()
Specified by:
getDefFileMimeType in interface FtpConfig

getCacheFolderName

public java.lang.String getCacheFolderName()
Specified by:
getCacheFolderName in interface FtpConfig

isNeedSlowUpLoad

public boolean isNeedSlowUpLoad()
Specified by:
isNeedSlowUpLoad in interface FtpConfig

getUpLoadSpeed

public int getUpLoadSpeed()
Specified by:
getUpLoadSpeed in interface FtpConfig

isNeedSlowDownLoad

public boolean isNeedSlowDownLoad()
Specified by:
isNeedSlowDownLoad in interface FtpConfig

getDownLoadSpeed

public int getDownLoadSpeed()
Specified by:
getDownLoadSpeed in interface FtpConfig

isNeedTimeOut

public boolean isNeedTimeOut()
Specified by:
isNeedTimeOut in interface FtpConfig

getTimeOut

public int getTimeOut()
Specified by:
getTimeOut in interface FtpConfig

getPortalContainerName

public java.lang.String getPortalContainerName()
Specified by:
getPortalContainerName in interface FtpConfig

getForbiddenChars

public java.lang.String getForbiddenChars()
Specified by:
getForbiddenChars in interface FtpConfig

getReplaceChar

public char getReplaceChar()
Specified by:
getReplaceChar in interface FtpConfig

isReplaceForbiddenChars

public boolean isReplaceForbiddenChars()
Specified by:
isReplaceForbiddenChars in interface FtpConfig


Copyright © 2011 eXo Platform SAS. All Rights Reserved.