- ABOR - Static variable in class org.mockftpserver.core.command.CommandNames
-
- ABOR_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- AborCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the ABOR command.
- AborCommandHandler() - Constructor for class org.mockftpserver.fake.command.AborCommandHandler
-
- AborCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the ABOR command.
- AborCommandHandler() - Constructor for class org.mockftpserver.stub.command.AborCommandHandler
-
Constructor.
- AbstractCommandHandler - Class in org.mockftpserver.core.command
-
The abstract superclass for CommandHandler classes.
- AbstractCommandHandler() - Constructor for class org.mockftpserver.core.command.AbstractCommandHandler
-
- AbstractFakeCommandHandler - Class in org.mockftpserver.fake.command
-
Abstract superclass for CommandHandler classes for the "Fake" server.
- AbstractFakeCommandHandler() - Constructor for class org.mockftpserver.fake.command.AbstractFakeCommandHandler
-
- AbstractFakeFileSystem - Class in org.mockftpserver.fake.filesystem
-
Abstract superclass for implementation of the FileSystem interface that manage the files
and directories in memory, simulating a real file system.
- AbstractFakeFileSystem() - Constructor for class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
- AbstractFileSystemEntry - Class in org.mockftpserver.fake.filesystem
-
The abstract superclass for concrete file system entry classes representing files and directories.
- AbstractFileSystemEntry() - Constructor for class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
Construct a new instance without setting its path
- AbstractFileSystemEntry(String) - Constructor for class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
Construct a new instance with the specified value for its path
- AbstractFtpServer - Class in org.mockftpserver.core.server
-
This is the abstract superclass for "mock" implementations of an FTP Server,
suitable for testing FTP client code or standing in for a live FTP server.
- AbstractFtpServer() - Constructor for class org.mockftpserver.core.server.AbstractFtpServer
-
Create a new instance.
- AbstractStaticReplyCommandHandler - Class in org.mockftpserver.core.command
-
The abstract superclass for CommandHandler classes that default to sending
back a configured reply code and text.
- AbstractStaticReplyCommandHandler() - Constructor for class org.mockftpserver.core.command.AbstractStaticReplyCommandHandler
-
- AbstractStorCommandHandler - Class in org.mockftpserver.stub.command
-
Abstract superclass for CommandHandler for commands that store a file.
- AbstractStorCommandHandler() - Constructor for class org.mockftpserver.stub.command.AbstractStorCommandHandler
-
- AbstractStoreFileCommandHandler - Class in org.mockftpserver.fake.command
-
Abstract superclass for CommandHandlers that that store a file (STOR, STOU, APPE).
- AbstractStoreFileCommandHandler() - Constructor for class org.mockftpserver.fake.command.AbstractStoreFileCommandHandler
-
- AbstractStubCommandHandler - Class in org.mockftpserver.stub.command
-
The abstract superclass for CommandHandler classes for the
StubFtpServer
.
- AbstractStubCommandHandler() - Constructor for class org.mockftpserver.stub.command.AbstractStubCommandHandler
-
- AbstractStubDataCommandHandler - Class in org.mockftpserver.stub.command
-
Abstract superclass for CommandHandlers that read from or write to the data connection.
- AbstractStubDataCommandHandler() - Constructor for class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
Constructor.
- AbstractTrackingCommandHandler - Class in org.mockftpserver.core.command
-
The abstract superclass for CommandHandler classes that manage the List of InvocationRecord
objects corresponding to each invocation of the command handler, and provide helper methods for subclasses.
- AbstractTrackingCommandHandler() - Constructor for class org.mockftpserver.core.command.AbstractTrackingCommandHandler
-
- ACCOUNT_KEY - Static variable in class org.mockftpserver.stub.command.AcctCommandHandler
-
- ACCOUNT_NAME - Static variable in class org.mockftpserver.core.session.SessionKeys
-
- ACCT - Static variable in class org.mockftpserver.core.command.CommandNames
-
- ACCT_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- AcctCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the ACCT command.
- AcctCommandHandler() - Constructor for class org.mockftpserver.fake.command.AcctCommandHandler
-
- AcctCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the ACCT command.
- AcctCommandHandler() - Constructor for class org.mockftpserver.stub.command.AcctCommandHandler
-
Constructor.
- add(FileSystemEntry) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Add the specified file system entry (file or directory) to this file system
- add(FileSystemEntry) - Method in interface org.mockftpserver.fake.filesystem.FileSystem
-
Add the specified file system entry (file or directory) to this file system
- addCommandHandler(CommandHandler) - Method in class org.mockftpserver.core.command.SimpleCompositeCommandHandler
-
Add a CommandHandler to the internal list of handlers.
- addUserAccount(UserAccount) - Method in class org.mockftpserver.fake.FakeFtpServer
-
Add a single UserAccount.
- afterProcessData(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
Perform any necessary logic after transferring data across the data connection.
- ALL - Static variable in class org.mockftpserver.fake.filesystem.Permissions
-
- ALLO - Static variable in class org.mockftpserver.core.command.CommandNames
-
- ALLO_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- AlloCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the ALLO command.
- AlloCommandHandler() - Constructor for class org.mockftpserver.fake.command.AlloCommandHandler
-
- AlloCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the ALLO (Allocate) command.
- AlloCommandHandler() - Constructor for class org.mockftpserver.stub.command.AlloCommandHandler
-
Constructor.
- APPE - Static variable in class org.mockftpserver.core.command.CommandNames
-
- AppeCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the APPE command.
- AppeCommandHandler() - Constructor for class org.mockftpserver.fake.command.AppeCommandHandler
-
- AppeCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the APPE (Append) command.
- AppeCommandHandler() - Constructor for class org.mockftpserver.stub.command.AppeCommandHandler
-
- appendToOutputFile() - Method in class org.mockftpserver.fake.command.AbstractStoreFileCommandHandler
-
- appendToOutputFile() - Method in class org.mockftpserver.fake.command.AppeCommandHandler
-
- ASCII_TYPE - Static variable in class org.mockftpserver.core.session.SessionKeys
-
- asRwxString() - Method in class org.mockftpserver.fake.filesystem.Permissions
-
Return the read/write/execute specification String representing the set of permissions.
- Assert - Class in org.mockftpserver.core.util
-
Provides static helper methods to make runtime assertions.
- AssertFailedException - Exception in org.mockftpserver.core.util
-
Exception that indicates that a runtime assertion from the
Assert
has failed.
- AssertFailedException(String) - Constructor for exception org.mockftpserver.core.util.AssertFailedException
-
Create a new instance for the specified message
- assertValidReplyCode(int) - Method in class org.mockftpserver.core.command.AbstractCommandHandler
-
Assert that the specified number is a valid reply code
- canExecute(FileSystemEntry) - Method in class org.mockftpserver.fake.UserAccount
-
Return true if this user has execute access to the file/directory represented by the specified FileSystemEntry object.
- canGroupExecute() - Method in class org.mockftpserver.fake.filesystem.Permissions
-
- canGroupRead() - Method in class org.mockftpserver.fake.filesystem.Permissions
-
- canGroupWrite() - Method in class org.mockftpserver.fake.filesystem.Permissions
-
- canRead(FileSystemEntry) - Method in class org.mockftpserver.fake.UserAccount
-
Return true if this user has read access to the file/directory represented by the specified FileSystemEntry object.
- canUserExecute() - Method in class org.mockftpserver.fake.filesystem.Permissions
-
- canUserRead() - Method in class org.mockftpserver.fake.filesystem.Permissions
-
- canUserWrite() - Method in class org.mockftpserver.fake.filesystem.Permissions
-
- canWorldExecute() - Method in class org.mockftpserver.fake.filesystem.Permissions
-
- canWorldRead() - Method in class org.mockftpserver.fake.filesystem.Permissions
-
- canWorldWrite() - Method in class org.mockftpserver.fake.filesystem.Permissions
-
- canWrite(FileSystemEntry) - Method in class org.mockftpserver.fake.UserAccount
-
Return true if this user has write access to the file/directory represented by the specified FileSystemEntry object.
- CDUP - Static variable in class org.mockftpserver.core.command.CommandNames
-
- CDUP_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- CdupCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the CDUP command.
- CdupCommandHandler() - Constructor for class org.mockftpserver.fake.command.CdupCommandHandler
-
- CdupCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the CDUP (Change To Parent Directory) command.
- CdupCommandHandler() - Constructor for class org.mockftpserver.stub.command.CdupCommandHandler
-
Constructor.
- checkForInvalidFilename(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Throw an InvalidFilenameException if the specified path is not valid.
- clearInvocations() - Method in class org.mockftpserver.core.command.AbstractTrackingCommandHandler
-
Clear out the invocation history for this CommandHandler.
- clearInvocations() - Method in interface org.mockftpserver.core.command.InvocationHistory
-
Clear out the invocation history for this CommandHandler.
- cloneWithNewPath(String) - Method in class org.mockftpserver.fake.filesystem.DirectoryEntry
-
Return a new FileSystemEntry that is a clone of this object, except having the specified path
- cloneWithNewPath(String) - Method in class org.mockftpserver.fake.filesystem.FileEntry
-
Return a new FileSystemEntry that is a clone of this object, except having the specified path
- cloneWithNewPath(String) - Method in interface org.mockftpserver.fake.filesystem.FileSystemEntry
-
Return a new FileSystemEntry that is a clone of this object, except having the specified path
- close() - Method in class org.mockftpserver.core.session.DefaultSession
-
- close() - Method in interface org.mockftpserver.core.session.Session
-
Close the session, closing the underlying sockets
- closeDataConnection() - Method in class org.mockftpserver.core.session.DefaultSession
-
- closeDataConnection() - Method in interface org.mockftpserver.core.session.Session
-
Close the data connection
- Command - Class in org.mockftpserver.core.command
-
Represents a command received from an FTP client, containing a command name and parameters.
- Command(String, String[]) - Constructor for class org.mockftpserver.core.command.Command
-
Construct a new immutable instance with the specified command name and parameters
- Command(String, List) - Constructor for class org.mockftpserver.core.command.Command
-
Construct a new immutable instance with the specified command name and parameters
- COMMAND_NAME_KEY - Static variable in class org.mockftpserver.stub.command.HelpCommandHandler
-
- COMMAND_NOT_SUPPORTED - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- COMMAND_SYNTAX_ERROR - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- CommandHandler - Interface in org.mockftpserver.core.command
-
Interface for classes that can handle an FTP command.
- CommandNames - Class in org.mockftpserver.core.command
-
FTP command name constants.
- CommandSyntaxException - Exception in org.mockftpserver.core
-
Represents an error indicating that a server command has been received that
has invalid syntax.
- CommandSyntaxException(String) - Constructor for exception org.mockftpserver.core.CommandSyntaxException
-
- CommandSyntaxException(Throwable) - Constructor for exception org.mockftpserver.core.CommandSyntaxException
-
- CommandSyntaxException(String, Throwable) - Constructor for exception org.mockftpserver.core.CommandSyntaxException
-
- comparePassword(String) - Method in class org.mockftpserver.fake.UserAccount
-
Return true if the specified password matches the password configured for this user account.
- componentsToPath(List) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Build a path from the specified list of path components
- CONNECT - Static variable in class org.mockftpserver.core.command.CommandNames
-
- CONNECT_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- ConnectCommandHandler - Class in org.mockftpserver.core.command
-
CommandHandler that encapsulates the sending of the reply for the initial connection from
the FTP client to the server.
- ConnectCommandHandler() - Constructor for class org.mockftpserver.core.command.ConnectCommandHandler
-
Constructor.
- containsKey(String) - Method in class org.mockftpserver.core.command.InvocationRecord
-
Returns true
if this object contains a mapping for the specified key.
- containsWildcards(String) - Static method in class org.mockftpserver.core.util.PatternUtil
-
Return true if the specified String contains one or more wildcard characters ('?' or '*')
- convertHostAndPortToCommaDelimitedBytes(InetAddress, int) - Static method in class org.mockftpserver.core.util.PortParser
-
Convert the InetAddess and port number to a comma-delimited list of byte values,
suitable for the response String from the PASV command.
- convertLfToCrLf(byte[]) - Method in class org.mockftpserver.fake.command.RetrCommandHandler
-
Within the specified byte array, replace all LF (\n) that are NOT preceded by a CR (\r) into CRLF (\r\n).
- convertStringWithWildcardsToRegex(String) - Static method in class org.mockftpserver.core.util.PatternUtil
-
Convert the specified String, optionally containing wildcards (? or *), to a regular expression String
- createInputStream() - Method in class org.mockftpserver.fake.filesystem.FileEntry
-
Create and return an InputStream for reading the contents of the file represented by this entry
- createOutputStream(boolean) - Method in class org.mockftpserver.fake.filesystem.FileEntry
-
Create and return an OutputStream for writing the contents of the file represented by this entry
- createServerSocket(int) - Method in class org.mockftpserver.core.socket.DefaultServerSocketFactory
-
Create a new ServerSocket for the specified port.
- createServerSocket(int) - Method in interface org.mockftpserver.core.socket.ServerSocketFactory
-
Create a new ServerSocket for the specified port
- createSession(Socket) - Method in class org.mockftpserver.core.server.AbstractFtpServer
-
Create a new Session instance for the specified client Socket
- createSocket(InetAddress, int) - Method in class org.mockftpserver.core.socket.DefaultSocketFactory
-
Create a new Socket instance for the specified host and port.
- createSocket(InetAddress, int) - Method in interface org.mockftpserver.core.socket.SocketFactory
-
Create a new Socket instance for the specified host and port.
- CURRENT_DIRECTORY - Static variable in class org.mockftpserver.core.session.SessionKeys
-
- CWD - Static variable in class org.mockftpserver.core.command.CommandNames
-
- CWD_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- CwdCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the CWD command.
- CwdCommandHandler() - Constructor for class org.mockftpserver.fake.command.CwdCommandHandler
-
- CwdCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the CWD (Change Working Directory) command.
- CwdCommandHandler() - Constructor for class org.mockftpserver.stub.command.CwdCommandHandler
-
Constructor.
- FakeFtpServer - Class in org.mockftpserver.fake
-
FakeFtpServer is the top-level class for a "fake" implementation of an FTP Server,
suitable for testing FTP client code or standing in for a live FTP server.
- FakeFtpServer() - Constructor for class org.mockftpserver.fake.FakeFtpServer
-
- FILE_CONTENTS_KEY - Static variable in class org.mockftpserver.stub.command.AbstractStorCommandHandler
-
- FILE_STRUCTURE_KEY - Static variable in class org.mockftpserver.stub.command.StruCommandHandler
-
- FileEntry - Class in org.mockftpserver.fake.filesystem
-
File system entry representing a file
- FileEntry() - Constructor for class org.mockftpserver.fake.filesystem.FileEntry
-
Construct a new instance without setting its path
- FileEntry(String) - Constructor for class org.mockftpserver.fake.filesystem.FileEntry
-
Construct a new instance with the specified value for its path
- FileEntry(String, String) - Constructor for class org.mockftpserver.fake.filesystem.FileEntry
-
Construct a new instance with the specified path and file contents
- FILENAME_NOT_VALID - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- FileRetrCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the RETR command.
- FileRetrCommandHandler() - Constructor for class org.mockftpserver.stub.command.FileRetrCommandHandler
-
Create new uninitialized instance
- FileRetrCommandHandler(String) - Constructor for class org.mockftpserver.stub.command.FileRetrCommandHandler
-
Create new instance using the specified file pathname
- FileSystem - Interface in org.mockftpserver.fake.filesystem
-
Interface for a file system for managing files and directories.
- FileSystemEntry - Interface in org.mockftpserver.fake.filesystem
-
Interface for an entry within a fake file system, representing a single file or directory.
- FileSystemException - Exception in org.mockftpserver.fake.filesystem
-
Represents an error that occurs while performing a FileSystem operation.
- FileSystemException(String, String) - Constructor for exception org.mockftpserver.fake.filesystem.FileSystemException
-
Construct a new instance for the specified path and message key
- FileSystemException(String, String, Throwable) - Constructor for exception org.mockftpserver.fake.filesystem.FileSystemException
-
- finalReplyCode - Variable in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
- finalReplyMessageKey - Variable in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
- finalReplyText - Variable in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
- format(FileSystemEntry) - Method in interface org.mockftpserver.fake.filesystem.DirectoryListingFormatter
-
Format the directory listing for a single file/directory entry.
- format(FileSystemEntry) - Method in class org.mockftpserver.fake.filesystem.UnixDirectoryListingFormatter
-
Format the directory listing for a single file/directory entry.
- format(FileSystemEntry) - Method in class org.mockftpserver.fake.filesystem.WindowsDirectoryListingFormatter
-
Format the directory listing for a single file/directory entry.
- formatDirectoryListing(FileSystemEntry) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Return the formatted directory listing entry for the file represented by the specified FileSystemEntry
- formatDirectoryListing(FileSystemEntry) - Method in interface org.mockftpserver.fake.filesystem.FileSystem
-
Return the formatted directory listing entry for the file represented by the specified FileSystemEntry
- getAttribute(String) - Method in class org.mockftpserver.core.session.DefaultSession
-
Return the attribute value for the specified name.
- getAttribute(String) - Method in interface org.mockftpserver.core.session.Session
-
Return the attribute value for the specified name.
- getAttributeNames() - Method in class org.mockftpserver.core.session.DefaultSession
-
Return the Set of names under which attributes have been stored on this session.
- getAttributeNames() - Method in interface org.mockftpserver.core.session.Session
-
Return the Set of names under which attributes have been stored on this session.
- getClientHost() - Method in class org.mockftpserver.core.command.InvocationRecord
-
- getClientHost() - Method in class org.mockftpserver.core.session.DefaultSession
-
Return the InetAddress representing the client host for this session
- getClientHost() - Method in interface org.mockftpserver.core.session.Session
-
Return the InetAddress representing the client host for this session
- getCommand() - Method in class org.mockftpserver.core.command.InvocationRecord
-
- getCommandHandler(int) - Method in class org.mockftpserver.core.command.SimpleCompositeCommandHandler
-
Return the CommandHandler corresponding to the specified invocation index.
- getCommandHandler(String) - Method in class org.mockftpserver.core.server.AbstractFtpServer
-
Return the CommandHandler defined for the specified command name
- getDefaultPermissionsForNewDirectory() - Method in class org.mockftpserver.fake.UserAccount
-
- getDefaultPermissionsForNewFile() - Method in class org.mockftpserver.fake.UserAccount
-
- getDirectoryListingFormatter() - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
- getEntry(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Returns the FileSystemEntry object representing the file system entry at the specified path, or null
if the path does not specify an existing file or directory within this file system.
- getEntry(String) - Method in interface org.mockftpserver.fake.filesystem.FileSystem
-
Returns the FileSystemEntry object representing the file system entry at the specified path, or null
if the path does not specify an existing file or directory within this file system.
- getFileSystem() - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
-
Convenience method to return the FileSystem stored in the ServerConfiguration
- getFileSystem() - Method in class org.mockftpserver.fake.FakeFtpServer
-
- getFileSystem() - Method in interface org.mockftpserver.fake.ServerConfiguration
-
- getFileSystemEntryKey(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Return the normalized and unique key used to access the file system entry
- getFileSystemEntryKey(String) - Method in class org.mockftpserver.fake.filesystem.WindowsFakeFileSystem
-
Return the normalized and unique key used to access the file system entry.
- getGroup() - Method in class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
- getGroup() - Method in interface org.mockftpserver.fake.filesystem.FileSystemEntry
-
- getGroups() - Method in class org.mockftpserver.fake.UserAccount
-
- getHelpText() - Method in class org.mockftpserver.fake.FakeFtpServer
-
- getHelpText(String) - Method in class org.mockftpserver.fake.FakeFtpServer
-
Return the help text for a command or the default help text if no command name is specified
- getHelpText(String) - Method in interface org.mockftpserver.fake.ServerConfiguration
-
Return the help text for a command or the default help text if no command name is specified
- getHomeDirectory() - Method in class org.mockftpserver.fake.UserAccount
-
- getInvocation(int) - Method in class org.mockftpserver.core.command.AbstractTrackingCommandHandler
-
Return the InvocationRecord representing the command invoction data for the nth invocation
for this command handler instance.
- getInvocation(int) - Method in interface org.mockftpserver.core.command.InvocationHistory
-
Return the InvocationRecord representing the command invoction data for the nth invocation
for this command handler instance.
- getLastModified() - Method in class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
- getLastModified() - Method in interface org.mockftpserver.fake.filesystem.FileSystemEntry
-
Return the timestamp Date for the last modification of this file system entry
- getMessage() - Method in exception org.mockftpserver.fake.filesystem.FileSystemException
-
- getMessageKey() - Method in class org.mockftpserver.fake.command.AbstractStoreFileCommandHandler
-
- getMessageKey() - Method in class org.mockftpserver.fake.command.AppeCommandHandler
-
- getMessageKey() - Method in class org.mockftpserver.fake.command.StorCommandHandler
-
- getMessageKey() - Method in class org.mockftpserver.fake.command.StouCommandHandler
-
- getMessageKey() - Method in exception org.mockftpserver.fake.filesystem.FileSystemException
-
- getName() - Method in class org.mockftpserver.core.command.Command
-
- getName(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Returns the name of the file or directory denoted by this abstract
pathname.
- getName() - Method in class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
- getName() - Method in interface org.mockftpserver.fake.filesystem.FileSystemEntry
-
Return the file name or directory name (no path) for this entry
- getObject(String) - Method in class org.mockftpserver.core.command.InvocationRecord
-
Get the Object value associated with the specified key.
- getOptionalString(int) - Method in class org.mockftpserver.core.command.Command
-
Get the String value of the parameter at the specified index; return null if no
parameter exists for the index.
- getOutputFile(Command) - Method in class org.mockftpserver.fake.command.AbstractStoreFileCommandHandler
-
Return the path (absolute or relative) for the output file.
- getOutputFile(Command) - Method in class org.mockftpserver.fake.command.StouCommandHandler
-
Return the path (absolute or relative) for the output file.
- getOwner() - Method in class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
- getOwner() - Method in interface org.mockftpserver.fake.filesystem.FileSystemEntry
-
- getParameter(int) - Method in class org.mockftpserver.core.command.Command
-
Get the String value of the parameter at the specified index; return null if no parameter exists for the index
- getParameters() - Method in class org.mockftpserver.core.command.Command
-
- getParent(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Return the parent path of the specified path.
- getParent(String) - Method in interface org.mockftpserver.fake.filesystem.FileSystem
-
Return the parent path of the specified path.
- getPassword() - Method in class org.mockftpserver.fake.UserAccount
-
- getPath() - Method in class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
- getPath() - Method in interface org.mockftpserver.fake.filesystem.FileSystemEntry
-
Return the path for this file system entry
- getPath() - Method in exception org.mockftpserver.fake.filesystem.FileSystemException
-
- getPermissions() - Method in class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
- getPermissions() - Method in interface org.mockftpserver.fake.filesystem.FileSystemEntry
-
- getPrimaryGroup() - Method in class org.mockftpserver.fake.UserAccount
-
Return the name of the primary group to which this user belongs.
- getRealPath(Session, String) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
-
Return the full, absolute path for the specified abstract pathname.
- getReplyTextBundle() - Method in class org.mockftpserver.core.command.AbstractCommandHandler
-
Return the ResourceBundle containing the reply text messages
- getReplyTextBundle() - Method in interface org.mockftpserver.core.command.ReplyTextBundleAware
-
Return the ResourceBundle containing the reply text messages
- getReplyTextBundle() - Method in class org.mockftpserver.core.command.SimpleCompositeCommandHandler
-
Returns null.
- getReplyTextBundle() - Method in class org.mockftpserver.core.server.AbstractFtpServer
-
Return the ReplyText ResourceBundle.
- getRequiredEntry(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Return the FileSystemEntry for the specified path.
- getRequiredParameter(int) - Method in class org.mockftpserver.core.command.Command
-
Get the String value of the parameter at the specified index
- getRequiredSessionAttribute(Session, String) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
-
Return the value of the named attribute within the session.
- getRwxString() - Method in class org.mockftpserver.fake.filesystem.Permissions
-
- getSeparator() - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
- getSeparatorChar() - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
- getSeparatorChar() - Method in class org.mockftpserver.fake.filesystem.UnixFakeFileSystem
-
- getSeparatorChar() - Method in class org.mockftpserver.fake.filesystem.WindowsFakeFileSystem
-
- getServerConfiguration() - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
-
- getServerConfiguration() - Method in interface org.mockftpserver.fake.ServerConfigurationAware
-
- getServerControlPort() - Method in class org.mockftpserver.core.server.AbstractFtpServer
-
Return the port number to which the server control connection socket will bind.
- getServerHost() - Method in class org.mockftpserver.core.session.DefaultSession
-
Return the InetAddress representing the server host for this session
- getServerHost() - Method in interface org.mockftpserver.core.session.Session
-
Return the InetAddress representing the server host for this session
- getSize() - Method in class org.mockftpserver.fake.filesystem.DirectoryEntry
-
Return the size of this directory.
- getSize() - Method in class org.mockftpserver.fake.filesystem.FileEntry
-
Return the size of this file
- getSize() - Method in interface org.mockftpserver.fake.filesystem.FileSystemEntry
-
Return the size of this file system entry
- getString(String) - Method in class org.mockftpserver.core.command.InvocationRecord
-
Get the String value associated with the specified key.
- getSystemName() - Method in class org.mockftpserver.fake.FakeFtpServer
-
- getSystemName() - Method in interface org.mockftpserver.fake.ServerConfiguration
-
- getSystemStatus() - Method in class org.mockftpserver.fake.FakeFtpServer
-
Return the system status description
- getSystemStatus() - Method in interface org.mockftpserver.fake.ServerConfiguration
-
- getTime() - Method in class org.mockftpserver.core.command.InvocationRecord
-
- getUserAccount(Session) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
-
- getUserAccount(String) - Method in class org.mockftpserver.fake.FakeFtpServer
-
- getUserAccount(String) - Method in interface org.mockftpserver.fake.ServerConfiguration
-
- getUsername() - Method in class org.mockftpserver.fake.UserAccount
-
- ILLEGAL_STATE - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- IllegalStateException - Exception in org.mockftpserver.core
-
Represents an error indicating that the server is in an illegal state, or
that a server command is invoked when its preconditions have not been met.
- IllegalStateException(String) - Constructor for exception org.mockftpserver.core.IllegalStateException
-
- IllegalStateException(Throwable) - Constructor for exception org.mockftpserver.core.IllegalStateException
-
- IllegalStateException(String, Throwable) - Constructor for exception org.mockftpserver.core.IllegalStateException
-
- initializeCommandHandler(CommandHandler) - Method in class org.mockftpserver.core.server.AbstractFtpServer
-
Initialize a CommandHandler that has been registered to this server.
- initializeCommandHandler(CommandHandler) - Method in class org.mockftpserver.fake.FakeFtpServer
-
Initialize a CommandHandler that has been registered to this server.
- initializeCommandHandler(CommandHandler) - Method in class org.mockftpserver.stub.StubFtpServer
-
- INTERNAL_ERROR_KEY - Static variable in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
-
- InvalidFilenameException - Exception in org.mockftpserver.fake.filesystem
-
Exception thrown when a path/filename is not valid.
- InvalidFilenameException(String) - Constructor for exception org.mockftpserver.fake.filesystem.InvalidFilenameException
-
- InvalidFilenameException(String, Throwable) - Constructor for exception org.mockftpserver.fake.filesystem.InvalidFilenameException
-
- InvocationHistory - Interface in org.mockftpserver.core.command
-
Interface for an object that can retrieve and clear the history of InvocationRecords
for a command handler.
- InvocationRecord - Class in org.mockftpserver.core.command
-
Represents information about a single FTP Command invocation.
- InvocationRecord(Command, InetAddress) - Constructor for class org.mockftpserver.core.command.InvocationRecord
-
Create a new instance
- IoUtil - Class in org.mockftpserver.core.util
-
Contains static I/O-related utility methods.
- isAbsolute(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Return true if the specified path designates an absolute file path.
- isAbsolute(String) - Method in interface org.mockftpserver.fake.filesystem.FileSystem
-
Return true if the specified path designates an absolute file path.
- isAccountRequiredForLogin() - Method in class org.mockftpserver.fake.UserAccount
-
- isClosed() - Method in class org.mockftpserver.core.session.DefaultSession
-
- isClosed() - Method in interface org.mockftpserver.core.session.Session
-
- isCreateParentDirectoriesAutomatically() - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
- isDirectory(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Return true if the specified path designates an existing directory, false otherwise
- isDirectory() - Method in class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
Abstract method -- must be implemented within concrete subclasses
- isDirectory() - Method in class org.mockftpserver.fake.filesystem.DirectoryEntry
-
Return true to indicate that this entry represents a directory
- isDirectory() - Method in class org.mockftpserver.fake.filesystem.FileEntry
-
Return false to indicate that this entry represents a file
- isDirectory(String) - Method in interface org.mockftpserver.fake.filesystem.FileSystem
-
Return true if the specified path designates an existing directory, false otherwise
- isDirectory() - Method in interface org.mockftpserver.fake.filesystem.FileSystemEntry
-
Return true if this entry represents a directory, false otherwise
- isFalse(boolean, String) - Static method in class org.mockftpserver.core.util.Assert
-
Verify that condition is false.
- isFile(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Return true if the specified path designates an existing file, false otherwise
- isFile(String) - Method in interface org.mockftpserver.fake.filesystem.FileSystem
-
Return true if the specified path designates an existing file, false otherwise
- isLocked() - Method in class org.mockftpserver.core.command.InvocationRecord
-
Return true if this object has been locked, false otherwise.
- isNull(Object, String) - Static method in class org.mockftpserver.core.util.Assert
-
Verify that arg is null.
- isPasswordCheckedDuringValidation() - Method in class org.mockftpserver.fake.UserAccount
-
- isPasswordRequired() - Method in class org.mockftpserver.stub.command.UserCommandHandler
-
Return true if a password is required at login.
- isPasswordRequiredForLogin() - Method in class org.mockftpserver.fake.UserAccount
-
- isRoot(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
- isRoot(String) - Method in class org.mockftpserver.fake.filesystem.UnixFakeFileSystem
-
- isRoot(String) - Method in class org.mockftpserver.fake.filesystem.WindowsFakeFileSystem
-
- isSeparator(char) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Return true if the specified char is a separator character for this filesystem
- isSeparator(char) - Method in class org.mockftpserver.fake.filesystem.UnixFakeFileSystem
-
Return true if the specified char is a separator character ('\' or '/')
- isSeparator(char) - Method in class org.mockftpserver.fake.filesystem.WindowsFakeFileSystem
-
Return true if the specified char is a separator character ('\' or '/')
- isShutdown() - Method in class org.mockftpserver.core.server.AbstractFtpServer
-
Return true if this server is fully shutdown -- i.e., there is no active (alive) threads and
all sockets are closed.
- isStarted() - Method in class org.mockftpserver.core.server.AbstractFtpServer
-
Return true if this server has started -- i.e., there is an active (alive) server threads
and non-null server socket.
- isTrue(boolean, String) - Static method in class org.mockftpserver.core.util.Assert
-
Verify that condition is true.
- isValid() - Method in class org.mockftpserver.fake.UserAccount
-
- isValidName(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
- isValidName(String) - Method in class org.mockftpserver.fake.filesystem.UnixFakeFileSystem
-
Return true if the specified path designates a valid (absolute) file path.
- isValidName(String) - Method in class org.mockftpserver.fake.filesystem.WindowsFakeFileSystem
-
Return true if the specified path designates a valid (absolute) file path.
- isValidPassword(String) - Method in class org.mockftpserver.fake.UserAccount
-
Return true if the specified password is the correct, valid password for this user account.
- padLeft(String, int) - Static method in class org.mockftpserver.core.util.StringUtil
-
Pad the specified String with spaces to the left to the specified width.
- padRight(String, int) - Static method in class org.mockftpserver.core.util.StringUtil
-
Pad the specified String with spaces to the right to the specified width.
- PARAMETERS_KEY - Static variable in class org.mockftpserver.stub.command.SiteCommandHandler
-
- parseExtendedAddressHostAndPort(String) - Static method in class org.mockftpserver.core.util.PortParser
-
Parse the host address and port number of an extended address.
- parseHostAndPort(String[]) - Static method in class org.mockftpserver.core.util.PortParser
-
Parse a 32-bit IP address and 16-bit port number from the String[] of FTP command parameters.
- PASS - Static variable in class org.mockftpserver.core.command.CommandNames
-
- PASS_LOG_IN_FAILED - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- PASS_NEED_ACCOUNT - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- PASS_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- PassCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the PASS command.
- PassCommandHandler() - Constructor for class org.mockftpserver.fake.command.PassCommandHandler
-
- PassCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the PASS (Password) command.
- PassCommandHandler() - Constructor for class org.mockftpserver.stub.command.PassCommandHandler
-
Constructor.
- PASSWORD_KEY - Static variable in class org.mockftpserver.stub.command.PassCommandHandler
-
- PASV - Static variable in class org.mockftpserver.core.command.CommandNames
-
- PASV_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- PasvCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the PASV command.
- PasvCommandHandler() - Constructor for class org.mockftpserver.fake.command.PasvCommandHandler
-
- PasvCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the PASV (Passove Mode) command.
- PasvCommandHandler() - Constructor for class org.mockftpserver.stub.command.PasvCommandHandler
-
Constructor.
- path(String, String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Build a path from the two path components.
- path(String, String) - Method in interface org.mockftpserver.fake.filesystem.FileSystem
-
Build a path from the two path components.
- PATHNAME_KEY - Static variable in class org.mockftpserver.stub.command.AbstractStorCommandHandler
-
- PATHNAME_KEY - Static variable in class org.mockftpserver.stub.command.CwdCommandHandler
-
- PATHNAME_KEY - Static variable in class org.mockftpserver.stub.command.DeleCommandHandler
-
- PATHNAME_KEY - Static variable in class org.mockftpserver.stub.command.FileRetrCommandHandler
-
- PATHNAME_KEY - Static variable in class org.mockftpserver.stub.command.ListCommandHandler
-
- PATHNAME_KEY - Static variable in class org.mockftpserver.stub.command.MkdCommandHandler
-
- PATHNAME_KEY - Static variable in class org.mockftpserver.stub.command.NlstCommandHandler
-
- PATHNAME_KEY - Static variable in class org.mockftpserver.stub.command.RetrCommandHandler
-
- PATHNAME_KEY - Static variable in class org.mockftpserver.stub.command.RmdCommandHandler
-
- PATHNAME_KEY - Static variable in class org.mockftpserver.stub.command.RnfrCommandHandler
-
- PATHNAME_KEY - Static variable in class org.mockftpserver.stub.command.RntoCommandHandler
-
- PATHNAME_KEY - Static variable in class org.mockftpserver.stub.command.SmntCommandHandler
-
- PATHNAME_KEY - Static variable in class org.mockftpserver.stub.command.StatCommandHandler
-
- PatternUtil - Class in org.mockftpserver.core.util
-
Contains static utility methods related to pattern-matching and regular expressions.
- Permissions - Class in org.mockftpserver.fake.filesystem
-
Represents and encapsulates the read/write/execute permissions for a file or directory.
- Permissions(String) - Constructor for class org.mockftpserver.fake.filesystem.Permissions
-
Costruct a new instance for the specified read/write/execute specification String
- PORT - Static variable in class org.mockftpserver.core.command.CommandNames
-
- port - Variable in class org.mockftpserver.core.util.HostAndPort
-
- PORT_KEY - Static variable in class org.mockftpserver.stub.command.EprtCommandHandler
-
- PORT_KEY - Static variable in class org.mockftpserver.stub.command.PortCommandHandler
-
- PORT_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- PortCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the PORT command.
- PortCommandHandler() - Constructor for class org.mockftpserver.fake.command.PortCommandHandler
-
- PortCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the PORT command.
- PortCommandHandler() - Constructor for class org.mockftpserver.stub.command.PortCommandHandler
-
Constructor.
- PortParser - Class in org.mockftpserver.core.util
-
Utility class for parsing host and port values from command arguments.
- preliminaryReplyCode - Variable in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
- preliminaryReplyMessageKey - Variable in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
- preliminaryReplyText - Variable in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
- processData(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.AbstractStorCommandHandler
-
- processData(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
Abstract method placeholder for subclass transfer of data across the data connection.
- processData(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.FileRetrCommandHandler
-
- processData(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.ListCommandHandler
-
- processData(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.NlstCommandHandler
-
- processData(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.RetrCommandHandler
-
- PWD - Static variable in class org.mockftpserver.core.command.CommandNames
-
- PWD_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- PwdCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the PWD command.
- PwdCommandHandler() - Constructor for class org.mockftpserver.fake.command.PwdCommandHandler
-
- PwdCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the PWD (Print Working Directory) and XPWD commands.
- PwdCommandHandler() - Constructor for class org.mockftpserver.stub.command.PwdCommandHandler
-
Constructor.
- READ_FILE_ERROR - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- readBytes(InputStream) - Static method in class org.mockftpserver.core.util.IoUtil
-
Read the contents of the InputStream and return as a byte[].
- readData() - Method in class org.mockftpserver.core.session.DefaultSession
-
- readData(int) - Method in class org.mockftpserver.core.session.DefaultSession
-
- readData() - Method in interface org.mockftpserver.core.session.Session
-
Read data from the client across the data connection
- readData(int) - Method in interface org.mockftpserver.core.session.Session
-
Read and return (up to) numBytes of data from the client across the data connection
- RECORD_SIZE_KEY - Static variable in class org.mockftpserver.stub.command.AlloCommandHandler
-
- REIN - Static variable in class org.mockftpserver.core.command.CommandNames
-
- REIN_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- ReinCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the REIN command.
- ReinCommandHandler() - Constructor for class org.mockftpserver.fake.command.ReinCommandHandler
-
- ReinCommandHandler - Class in org.mockftpserver.stub.command
-
/**
CommandHandler for the REIN (Reinitialize) command.
- ReinCommandHandler() - Constructor for class org.mockftpserver.stub.command.ReinCommandHandler
-
Constructor.
- removeAttribute(String) - Method in class org.mockftpserver.core.session.DefaultSession
-
Remove the attribute value for the specified name.
- removeAttribute(String) - Method in interface org.mockftpserver.core.session.Session
-
Remove the attribute value for the specified name.
- rename(String, String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Rename the file or directory.
- rename(String, String) - Method in interface org.mockftpserver.fake.filesystem.FileSystem
-
Rename the file or directory.
- RENAME_FROM - Static variable in class org.mockftpserver.core.session.SessionKeys
-
- renamePath(FileSystemEntry, String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Rename the file system entry to the specified path name
- REPLY_TEXT_BASENAME - Static variable in class org.mockftpserver.core.server.AbstractFtpServer
-
Default basename for reply text ResourceBundle
- replyCode - Variable in class org.mockftpserver.core.command.AbstractStaticReplyCommandHandler
-
- replyCodeForFileSystemException - Variable in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
-
- ReplyCodes - Class in org.mockftpserver.core.command
-
Reply Code constants.
- replyMessageKey - Variable in class org.mockftpserver.core.command.AbstractStaticReplyCommandHandler
-
- replyText - Variable in class org.mockftpserver.core.command.AbstractStaticReplyCommandHandler
-
- ReplyTextBundleAware - Interface in org.mockftpserver.core.command
-
Interface for objects that allow getting and setting a reply text ResourceBundle.
- ReplyTextBundleUtil - Class in org.mockftpserver.core.command
-
Contains common utility method to conditionally set the reply text ResourceBundle on a
CommandHandler instance.
- ReplyTextBundleUtil() - Constructor for class org.mockftpserver.core.command.ReplyTextBundleUtil
-
- REST - Static variable in class org.mockftpserver.core.command.CommandNames
-
- REST_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- RestCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the REST command.
- RestCommandHandler() - Constructor for class org.mockftpserver.fake.command.RestCommandHandler
-
- RestCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the REST (Restart of interrupted transfer) command.
- RestCommandHandler() - Constructor for class org.mockftpserver.stub.command.RestCommandHandler
-
Constructor.
- RETR - Static variable in class org.mockftpserver.core.command.CommandNames
-
- RetrCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the RETR command.
- RetrCommandHandler() - Constructor for class org.mockftpserver.fake.command.RetrCommandHandler
-
- RetrCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the RETR (Retrieve) command.
- RetrCommandHandler() - Constructor for class org.mockftpserver.stub.command.RetrCommandHandler
-
Create new uninitialized instance
- RetrCommandHandler(String) - Constructor for class org.mockftpserver.stub.command.RetrCommandHandler
-
Create new instance using the specified fileContents
- RetrCommandHandler(byte[]) - Constructor for class org.mockftpserver.stub.command.RetrCommandHandler
-
Create new instance using the specified fileContents
- RMD - Static variable in class org.mockftpserver.core.command.CommandNames
-
- RMD_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- RmdCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the RMD command.
- RmdCommandHandler() - Constructor for class org.mockftpserver.fake.command.RmdCommandHandler
-
- RmdCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the RMD (Remove Working Directory) command.
- RmdCommandHandler() - Constructor for class org.mockftpserver.stub.command.RmdCommandHandler
-
Constructor.
- RNFR - Static variable in class org.mockftpserver.core.command.CommandNames
-
- RNFR_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- RnfrCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the RNFR command.
- RnfrCommandHandler() - Constructor for class org.mockftpserver.fake.command.RnfrCommandHandler
-
- RnfrCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the RNFR (Rename From) command.
- RnfrCommandHandler() - Constructor for class org.mockftpserver.stub.command.RnfrCommandHandler
-
Constructor.
- RNTO - Static variable in class org.mockftpserver.core.command.CommandNames
-
- RNTO_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- RntoCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the RNTO command.
- RntoCommandHandler() - Constructor for class org.mockftpserver.fake.command.RntoCommandHandler
-
- RntoCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the RNTO (Rename To) command.
- RntoCommandHandler() - Constructor for class org.mockftpserver.stub.command.RntoCommandHandler
-
Constructor.
- run() - Method in class org.mockftpserver.core.server.AbstractFtpServer
-
The logic for the server thread
- run() - Method in class org.mockftpserver.core.session.DefaultSession
-
- sendData(byte[], int) - Method in class org.mockftpserver.core.session.DefaultSession
-
- sendData(byte[], int) - Method in interface org.mockftpserver.core.session.Session
-
Write the specified data using the data connection
- sendFinalReply(Session) - Method in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
Send the final reply.
- sendFinalReply(Session) - Method in class org.mockftpserver.stub.command.StouCommandHandler
-
Override the default implementation to send a custom reply text that includes the STOU response filename
- sendReply(Session) - Method in class org.mockftpserver.core.command.AbstractStaticReplyCommandHandler
-
Send the reply using the replyCode and message key/text configured for this command handler.
- sendReply(Session, Object) - Method in class org.mockftpserver.core.command.AbstractStaticReplyCommandHandler
-
Send the reply using the replyCode and message key/text configured for this command handler.
- sendReply(Session, int, String, String, Object[]) - Method in class org.mockftpserver.core.command.AbstractTrackingCommandHandler
-
Send a reply for this command on the control connection.
- sendReply(int, String) - Method in class org.mockftpserver.core.session.DefaultSession
-
Send the specified reply code and text across the control connection.
- sendReply(int, String) - Method in interface org.mockftpserver.core.session.Session
-
Send the specified reply code and text across the control connection.
- sendReply(Session, int, String) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
-
Send a reply for this command on the control connection.
- sendReply(Session, int, String, List) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
-
Send a reply for this command on the control connection.
- sendReply(Session, int) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
-
Send a reply for this command on the control connection.
- sendReply(Session, int, List) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
-
Send a reply for this command on the control connection.
- SEPARATOR - Static variable in class org.mockftpserver.fake.filesystem.UnixFakeFileSystem
-
- SEPARATOR - Static variable in class org.mockftpserver.fake.filesystem.WindowsFakeFileSystem
-
- ServerConfiguration - Interface in org.mockftpserver.fake
-
Interface for objects that provide access to server-specific information.
- ServerConfigurationAware - Interface in org.mockftpserver.fake
-
Interface for classes that provide setter and getter to access a ServerConfiguration instance.
- serverSocketFactory - Variable in class org.mockftpserver.core.server.AbstractFtpServer
-
- serverSocketFactory - Variable in class org.mockftpserver.core.session.DefaultSession
-
- ServerSocketFactory - Interface in org.mockftpserver.core.socket
-
Interface for factory that creates new
ServerSocket
instances.
- Session - Interface in org.mockftpserver.core.session
-
Represents an FTP session state and behavior
- SessionKeys - Class in org.mockftpserver.core.session
-
Constants for names of properties (attributes) stored in the session.
- SessionKeys() - Constructor for class org.mockftpserver.core.session.SessionKeys
-
- set(String, Object) - Method in class org.mockftpserver.core.command.InvocationRecord
-
Store the value for the specified key.
- setAccountRequiredForLogin(boolean) - Method in class org.mockftpserver.fake.UserAccount
-
- setAttribute(String, Object) - Method in class org.mockftpserver.core.session.DefaultSession
-
Store the value under the specified attribute name.
- setAttribute(String, Object) - Method in interface org.mockftpserver.core.session.Session
-
Store the value under the specified attribute name.
- setClientDataHost(InetAddress) - Method in class org.mockftpserver.core.session.DefaultSession
-
- setClientDataHost(InetAddress) - Method in interface org.mockftpserver.core.session.Session
-
- setClientDataPort(int) - Method in class org.mockftpserver.core.session.DefaultSession
-
- setClientDataPort(int) - Method in interface org.mockftpserver.core.session.Session
-
- setCommandHandler(String, CommandHandler) - Method in class org.mockftpserver.core.server.AbstractFtpServer
-
Set the CommandHandler for the specified command name.
- setCommandHandlers(List) - Method in class org.mockftpserver.core.command.SimpleCompositeCommandHandler
-
Set the List of CommandHandlers to which to delegate.
- setCommandHandlers(Map) - Method in class org.mockftpserver.core.server.AbstractFtpServer
-
Override the default CommandHandlers with those in the specified Map of
commandName:CommandHandler.
- setContents(String) - Method in class org.mockftpserver.fake.filesystem.FileEntry
-
Set the contents of the file represented by this entry
- setContents(String, String) - Method in class org.mockftpserver.fake.filesystem.FileEntry
-
Set the contents of the file represented by this entry, using the specified charset.
- setContents(byte[]) - Method in class org.mockftpserver.fake.filesystem.FileEntry
-
Set the contents of the file represented by this entry
- setCreateParentDirectoriesAutomatically(boolean) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
- setDefaultPermissionsForNewDirectory(Permissions) - Method in class org.mockftpserver.fake.UserAccount
-
- setDefaultPermissionsForNewFile(Permissions) - Method in class org.mockftpserver.fake.UserAccount
-
- setDirectory(String) - Method in class org.mockftpserver.stub.command.PwdCommandHandler
-
Set the directory String to be returned by this command
- setDirectoryListing(String) - Method in class org.mockftpserver.stub.command.ListCommandHandler
-
Set the contents of the directoryListing to send back on the data connection for this command.
- setDirectoryListing(String) - Method in class org.mockftpserver.stub.command.NlstCommandHandler
-
Set the contents of the directoryListing to send back on the data connection for this command.
- setDirectoryListingFormatter(DirectoryListingFormatter) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
- setEntries(List) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
-
Add each of the entries in the specified List to this filesystem.
- setFile(String) - Method in class org.mockftpserver.stub.command.FileRetrCommandHandler
-
Set the path of the file whose contents should be returned when this command is
invoked.
- setFileContents(String) - Method in class org.mockftpserver.stub.command.RetrCommandHandler
-
Set the file contents to return from subsequent command invocations
- setFileContents(byte[]) - Method in class org.mockftpserver.stub.command.RetrCommandHandler
-
Set the file contents to return from subsequent command invocations
- setFilename(String) - Method in class org.mockftpserver.stub.command.StouCommandHandler
-
Set the filename returned with the final reply of the STOU command
- setFileSystem(FileSystem) - Method in class org.mockftpserver.fake.FakeFtpServer
-
- setFinalReplyCode(int) - Method in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
Set the completion reply code sent after data transfer
- setFinalReplyMessageKey(String) - Method in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
Set the message key for the completion reply text sent after data transfer
- setFinalReplyText(String) - Method in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
Set the text of the completion reply sent after data transfer
- setGroup(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
- setGroups(List) - Method in class org.mockftpserver.fake.UserAccount
-
- setHelpMessage(String) - Method in class org.mockftpserver.stub.command.HelpCommandHandler
-
Set the help message String to be returned by this command
- setHelpText(Map) - Method in class org.mockftpserver.fake.FakeFtpServer
-
- setHomeDirectory(String) - Method in class org.mockftpserver.fake.UserAccount
-
- setLastModified(Date) - Method in class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
- setLastModified(Date) - Method in interface org.mockftpserver.fake.filesystem.FileSystemEntry
-
Set the timestamp Date for the last modification of this file system entry
- setLocale(Locale) - Method in class org.mockftpserver.fake.filesystem.UnixDirectoryListingFormatter
-
Set the Locale to be used in formatting the date within file/directory listings
- setMessageKey(String) - Method in exception org.mockftpserver.fake.filesystem.FileSystemException
-
- setOwner(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
- setPassword(String) - Method in class org.mockftpserver.fake.UserAccount
-
- setPasswordCheckedDuringValidation(boolean) - Method in class org.mockftpserver.fake.UserAccount
-
- setPasswordRequired(boolean) - Method in class org.mockftpserver.stub.command.UserCommandHandler
-
Set true to indicate that a password is required.
- setPasswordRequiredForLogin(boolean) - Method in class org.mockftpserver.fake.UserAccount
-
- setPath(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
Set the path for this entry.
- setPath(String) - Method in exception org.mockftpserver.fake.filesystem.FileSystemException
-
- setPermissions(Permissions) - Method in class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
- setPermissionsFromString(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
-
- setPreliminaryReplyCode(int) - Method in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
Set the completion reply code sent before data transfer
- setPreliminaryReplyMessageKey(String) - Method in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
Set the message key for the completion reply text sent before data transfer
- setPreliminaryReplyText(String) - Method in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
-
Set the text of the completion reply sent before data transfer
- setReplyCode(int) - Method in class org.mockftpserver.core.command.AbstractStaticReplyCommandHandler
-
Set the reply code.
- setReplyMessageKey(String) - Method in class org.mockftpserver.core.command.AbstractStaticReplyCommandHandler
-
Set the message key for the reply text.
- setReplyText(String) - Method in class org.mockftpserver.core.command.AbstractStaticReplyCommandHandler
-
Set the reply text.
- setReplyTextBaseName(String) - Method in class org.mockftpserver.core.server.AbstractFtpServer
-
Set the reply text ResourceBundle to a new ResourceBundle with the specified base name,
accessible on the CLASSPATH.
- setReplyTextBundle(ResourceBundle) - Method in class org.mockftpserver.core.command.AbstractCommandHandler
-
Set the ResourceBundle containing the reply text messages
- setReplyTextBundle(ResourceBundle) - Method in interface org.mockftpserver.core.command.ReplyTextBundleAware
-
Set the ResourceBundle containing the reply text messages
- setReplyTextBundle(ResourceBundle) - Method in class org.mockftpserver.core.command.SimpleCompositeCommandHandler
-
Call setReplyTextBundle()
on each of the command handlers within the internal list.
- setReplyTextBundleIfAppropriate(CommandHandler, ResourceBundle) - Static method in class org.mockftpserver.core.command.ReplyTextBundleUtil
-
Set the
replyTextBundle
property of the specified CommandHandler to the
ResourceBundle
if and only if the
commandHandler
implements the
ReplyTextBundleAware
interface AND its
replyTextBundle
property
has not been set (is null).
- setServerConfiguration(ServerConfiguration) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
-
- setServerConfiguration(ServerConfiguration) - Method in interface org.mockftpserver.fake.ServerConfigurationAware
-
- setServerControlPort(int) - Method in class org.mockftpserver.core.server.AbstractFtpServer
-
Set the port number to which the server control connection socket will bind.
- setStatus(String) - Method in class org.mockftpserver.stub.command.StatCommandHandler
-
Set the contents of the status to send back as the reply text for this command
- setSystemName(String) - Method in class org.mockftpserver.fake.FakeFtpServer
-
- setSystemName(String) - Method in class org.mockftpserver.stub.command.SystCommandHandler
-
Set the systemName String to be returned by this command
- setSystemStatus(String) - Method in class org.mockftpserver.fake.FakeFtpServer
-
Set the system status description text, used by the STAT command handler.
- setUserAccounts(List) - Method in class org.mockftpserver.fake.FakeFtpServer
-
Add the UserAccount objects in the userAccountList
to the set of UserAccounts.
- setUsername(String) - Method in class org.mockftpserver.fake.UserAccount
-
- SimpleCompositeCommandHandler - Class in org.mockftpserver.core.command
-
Composite CommandHandler that manages an internal list of CommandHandlers to which it delegates.
- SimpleCompositeCommandHandler() - Constructor for class org.mockftpserver.core.command.SimpleCompositeCommandHandler
-
- SITE - Static variable in class org.mockftpserver.core.command.CommandNames
-
- SITE_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- SiteCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the SITE command.
- SiteCommandHandler() - Constructor for class org.mockftpserver.fake.command.SiteCommandHandler
-
- SiteCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the SITE (Site Parameters) command.
- SiteCommandHandler() - Constructor for class org.mockftpserver.stub.command.SiteCommandHandler
-
Constructor.
- SMNT - Static variable in class org.mockftpserver.core.command.CommandNames
-
- SMNT_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- SmntCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the SMNT command.
- SmntCommandHandler() - Constructor for class org.mockftpserver.fake.command.SmntCommandHandler
-
- SmntCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the SMNT (Structure Mount) command.
- SmntCommandHandler() - Constructor for class org.mockftpserver.stub.command.SmntCommandHandler
-
Constructor.
- socketFactory - Variable in class org.mockftpserver.core.session.DefaultSession
-
- SocketFactory - Interface in org.mockftpserver.core.socket
-
Interface for factory that create new
Socket
instances.
- start() - Method in class org.mockftpserver.core.server.AbstractFtpServer
-
Start a new Thread for this server instance
- STAT - Static variable in class org.mockftpserver.core.command.CommandNames
-
- STAT_FILE_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- STAT_SYSTEM_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- StatCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the STAT command.
- StatCommandHandler() - Constructor for class org.mockftpserver.fake.command.StatCommandHandler
-
- StatCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the STAT (Status) command.
- StatCommandHandler() - Constructor for class org.mockftpserver.stub.command.StatCommandHandler
-
Constructor.
- StaticReplyCommandHandler - Class in org.mockftpserver.core.command
-
CommandHandler that sends back the configured reply code and text.
- StaticReplyCommandHandler() - Constructor for class org.mockftpserver.core.command.StaticReplyCommandHandler
-
Create a new uninitialized instance
- StaticReplyCommandHandler(int) - Constructor for class org.mockftpserver.core.command.StaticReplyCommandHandler
-
Create a new instance with the specified replyCode
- StaticReplyCommandHandler(int, String) - Constructor for class org.mockftpserver.core.command.StaticReplyCommandHandler
-
Create a new instance with the specified replyCode and replyText
- stop() - Method in class org.mockftpserver.core.server.AbstractFtpServer
-
Stop this server instance and wait for it to terminate.
- STOR - Static variable in class org.mockftpserver.core.command.CommandNames
-
- StorCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the STOR command.
- StorCommandHandler() - Constructor for class org.mockftpserver.fake.command.StorCommandHandler
-
- StorCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the STOR (Store) command.
- StorCommandHandler() - Constructor for class org.mockftpserver.stub.command.StorCommandHandler
-
- STOU - Static variable in class org.mockftpserver.core.command.CommandNames
-
- StouCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the STOU command.
- StouCommandHandler() - Constructor for class org.mockftpserver.fake.command.StouCommandHandler
-
- StouCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the STOU (Store Unique) command.
- StouCommandHandler() - Constructor for class org.mockftpserver.stub.command.StouCommandHandler
-
- StringUtil - Class in org.mockftpserver.core.util
-
Contains static String-related utility methods.
- STRU - Static variable in class org.mockftpserver.core.command.CommandNames
-
- STRU_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- StruCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the STRU command.
- StruCommandHandler() - Constructor for class org.mockftpserver.fake.command.StruCommandHandler
-
- StruCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the STRU (File Structure) command.
- StruCommandHandler() - Constructor for class org.mockftpserver.stub.command.StruCommandHandler
-
Constructor.
- StubFtpServer - Class in org.mockftpserver.stub
-
StubFtpServer is the top-level class for a "stub" implementation of an FTP Server,
suitable for testing FTP client code or standing in for a live FTP server.
- StubFtpServer() - Constructor for class org.mockftpserver.stub.StubFtpServer
-
Create a new instance.
- switchToPassiveMode() - Method in class org.mockftpserver.core.session.DefaultSession
-
Switch to passive mode
- switchToPassiveMode() - Method in interface org.mockftpserver.core.session.Session
-
Switch to passive mode
- SYST - Static variable in class org.mockftpserver.core.command.CommandNames
-
- SYST_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
-
- SystCommandHandler - Class in org.mockftpserver.fake.command
-
CommandHandler for the SYST command.
- SystCommandHandler() - Constructor for class org.mockftpserver.fake.command.SystCommandHandler
-
- SystCommandHandler - Class in org.mockftpserver.stub.command
-
CommandHandler for the SYST (System) command.
- SystCommandHandler() - Constructor for class org.mockftpserver.stub.command.SystCommandHandler
-
Constructor.
- SYSTEM_ERROR - Static variable in class org.mockftpserver.core.command.ReplyCodes
-