
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, 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, getBaseDirectory, getBlocksize, getClientThread, getDataBusinessHandler, getDataTimeoutCon, getDelayLimit, getFileParameter, getFileProperty, getFtpInternalConfiguration, getFtpSession, getFtpSessionNoRemove, getIntProperty, getLock, getMaxGlobalMemory, getProperty, getServerAddress, getServerChannelReadLimit, getServerChannelWriteLimit, getServerGlobalReadLimit, getServerGlobalWriteLimit, getServerPort, getServerThread, getShutdownConfiguration, getStringProperty, getTimeoutCon, getUniqueExtension, hasFtpSession, isDeleteOnAbort, isShutdown, serverStartup, setBaseDirectory, setBlocksize, setClientThread, setDataTimeoutCon, setDeleteOnAbort, setFileProperty, setIntProperty, setMaxGlobalMemory, setNewFtpSession, setPassword, setProperty, setServerAddress, setServerPort, setServerThread, setShutdown, setStringProperty, setTimeoutConpublic 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 boolean loadSsl()
public boolean setConfigurationServerFromXml(String filename)
filename - public void configureHttps()
public void configureConstraint()
public void configureLExec()
public void configureSnmp()
throws FtpNoConnectionException
FtpNoConnectionExceptionpublic void setSERVERKEY(byte[] serverkey)
serverkey - the SERVERADMINKEY to setpublic boolean checkPassword(String password)
checkPassword in class FtpConfigurationpassword - public 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 boolean saveAuthenticationFile(String filename)
filename - the filename where the authentication will be
exportedpublic SimpleAuth getSimpleAuth(String user)
user - public String getHtmlAuth(String format)
format - Format in HTML to use as ouput formatpublic String getHtmlTransfer(String format, int limit)
format - Format in HTML to use as ouput formatlimit - number of TransferLog to populatepublic int getNextRangePort()
FtpConfigurationgetNextRangePort in class FtpConfigurationFtpConfiguration.getNextRangePort()public io.netty.util.concurrent.EventExecutorGroup getHttpPipelineExecutor()
public io.netty.channel.group.ChannelGroup getHttpChannelGroup()
public void releaseResources()
FtpConfigurationreleaseResources in class FtpConfigurationpublic void inShutdownProcess()
FtpConfigurationinShutdownProcess in class FtpConfigurationpublic String getAuthenticationFile()
public void setAuthenticationFile(String authenticationFile)
authenticationFile - the authenticationFile to setpublic String getHttpBasePath()
public void setHttpBasePath(String httpBasePath)
httpBasePath - the httpBasePath to setpublic boolean isUseHttpCompression()
public void setUseHttpCompression(boolean useHttpCompression)
useHttpCompression - the useHttpCompression to setpublic boolean isUseLocalExec()
public void setUseLocalExec(boolean useLocalExec)
useLocalExec - the useLocalExec to setpublic Des getCryptoKey()
public void setCryptoKey(Des cryptoKey)
cryptoKey - the cryptoKey to setpublic String getHostId()
public void setHostId(String hostId)
hostId - the hostId to setpublic String getAdminName()
public void setAdminName(String adminName)
adminName - the adminName to setpublic FtpConstraintLimitHandler getConstraintLimitHandler()
public void setConstraintLimitHandler(FtpConstraintLimitHandler constraintLimitHandler)
constraintLimitHandler - the constraintLimitHandler to setpublic String getSnmpConfig()
public void setSnmpConfig(String snmpConfig)
snmpConfig - the snmpConfig to setpublic WaarpSnmpAgent getAgentSnmp()
public void setAgentSnmp(WaarpSnmpAgent agentSnmp)
agentSnmp - the agentSnmp to setpublic FtpPrivateMib getFtpMib()
public void setFtpMib(FtpPrivateMib ftpMib)
ftpMib - the ftpMib to setpublic FtpMonitoring getMonitoring()
public void setMonitoring(FtpMonitoring monitoring)
monitoring - the monitoring to setCopyright © 2009–2020 Waarp. All rights reserved.