eXo JCR :: Component :: FTP Service 1.15.7-GA

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 Object
implements FtpConfig

Created by The eXo Platform SAS Author : Vitaly Guly .

Version:
$Id: $

Field Summary
 String _forbiddenChars
          Forbidden chars.
protected  org.exoplatform.container.PortalContainer _portalContainer
          Portal Container.
 char _replaceChar
          Replace char.
 boolean _replaceForbiddenChars
          Replace forbidden chars.
static 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 String INIT_PARAM_CACHE_FOLDER_NAME
          "cache-folder-name".
static String INIT_PARAM_CLIENT_SIDE_ENCODING
          "client-side-encoding".
static String INIT_PARAM_COMMAND_PORT
          "command-port".
static String INIT_PARAM_DATA_MAX_PORT
          "data-max-port".
static String INIT_PARAM_DATA_MIN_PORT
          "data-min-port".
static String INIT_PARAM_DEF_FILE_MIME_TYPE
          "def-file-mime-type".
static String INIT_PARAM_DEF_FILE_NODE_TYPE
          "def-file-node-type".
static String INIT_PARAM_DEF_FOLDER_NODE_TYPE
          "def-folder-node-type".
static String INIT_PARAM_DOWNLOAD_SPEED_LIMIT
          "download-speed-limit".
static String INIT_PARAM_FORBIDDEN_CHARS
          forbidden-chars
static String INIT_PARAM_REPLACE_CHAR
          replace-char
static String INIT_PARAM_REPLACE_FORBIDDEN_CHARS
          replace-forbidden-chars
static String INIT_PARAM_SYSTEM
          "system".
static String INIT_PARAM_TIME_OUT
          "timeout".
static String INIT_PARAM_UPLOAD_SPEED_LIMIT
          "upload-speed-limit".
 
Constructor Summary
FtpConfigImpl(org.exoplatform.container.ExoContainerContext context, org.exoplatform.container.xml.InitParams params)
          Constructor.
 
Method Summary
 String getCacheFolderName()
           
 String getClientSideEncoding()
           
 int getCommandPort()
           
 int getDataMaxPort()
           
 int getDataMinPort()
           
 String getDefFileMimeType()
           
 String getDefFileNodeType()
           
 String getDefFolderNodeType()
           
 int getDownLoadSpeed()
           
 String getForbiddenChars()
           
 org.exoplatform.container.PortalContainer getPortalContainer()
           
 char getReplaceChar()
           
 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 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.

Constructor Detail

FtpConfigImpl

public FtpConfigImpl(org.exoplatform.container.ExoContainerContext context,
                     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 String getSystemType()
Specified by:
getSystemType in interface FtpConfig

getClientSideEncoding

public String getClientSideEncoding()
Specified by:
getClientSideEncoding in interface FtpConfig

getDefFolderNodeType

public String getDefFolderNodeType()
Specified by:
getDefFolderNodeType in interface FtpConfig

getDefFileNodeType

public String getDefFileNodeType()
Specified by:
getDefFileNodeType in interface FtpConfig

getDefFileMimeType

public String getDefFileMimeType()
Specified by:
getDefFileMimeType in interface FtpConfig

getCacheFolderName

public 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

getPortalContainer

public org.exoplatform.container.PortalContainer getPortalContainer()
Specified by:
getPortalContainer in interface FtpConfig

getForbiddenChars

public 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

eXo JCR :: Component :: FTP Service 1.15.7-GA

Copyright © 2013 eXo Platform SAS. All Rights Reserved.