public class FileBasedConfiguration extends FtpConfiguration
Modifier and Type | Field and Description |
---|---|
static FileBasedConfiguration |
fileBasedConfiguration
Use to access directly the configuration
|
static String |
XML_DELAYRETRIEVE_COMMAND
DELAY RETRIEVE COMMAND
|
static String |
XML_DELAYSTORE_COMMAND
DELAY STORE COMMAND
|
static String |
XML_RETRIEVE_COMMAND
RETRIEVE COMMAND
|
static String |
XML_STORE_COMMAND
STORE COMMAND
|
delayLimit, FTP_SESSION_ATTRIBUTE_KEY, FTP_SESSION_ATTRIBUTE_KEY_NAME, ftpConfiguration, serverChannelReadLimit, serverChannelWriteLimit, serverGlobalReadLimit, serverGlobalWriteLimit
Constructor and Description |
---|
FileBasedConfiguration(Class<?> classtype,
Class<? extends BusinessHandler> businessHandler,
Class<? extends DataBusinessHandler> dataBusinessHandler,
FileParameterInterface fileParameter) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkPassword(String password)
Check the password for Shutdown
|
void |
configureConstraint()
Configure ConstraintLimitHandler
|
void |
configureHttps()
Configure HTTPS
|
void |
configureLExec()
Configure LocalExec
|
void |
configureSnmp()
Configure the SNMP support if needed
|
String |
getAdminName() |
WaarpSnmpAgent |
getAgentSnmp() |
String |
getAuthenticationFile() |
FtpConstraintLimitHandler |
getConstraintLimitHandler() |
Des |
getCryptoKey() |
FtpPrivateMib |
getFtpMib() |
String |
getHostId() |
String |
getHtmlAuth(String format) |
String |
getHtmlTransfer(String format,
int limit)
Only available with Database support for Waarp
|
String |
getHttpBasePath() |
io.netty.channel.group.ChannelGroup |
getHttpChannelGroup() |
io.netty.util.concurrent.EventExecutorGroup |
getHttpPipelineExecutor() |
FtpMonitoring |
getMonitoring() |
int |
getNextRangePort()
Return the next available port for passive connections.
|
SimpleAuth |
getSimpleAuth(String user) |
String |
getSnmpConfig() |
boolean |
initializeAuthent(String filename,
boolean purge)
Initialize Authentication from current authenticationFile
|
void |
inShutdownProcess()
Shutdown process is on going
|
boolean |
isUseHttpCompression() |
boolean |
isUseLocalExec() |
protected boolean |
loadSsl() |
void |
releaseResources()
To use if any external resources are to be released when shutting down
|
boolean |
saveAuthenticationFile(String filename)
Export the Authentication to the original files
|
void |
setAdminName(String adminName) |
void |
setAgentSnmp(WaarpSnmpAgent agentSnmp) |
void |
setAuthenticationFile(String authenticationFile) |
boolean |
setConfigurationServerFromXml(String filename)
Initiate the configuration from the xml file for server
|
void |
setConstraintLimitHandler(FtpConstraintLimitHandler constraintLimitHandler) |
void |
setCryptoKey(Des cryptoKey) |
void |
setFtpMib(FtpPrivateMib ftpMib) |
void |
setHostId(String hostId) |
void |
setHttpBasePath(String httpBasePath) |
void |
setMonitoring(FtpMonitoring monitoring) |
void |
setSERVERKEY(byte[] serverkey) |
void |
setSnmpConfig(String snmpConfig) |
void |
setUseHttpCompression(boolean useHttpCompression) |
void |
setUseLocalExec(boolean useLocalExec) |
bindLock, bindUnlock, changeNetworkLimit, computeNbThreads, delFtpSession, getActivePassiveMode, getBaseDirectory, getBlocksize, getClientThread, getDataBusinessHandler, getDataTimeoutCon, getDelayLimit, getFileParameter, getFileProperty, getFtpInternalConfiguration, getFtpSession, getIntProperty, getMaxGlobalMemory, getProperty, getServerAddress, getServerChannelReadLimit, getServerChannelWriteLimit, getServerGlobalReadLimit, getServerGlobalWriteLimit, getServerPort, getServerThread, getShutdownConfiguration, getStringProperty, getTimeoutCon, getUniqueExtension, isDeleteOnAbort, isShutdown, serverStartup, setActivePassiveMode, setBaseDirectory, setBlocksize, setClientThread, setDataTimeoutCon, setDeleteOnAbort, setFileProperty, setIntProperty, setMaxGlobalMemory, setNewFtpSession, setPassword, setProperty, setServerAddress, setServerPort, setServerThread, setShutdown, setStringProperty, setTimeoutCon
public static final String XML_RETRIEVE_COMMAND
public static final String XML_STORE_COMMAND
public static final String XML_DELAYRETRIEVE_COMMAND
public static final String XML_DELAYSTORE_COMMAND
public static FileBasedConfiguration fileBasedConfiguration
public FileBasedConfiguration(Class<?> classtype, Class<? extends BusinessHandler> businessHandler, Class<? extends DataBusinessHandler> dataBusinessHandler, FileParameterInterface fileParameter)
classtype
- businessHandler
- class that will be used for
BusinessHandlerdataBusinessHandler
- class that will be used for
DataBusinessHandlerfileParameter
- the FileParameter to useprotected final boolean loadSsl()
public final boolean setConfigurationServerFromXml(String filename)
filename
- public final void configureHttps()
public final void configureConstraint()
public final void configureLExec()
public final void configureSnmp() throws FtpNoConnectionException
FtpNoConnectionException
public final void setSERVERKEY(byte[] serverkey)
serverkey
- the SERVERADMINKEY to setpublic final boolean checkPassword(String password)
checkPassword
in class FtpConfiguration
password
- public final boolean initializeAuthent(String filename, boolean purge)
filename
- the filename from which authentication will be
loadedpurge
- if True, the current authentications are totally
replaced
by the new onespublic final boolean saveAuthenticationFile(String filename)
filename
- the filename where the authentication will be
exportedpublic final SimpleAuth getSimpleAuth(String user)
user
- public final String getHtmlAuth(String format)
format
- Format in HTML to use as ouput formatpublic final String getHtmlTransfer(String format, int limit)
format
- Format in HTML to use as ouput formatlimit
- number of TransferLog to populatepublic final int getNextRangePort()
FtpConfiguration
getNextRangePort
in class FtpConfiguration
FtpConfiguration.getNextRangePort()
public final io.netty.util.concurrent.EventExecutorGroup getHttpPipelineExecutor()
public final io.netty.channel.group.ChannelGroup getHttpChannelGroup()
public final void releaseResources()
FtpConfiguration
releaseResources
in class FtpConfiguration
public final void inShutdownProcess()
FtpConfiguration
inShutdownProcess
in class FtpConfiguration
public final String getAuthenticationFile()
public final void setAuthenticationFile(String authenticationFile)
authenticationFile
- the authenticationFile to setpublic final String getHttpBasePath()
public final void setHttpBasePath(String httpBasePath)
httpBasePath
- the httpBasePath to setpublic final boolean isUseHttpCompression()
public final void setUseHttpCompression(boolean useHttpCompression)
useHttpCompression
- the useHttpCompression to setpublic final boolean isUseLocalExec()
public final void setUseLocalExec(boolean useLocalExec)
useLocalExec
- the useLocalExec to setpublic final Des getCryptoKey()
public final void setCryptoKey(Des cryptoKey)
cryptoKey
- the cryptoKey to setpublic final String getHostId()
public final void setHostId(String hostId)
hostId
- the hostId to setpublic final String getAdminName()
public final void setAdminName(String adminName)
adminName
- the adminName to setpublic final FtpConstraintLimitHandler getConstraintLimitHandler()
public final void setConstraintLimitHandler(FtpConstraintLimitHandler constraintLimitHandler)
constraintLimitHandler
- the constraintLimitHandler to setpublic final String getSnmpConfig()
public final void setSnmpConfig(String snmpConfig)
snmpConfig
- the snmpConfig to setpublic final WaarpSnmpAgent getAgentSnmp()
public final void setAgentSnmp(WaarpSnmpAgent agentSnmp)
agentSnmp
- the agentSnmp to setpublic final FtpPrivateMib getFtpMib()
public final void setFtpMib(FtpPrivateMib ftpMib)
ftpMib
- the ftpMib to setpublic final FtpMonitoring getMonitoring()
public final void setMonitoring(FtpMonitoring monitoring)
monitoring
- the monitoring to setCopyright © 2009–2022 Waarp. All rights reserved.