* @param InitParams
*/
public FtpConfigImpl(ExoContainerContext context, InitParams params)
{
ValueParam pCommandPort = params.getValueParam(INIT_PARAM_COMMAND_PORT);
if (pCommandPort != null)
{
_commandPort = new Integer(pCommandPort.getValue());
}
ValueParam pDataMinPort = params.getValueParam(INIT_PARAM_DATA_MIN_PORT);
if (pDataMinPort != null)
{
_dataMinPort = new Integer(pDataMinPort.getValue());
}
ValueParam pDataMaxPort = params.getValueParam(INIT_PARAM_DATA_MAX_PORT);
if (pDataMaxPort != null)
{
_dataMaxPort = new Integer(pDataMaxPort.getValue());
}
ValueParam pSystem = params.getValueParam(INIT_PARAM_SYSTEM);
if (pSystem != null)
{
_system = pSystem.getValue();
}
ValueParam pClientSideEncoding = params.getValueParam(INIT_PARAM_CLIENT_SIDE_ENCODING);
if (pClientSideEncoding != null)
{
_clientSideEncoding = pClientSideEncoding.getValue();
}
ValueParam pFolderNodeType = params.getValueParam(INIT_PARAM_DEF_FOLDER_NODE_TYPE);
if (pFolderNodeType != null)
{
_defFolderNodeType = pFolderNodeType.getValue();
}
ValueParam pFileNodeType = params.getValueParam(INIT_PARAM_DEF_FILE_NODE_TYPE);
if (pFileNodeType != null)
{
_defFileNodeType = pFileNodeType.getValue();
}
ValueParam pFileMimeType = params.getValueParam(INIT_PARAM_DEF_FILE_MIME_TYPE);
if (pFileMimeType != null)
{
_defFileMimeType = pFileMimeType.getValue();
}
ValueParam pCacheFolderName = params.getValueParam(INIT_PARAM_CACHE_FOLDER_NAME);
if (pCacheFolderName != null)
{
_cacheFolderName = pCacheFolderName.getValue();
}
ValueParam pSlowUpLoad = params.getValueParam(INIT_PARAM_UPLOAD_SPEED_LIMIT);
if (pSlowUpLoad != null)
{
_needSlowUpLoad = true;
_upLoadSpeed = new Integer(pSlowUpLoad.getValue());
}
ValueParam pSlowDownLoad = params.getValueParam(INIT_PARAM_DOWNLOAD_SPEED_LIMIT);
if (pSlowDownLoad != null)
{
_needSlowDownLoad = true;
_downLoadSpeed = new Integer(pSlowDownLoad.getValue());
}
ValueParam pTimeOut = params.getValueParam(INIT_PARAM_TIME_OUT);
if (pTimeOut != null)
{
_needTimeOut = true;
_timeOutValue = new Integer(pTimeOut.getValue());
}
ValueParam pReplaceForbiddenChars = params.getValueParam(INIT_PARAM_REPLACE_FORBIDDEN_CHARS);
if (pReplaceForbiddenChars != null)
{
_replaceForbiddenChars = new Boolean(pReplaceForbiddenChars.getValue());
}
ValueParam pForbiddenChars = params.getValueParam(INIT_PARAM_FORBIDDEN_CHARS);
if (pForbiddenChars != null)
{
_forbiddenChars = pForbiddenChars.getValue();
}
ValueParam pReplaceChar = params.getValueParam(INIT_PARAM_REPLACE_CHAR);
if (pReplaceChar != null)
{
_replaceChar = pReplaceChar.getValue().charAt(0);
}
ExoContainer container = context.getContainer();
if (container instanceof PortalContainer)
{