JMX Documentation
 
Mbeans (English)
 
  FtpServer
Mbeans (French)
 
  FtpServer
 
  Built with Apache Forrest logo Financial help logo
 
Designed for Firefox logo Java.net member logo
 


PDF 

FtpServerMBean documentation



Bean Description  > List of attributes  > List of operations  > Attributes declaration  > Operations declaration 

Bean Description

Description : Server management

Type : net.sbbi.jafs.config.FtpServer

Domain : servers

ClassName : net.sbbi.jafs.management.FtpServerMBean

List of attributes

activeDownRangePortactiveSessionsCountactiveUpRangePortauthenticationRealmclosedMessagedisclamerMessageloginMessagelogoutMessagemaxSessionsNumbermaxSessionsNumberPerIPnetworkInterfaceopenpasvpasvAllowFXPpasvDownRangePortpasvNATMappingsOnTheFlypasvUpRangePortpendingChangesreverseLookupserverFirewallPortserverPortserverRootsocketConnectTimeoutSSLCertsConfNameSSLDefaultProtSSLNeedCertSSLServertimeOutNotIdentifiedWANAccesswarnClientsDuringShutdown

List of operations

applyChangeschangePortsRangechangeServerPortcloseServercloseServerMsgdeleteFileSystemEntrygetAvailableCiphersgetAvailableCommandsgetConfiguredCiphersgetConfiguredCommandsgetConfiguredIPBlackListParsersgetFileSystemEntriesgetIPBlackListParsersgetUsersmanageBlackListmanageCiphermanageCommandmanageCommandSettingmanageFileSystemEntrymanageUsermanageUserBindToFileSystemopenServerstop

Attributes declaration

pendingChanges

DescriptionFlag to indicate if some changes currently require a call to the "applyChanges" operation to be validated

Typeboolean

Writeablefalse

open

DescriptionTells if server is open

Typejava.lang.Boolean

Writeablefalse

serverPort

DescriptionThe server listening port

Typejava.lang.Integer

Writeablefalse

serverFirewallPort

DescriptionThe server port on the firewall

Typejava.lang.Integer

Writeablefalse

reverseLookup

DescriptionSearch the computer name of connecting clients

Typejava.lang.Boolean

Writeabletrue

timeOutNotIdentified

DescriptionThe connection timeout for non identified clients sessions in seconds

Typeint

Writeabletrue

maxSessionsNumber

DescriptionThe maximum number of session on this server

Typeint

Writeabletrue

maxSessionsNumberPerIP

DescriptionThe maxmimum number of session per IP address

Typeint

Writeabletrue

warnClientsDuringShutdown

DescriptionWarn connected clients that their transferts is stopping due to server shutdown

Typejava.lang.Boolean

Writeabletrue

activeSessionsCount

DescriptionThe number of active sessions on the server

Typeint

Writeablefalse

SSLNeedCert

DescriptionFlag to require a signed certificate for every SSL/TLS connection on the server

Typejava.lang.Boolean

Writeabletrue

SSLCertsConfName

DescriptionThis let you define what server certificate/CA allowed certs/CRL check config entry name defined in the service configuration file must be used with the server. A null value will take the first config entry

Typejava.lang.String

Writeabletrue

SSLDefaultProt

DescriptionThis is the default protocol type that will be used for new encrypted connections on an implicit server, the values depends of your JRE but usually SSL or TLS works

Typejava.lang.String

Writeabletrue

SSLServer

DescriptionSetting to define if the server only accepts incoming secure sockets (true) or not (false)

Typejava.lang.Boolean

Writeabletrue

authenticationRealm

DescriptionThe server JAAS authentication module, the value must correspond to a defined JAAS configuration entry

Typejava.lang.String

Writeabletrue

disclamerMessage

DescriptionThe disclamer message returned to client after an authentification, use \n for line breaks

Typejava.lang.String

Writeabletrue

loginMessage

DescriptionThe first message returned to clients, use \n for line breaks

Typejava.lang.String

Writeabletrue

logoutMessage

DescriptionThe logout message, use \n for line breaks

Typejava.lang.String

Writeabletrue

networkInterface

DescriptionThe server network interface identifier, WARNING : you must call the "applyChanges" operation to validate the change.

Typejava.lang.String

Writeabletrue

closedMessage

DescriptionThe message returned to clients when the server is closed, use \n for line breaks

Typejava.lang.String

Writeabletrue

serverRoot

DescriptionThe server root, WARNING : you must call the "applyChanges" operation to validate the change.

Typejava.lang.String

Writeabletrue

WANAccess

DescriptionAllow clients coming from the WAN (internet) to have access on the server

Typejava.lang.Boolean

Writeabletrue

pasv

DescriptionAllows or not PASV command use for clients, WARNING : you must call the "applyChanges" operation to validate the change.

Typejava.lang.Boolean

Writeabletrue

pasvAllowFXP

DescriptionAllows FXP transferts, setting this to true can create potential security issues in PASV mode.

Typejava.lang.Boolean

Writeabletrue

socketConnectTimeout

DescriptionThe timeout for a client in seconds to create the data connection.

Typeint

Writeabletrue

pasvNATMappingsOnTheFly

DescriptionWhen set to true, if a NAT mapper is defined in the network interface used by the server, the ports will be open on the router after a PASV command, if set to false all ports in the passive ports range will be opened during server startup, WARNING : you must call the "applyChanges" operation to validate the change.

Typejava.lang.Boolean

Writeabletrue

pasvUpRangePort

DescriptionPassive mode available ports stop range

Typeint

Writeablefalse

pasvDownRangePort

DescriptionPassive mode available ports start range

Typeint

Writeablefalse

activeUpRangePort

DescriptionActive mode available source ports stop range

Typejava.lang.Integer

Writeablefalse

activeDownRangePort

DescriptionActive mode available source ports start range

Typejava.lang.Integer

Writeablefalse

Operations declaration

applyChanges

DescriptionThis operation validates all changes who needs a server restart.

Return typevoid

ImpactACTION

changePortsRange

DescriptionChange the passive and active mode available ports range, WARNING : you must call the "applyChanges" operation to validate the change.

Return typevoid

ImpactACTION

Parameters
pasvDownRangetype: intThe new passive mode available ports start range
pasvUpRangetype: intThe new passive mode available ports stop range
activeDownRangetype: intThe new active mode available source ports start range, 0 for a free source port
activeUpRangetype: intThe new active mode available source ports stop range, 0 for a free source port

changeServerPort

DescriptionChanges the server listening port during runtime.

Return typevoid

ImpactACTION

Parameters
porttype: intThe new server listening port
firewallPorttype: intThe server firewall/router port that will be mapped to the server port, only used if UPNP is enabled

closeServer

DescriptionCloses the server

Return typevoid

ImpactACTION

closeServerMsg

DescriptionCloses the server with a given message

Return typevoid

ImpactACTION

Parameters
messagetype: java.lang.StringThe closed message
closeSessionstype: java.lang.BooleanA boolean value to close active sessions (true) or not (false)

deleteFileSystemEntry

DescriptionDeletes a server file system configuration entry, return true if the config entry is removed, false otherwise

Return typeboolean

ImpactACTION

Parameters
entryIdtype: java.lang.StringThe id of the master configuration entry
pathtype: java.lang.StringThe path of the config entry to be removed from the master configuration entry, insert an empty value if you want to delete the whole master configuration entry

getAvailableCiphers

DescriptionReturns a list of available ciphers for SSL or TLS sockets on the server.

Return typejava.lang.String[]

ImpactINFO

getAvailableCommands

DescriptionLists all the available FTP commands or features class names.

Return typejava.lang.String[]

ImpactINFO

Parameters
typetype: java.lang.StringThe FTP commands type, C for basic FTP commands, F for features.

getConfiguredCiphers

DescriptionLists the configured SSL/TLS ciphers on the server

Return typejava.lang.String[]

ImpactINFO

getConfiguredCommands

DescriptionLists all the installed FTP commands or features names on the server.

Return typenet.sbbi.jafs.config.CommandConfig[]

ImpactINFO

Parameters
typetype: java.lang.StringThe FTP commands type, C for basic FTP commands, F for features.

getConfiguredIPBlackListParsers

DescriptionReturns a list of all the configured IP blacklist parser entries on the server.

Return typenet.sbbi.jafs.config.BlackListConfig[]

ImpactINFO

getFileSystemEntries

DescriptionRetreive the server file system configuration entries

Return typenet.sbbi.jafs.config.FileSystemRights[]

ImpactINFO

getIPBlackListParsers

DescriptionLists all the available IP block lists parsers class names.

Return typejava.lang.String[]

ImpactINFO

getUsers

DescriptionRetreive the server user config entries

Return typenet.sbbi.jafs.config.User[]

ImpactINFO

manageBlackList

DescriptionIP block lists management

Return typeboolean

ImpactACTION

Parameters
operationtype: java.lang.StringThe operation type, A to add, D to delete, U to update the entry
nametype: java.lang.StringThe IP blocklist configuration entry name
locationtype: java.lang.StringThe location of the list as an URL
parserClassNametype: java.lang.StringThe list parser class name (can be retreived via the getIPBlackListParsers method)
rescantimetype: java.lang.IntegerThe list rescan time in hours

manageCipher

DescriptionAdds a SSL/TLS cipher to the allowed server list.

Return typeboolean

ImpactACTION

Parameters
operationTypetype: java.lang.StringThe operation type, A to add and D to delete.
cipherNametype: java.lang.StringThe cipher name to add, I.E SSL_RSA_WITH_RC4_128_MD5. Use the listCiphers operation to retreive the names of available ciphers for the JRE.

manageCommand

DescriptionThis operation allows you to add/remove/update FTP commands or features implementations, WARNING : you must call the "applyChanges" operation to validate the change.

Return typeboolean

ImpactACTION

Parameters
operationtype: java.lang.StringThe operation type, A to add, D to delete, U to update.
typetype: java.lang.StringThe command type, C for a generic FTP command, F for an FTP feature.
commandNametype: java.lang.StringThe FTP protocol command name (ABOR,RETR,PORT...), this is the name that will be used by FTP clients to communicate with the server.
classNametype: java.lang.StringThe command class name, implementing the net.sbbi.jafs.commands.CommandInterface interface for a generic FTP command or the net.sbbi.jafs.commands.FeatCommandInterface interface. A list of available class names can be obtained with the "listAvailableCommands" operation.
locationtype: java.lang.StringThe java binaries location (http://www.myhost.com/myCode.jar), provide a null value if the binaries are in the local classpath.

manageCommandSetting

DescriptionThis operation allows you to add/remove/update FTP commands or features implementations settings, WARNING : you must call the "applyChanges" operation to validate the change.

Return typeboolean

ImpactACTION

Parameters
operationtype: java.lang.StringThe operation type, A to add, D to delete, U to update.
typetype: java.lang.StringThe command type, C for a generic FTP command, F for an FTP feature.
commandNametype: java.lang.StringThe FTP protocol command name (ABOR,RETR,PORT...), this is the name that will be used by FTP clients to communicate with the server.
settingNametype: java.lang.StringThe setting name.
settingValuetype: java.lang.StringThe setting value.

manageFileSystemEntry

DescriptionAdds or modify a file system configuration entry

Return typevoid

ImpactACTION

Parameters
entryIdtype: java.lang.StringThe entry identifier
readFiletype: booleanRights to read a file
overwriteFiletype: booleanRights to overwrite an existing file
deleteFiletype: booleanRights to delete a file
renameFiletype: booleanRights to rename a file
ratioDisabledtype: booleanDisable the ratio for files download even if the user account has ratio set on.
createFiletype: booleanRights to create a file
hiddenFiletype: booleanRights to access hidden file
deleteDirectorytype: booleanRights to delete a directory
createDirectorytype: booleanRights to create a directory
renameDirectorytype: booleanRights to rename a directory
listDirectoryContenttype: booleanRights to list the directory content
pathtype: java.lang.StringThe path on the server where the rights should be applied I.E : /mydir , /, /mydir/myfile.txt, note that the path does not include the server root path ( I.E /var/ftp/pub )
fileTypetype: java.lang.StringThe type of files extensions allowed to be uploaded in the defined path, delimited by commas I.E txt,jpeg,mp3. Insert an empty value to allow all type of files.

manageUser

DescriptionManage server users

Return typeboolean

ImpactACTION

Parameters
operationTypetype: java.lang.StringThe operation type, A to add, D to delete( provide the username ), U to update user settings, return true or false according to operation success
userNametype: java.lang.StringThe user name ( can be a regular expression ) for this user config entry.
ipAddresstype: java.lang.StringThe IP address ( 201.0 , 201.0.0.1 ... ) for user access restriction, emtpy value for no restrictions
accounttype: java.lang.BooleanDefines if this user has an account or not, if set to true, the byte credits will be assigned to the user name, if set to false, it will be assigned to the client IP.
maxConnectionsNumbertype: intThe maximum number of connections allowed for this user, -1 for infinite value.
timeouttype: intThe connection timeout in seconds
maxUploadRatetype: intThe user maximum allowed upload rate in KByte/s, -1 for an unlimited value
maxDownloadRatetype: intThe user maximum allowed download rate in KByte/s, -1 for an unlimited value
isRatiotype: java.lang.BooleanEnables or not the byte credits use for file downloads.
ratioScaletype: intThe amount ratio of bytes given when ratio enabled, 2 mean that for each byte uploaded 2 bytes will be given for download.
baseCreditstype: longThe base credits amount ( in bytes ) available to the user the first time it connects
homeDirtype: java.lang.StringThe user home directory, set this with a path if you do not want to give access to the server root for the given user. You can use the $USERHOME and $UNRE:$regexp:$UNRE keywords to evaluate the path with the provided session user name.
secureControlTransporttype: java.lang.StringProvide "true" if the user require a secure control connection, "false" if secure control connection is forbidden, null or "" value for ftp session choice.
secureDataTransporttype: java.lang.StringProvide "true" if the user require a secure data connection, "false" if secure data connection is forbidden, null or "" value for ftp session choice.

manageUserBindToFileSystem

DescriptionBinds or unbind a user to a file system configuration entry

Return typeboolean

ImpactACTION

Parameters
operationtype: java.lang.StringThe operation type, A to add a bind, D to delete it
userNametype: java.lang.StringThe username ( can be a regular expression ) to bind or to unbind
entryIdtype: java.lang.StringThe file system configuration entry id

openServer

DescriptionOpens the server

Return typevoid

ImpactACTION

stop

DescriptionStops the server and removes it from the administration console

Return typevoid

ImpactACTION


 

Copyright © 2005 SuperBonBon Industries. All rights reserved.
Unless otherwise expressly noted, the contents of these pages are licensed under the Creative Commons - Attribution / Share Alike license.