Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W X 

A

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

B

beforeProcessData(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
Perform any necessary logic before transferring data across the data connection.
beforeProcessData(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.AppeCommandHandler
 
beforeProcessData(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.FileRetrCommandHandler
 
beforeProcessData(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.ListCommandHandler
 
beforeProcessData(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.NlstCommandHandler
 
beforeProcessData(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.RetrCommandHandler
 
beforeProcessData(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.StorCommandHandler
 

C

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.

D

DEFAULT - Static variable in class org.mockftpserver.fake.filesystem.Permissions
 
DEFAULT_CLIENT_DATA_PORT - Static variable in class org.mockftpserver.core.session.DefaultSession
 
DEFAULT_GROUP - Static variable in class org.mockftpserver.fake.UserAccount
 
DEFAULT_PERMISSIONS_FOR_NEW_DIRECTORY - Static variable in class org.mockftpserver.fake.UserAccount
 
DEFAULT_PERMISSIONS_FOR_NEW_FILE - Static variable in class org.mockftpserver.fake.UserAccount
 
DEFAULT_USER - Static variable in class org.mockftpserver.fake.UserAccount
 
defaultIfNullOrEmpty(String, String) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
Return the string unless it is null or empty, in which case return the defaultString.
DefaultServerSocketFactory - Class in org.mockftpserver.core.socket
Default implementation of the ServerSocketFactory; creates standard ServerSocket instances.
DefaultServerSocketFactory() - Constructor for class org.mockftpserver.core.socket.DefaultServerSocketFactory
 
DefaultSession - Class in org.mockftpserver.core.session
Default implementation of the Session interface.
DefaultSession(Socket, Map) - Constructor for class org.mockftpserver.core.session.DefaultSession
Create a new initialized instance
DefaultSocketFactory - Class in org.mockftpserver.core.socket
Default implementation of the SocketFactory; creates standard Socket instances.
DefaultSocketFactory() - Constructor for class org.mockftpserver.core.socket.DefaultSocketFactory
 
DELE - Static variable in class org.mockftpserver.core.command.CommandNames
 
DELE_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
DeleCommandHandler - Class in org.mockftpserver.fake.command
CommandHandler for the DELE command.
DeleCommandHandler() - Constructor for class org.mockftpserver.fake.command.DeleCommandHandler
 
DeleCommandHandler - Class in org.mockftpserver.stub.command
CommandHandler for the DELE (Delete) command.
DeleCommandHandler() - Constructor for class org.mockftpserver.stub.command.DeleCommandHandler
Constructor.
delete(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
Delete the file or directory specified by the path.
delete(String) - Method in interface org.mockftpserver.fake.filesystem.FileSystem
Delete the file or directory specified by the path.
DirectoryEntry - Class in org.mockftpserver.fake.filesystem
File system entry representing a directory
DirectoryEntry() - Constructor for class org.mockftpserver.fake.filesystem.DirectoryEntry
Construct a new instance without setting its path
DirectoryEntry(String) - Constructor for class org.mockftpserver.fake.filesystem.DirectoryEntry
Construct a new instance with the specified value for its path
DirectoryListingFormatter - Interface in org.mockftpserver.fake.filesystem
Interface for an object that can format a file system directory listing.

E

endOfLine() - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
Return the end-of-line character(s) used when building multi-line responses
EPRT - Static variable in class org.mockftpserver.core.command.CommandNames
 
EPRT_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
EprtCommandHandler - Class in org.mockftpserver.fake.command
CommandHandler for the EPRT command.
EprtCommandHandler() - Constructor for class org.mockftpserver.fake.command.EprtCommandHandler
 
EprtCommandHandler - Class in org.mockftpserver.stub.command
CommandHandler for the EPRT command.
EprtCommandHandler() - Constructor for class org.mockftpserver.stub.command.EprtCommandHandler
Constructor.
EPSV - Static variable in class org.mockftpserver.core.command.CommandNames
 
EPSV_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
EpsvCommandHandler - Class in org.mockftpserver.fake.command
CommandHandler for the EPSV command.
EpsvCommandHandler() - Constructor for class org.mockftpserver.fake.command.EpsvCommandHandler
 
EpsvCommandHandler - Class in org.mockftpserver.stub.command
CommandHandler for the EPSV (Extended Address Passive Mode) command.
EpsvCommandHandler() - Constructor for class org.mockftpserver.stub.command.EpsvCommandHandler
Constructor.
equalOrBothNull(String, String) - Method in class org.mockftpserver.fake.UserAccount
Return true only if both Strings are null or they are equal (have the same contents).
equals(Object) - Method in class org.mockftpserver.core.command.Command
 
equals(Object) - Method in class org.mockftpserver.fake.filesystem.Permissions
 
exists(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
Return true if there exists a file or directory at the specified path
exists(String) - Method in interface org.mockftpserver.fake.filesystem.FileSystem
Return true if there exists a file or directory at the specified path

F

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

G

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
 

H

handle(Command, Session) - Method in class org.mockftpserver.fake.command.AborCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
Handle the specified command for the session.
handle(Command, Session) - Method in class org.mockftpserver.fake.command.AbstractStoreFileCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.AcctCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.AlloCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.CdupCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.CwdCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.DeleCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.EprtCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.EpsvCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.HelpCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.ListCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.MkdCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.ModeCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.NlstCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.NoopCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.PassCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.PasvCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.PortCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.PwdCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.QuitCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.ReinCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.RestCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.RetrCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.RmdCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.RnfrCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.RntoCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.SiteCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.SmntCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.StatCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.StruCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.SystCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.TypeCommandHandler
 
handle(Command, Session) - Method in class org.mockftpserver.fake.command.UserCommandHandler
 
handleCommand(Command, Session) - Method in class org.mockftpserver.core.command.AbstractTrackingCommandHandler
Handle the specified command for the session.
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.core.command.AbstractTrackingCommandHandler
Handle the specified command for the session.
handleCommand(Command, Session) - Method in interface org.mockftpserver.core.command.CommandHandler
Handle the specified command for the session.
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.core.command.ConnectCommandHandler
 
handleCommand(Command, Session) - Method in class org.mockftpserver.core.command.SimpleCompositeCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.core.command.StaticReplyCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.core.command.UnsupportedCommandHandler
 
handleCommand(Command, Session) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
Use template method to centralize and ensure common validation
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.AborCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.AbstractStubDataCommandHandler
Handle the command.
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.AcctCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.AlloCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.CdupCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.CwdCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.DeleCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.EprtCommandHandler
Handle the command
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.EpsvCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.HelpCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.MkdCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.ModeCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.NoopCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.PassCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.PasvCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.PortCommandHandler
Handle the command
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.PwdCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.QuitCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.ReinCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.RestCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.RmdCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.RnfrCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.RntoCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.SiteCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.SmntCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.StatCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.StruCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.SystCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.TypeCommandHandler
 
handleCommand(Command, Session, InvocationRecord) - Method in class org.mockftpserver.stub.command.UserCommandHandler
 
hashCode() - Method in class org.mockftpserver.core.command.Command
 
hashCode() - Method in class org.mockftpserver.fake.filesystem.Permissions
Return the hash code for this object.
HELP - Static variable in class org.mockftpserver.core.command.CommandNames
 
HELP_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
HelpCommandHandler - Class in org.mockftpserver.fake.command
CommandHandler for the HELP command.
HelpCommandHandler() - Constructor for class org.mockftpserver.fake.command.HelpCommandHandler
 
HelpCommandHandler - Class in org.mockftpserver.stub.command
CommandHandler for the HELP command.
HelpCommandHandler() - Constructor for class org.mockftpserver.stub.command.HelpCommandHandler
Constructor.
host - Variable in class org.mockftpserver.core.util.HostAndPort
 
HOST_KEY - Static variable in class org.mockftpserver.stub.command.EprtCommandHandler
 
HOST_KEY - Static variable in class org.mockftpserver.stub.command.PortCommandHandler
 
HostAndPort - Class in org.mockftpserver.core.util
A data-only (transfer) object representing a host (InetAddress) and port number that together uniquely identify an endpoint for a socket connection.
HostAndPort(InetAddress, int) - Constructor for class org.mockftpserver.core.util.HostAndPort
Construct a new instance with the specified host and port

I

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.

J

join(Collection, String) - Static method in class org.mockftpserver.core.util.StringUtil
Join the Strings within the parts Collection, inserting the delimiter in between elements

K

keySet() - Method in class org.mockftpserver.core.command.InvocationRecord
Returns a Set view of the keys for the data stored in this object.

L

LIST - Static variable in class org.mockftpserver.core.command.CommandNames
 
list(Object) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
Convenience method to return a List with the specified single item
list(Object, Object) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
Convenience method to return a List with the specified two items
ListCommandHandler - Class in org.mockftpserver.fake.command
CommandHandler for the LIST command.
ListCommandHandler() - Constructor for class org.mockftpserver.fake.command.ListCommandHandler
 
ListCommandHandler - Class in org.mockftpserver.stub.command
CommandHandler for the LIST command.
ListCommandHandler() - Constructor for class org.mockftpserver.stub.command.ListCommandHandler
 
listFiles(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
Return the List of FileSystemEntry objects for the files in the specified directory or group of files.
listFiles(String) - Method in interface org.mockftpserver.fake.filesystem.FileSystem
Return the List of FileSystemEntry objects for the files in the specified directory path.
listNames(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
Return the List of filenames in the specified directory path or file path.
listNames(String) - Method in interface org.mockftpserver.fake.filesystem.FileSystem
Return the List of filenames in the specified directory path.
lock() - Method in class org.mockftpserver.core.command.InvocationRecord
Lock this instance, making it immutable.
lockPath() - Method in class org.mockftpserver.fake.filesystem.AbstractFileSystemEntry
 
lockPath() - Method in interface org.mockftpserver.fake.filesystem.FileSystemEntry
Lock down the path so it cannot be changed
LOG - Variable in class org.mockftpserver.core.command.AbstractCommandHandler
 
LOG - Variable in class org.mockftpserver.core.server.AbstractFtpServer
 
login(UserAccount, Session, int, String) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
Log in the specified user for the current session.

M

MARKER_KEY - Static variable in class org.mockftpserver.stub.command.RestCommandHandler
 
MKD - Static variable in class org.mockftpserver.core.command.CommandNames
 
MKD_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
MkdCommandHandler - Class in org.mockftpserver.fake.command
CommandHandler for the MKD command.
MkdCommandHandler() - Constructor for class org.mockftpserver.fake.command.MkdCommandHandler
 
MkdCommandHandler - Class in org.mockftpserver.stub.command
CommandHandler for the MKD (Make Directory) command.
MkdCommandHandler() - Constructor for class org.mockftpserver.stub.command.MkdCommandHandler
Constructor.
MockFtpServerException - Exception in org.mockftpserver.core
Represents an error specific to the MockFtpServer project.
MockFtpServerException(String) - Constructor for exception org.mockftpserver.core.MockFtpServerException
Create a new instance with the specified detail message and no cause
MockFtpServerException(Throwable) - Constructor for exception org.mockftpserver.core.MockFtpServerException
Create a new instance with the specified detail message and no cause
MockFtpServerException(String, Throwable) - Constructor for exception org.mockftpserver.core.MockFtpServerException
Create a new instance with the specified detail message and cause
MODE - Static variable in class org.mockftpserver.core.command.CommandNames
 
MODE_KEY - Static variable in class org.mockftpserver.stub.command.ModeCommandHandler
 
MODE_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
ModeCommandHandler - Class in org.mockftpserver.fake.command
CommandHandler for the MODE command.
ModeCommandHandler() - Constructor for class org.mockftpserver.fake.command.ModeCommandHandler
 
ModeCommandHandler - Class in org.mockftpserver.stub.command
CommandHandler for the MODE command.
ModeCommandHandler() - Constructor for class org.mockftpserver.stub.command.ModeCommandHandler
Constructor.

N

NLST - Static variable in class org.mockftpserver.core.command.CommandNames
 
NlstCommandHandler - Class in org.mockftpserver.fake.command
CommandHandler for the NLST command.
NlstCommandHandler() - Constructor for class org.mockftpserver.fake.command.NlstCommandHandler
 
NlstCommandHandler - Class in org.mockftpserver.stub.command
CommandHandler for the NLST command.
NlstCommandHandler() - Constructor for class org.mockftpserver.stub.command.NlstCommandHandler
 
NONE - Static variable in class org.mockftpserver.fake.filesystem.Permissions
 
NOOP - Static variable in class org.mockftpserver.core.command.CommandNames
 
NOOP_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
NoopCommandHandler - Class in org.mockftpserver.fake.command
CommandHandler for the NOOP command.
NoopCommandHandler() - Constructor for class org.mockftpserver.fake.command.NoopCommandHandler
 
NoopCommandHandler - Class in org.mockftpserver.stub.command
CommandHandler for the NOOP command.
NoopCommandHandler() - Constructor for class org.mockftpserver.stub.command.NoopCommandHandler
Constructor.
normalize(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
Return the standard, normalized form of the path.
normalizedComponents(String) - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
Return the components of the specified path as a List.
normalizeName(String) - Static method in class org.mockftpserver.core.command.Command
Return the name, normalized to a common format - convert to upper case.
NOT_LOGGED_IN - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
NotLoggedInException - Exception in org.mockftpserver.core
Represents an error indicating that the current user has not yet logged in, but is required to in order to invoke the requested command.
NotLoggedInException(String) - Constructor for exception org.mockftpserver.core.NotLoggedInException
 
NotLoggedInException(Throwable) - Constructor for exception org.mockftpserver.core.NotLoggedInException
 
NotLoggedInException(String, Throwable) - Constructor for exception org.mockftpserver.core.NotLoggedInException
 
notNull(Object, String) - Static method in class org.mockftpserver.core.util.Assert
Verify that arg is not null.
notNullOrEmpty(Collection, String) - Static method in class org.mockftpserver.core.util.Assert
Verify that the collection is not null or empty.
notNullOrEmpty(Map, String) - Static method in class org.mockftpserver.core.util.Assert
Verify that the Map is not null or empty.
notNullOrEmpty(Object[], String) - Static method in class org.mockftpserver.core.util.Assert
Verify that the array is not null or empty.
notNullOrEmpty(String, String) - Static method in class org.mockftpserver.core.util.Assert
Verify that the String is not null or empty.
notNullOrEmpty(String) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
Return true if the specified string is null or empty
NUMBER_OF_BYTES_KEY - Static variable in class org.mockftpserver.stub.command.AlloCommandHandler
 
numberOfInvocations() - Method in class org.mockftpserver.core.command.AbstractTrackingCommandHandler
 
numberOfInvocations() - Method in interface org.mockftpserver.core.command.InvocationHistory
 
numberOfSessions() - Method in class org.mockftpserver.core.server.AbstractFtpServer
 

O

openDataConnection() - Method in class org.mockftpserver.core.session.DefaultSession
 
openDataConnection() - Method in interface org.mockftpserver.core.session.Session
Open the data connection, attaching to the predefined port number on the client
org.mockftpserver.core - package org.mockftpserver.core
 
org.mockftpserver.core.command - package org.mockftpserver.core.command
 
org.mockftpserver.core.server - package org.mockftpserver.core.server
 
org.mockftpserver.core.session - package org.mockftpserver.core.session
 
org.mockftpserver.core.socket - package org.mockftpserver.core.socket
 
org.mockftpserver.core.util - package org.mockftpserver.core.util
 
org.mockftpserver.fake - package org.mockftpserver.fake
 
org.mockftpserver.fake.command - package org.mockftpserver.fake.command
 
org.mockftpserver.fake.filesystem - package org.mockftpserver.fake.filesystem
 
org.mockftpserver.stub - package org.mockftpserver.stub
 
org.mockftpserver.stub.command - package org.mockftpserver.stub.command
 

P

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.

Q

QUIT - Static variable in class org.mockftpserver.core.command.CommandNames
 
QUIT_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
QuitCommandHandler - Class in org.mockftpserver.fake.command
CommandHandler for the QUIT command.
QuitCommandHandler() - Constructor for class org.mockftpserver.fake.command.QuitCommandHandler
 
QuitCommandHandler - Class in org.mockftpserver.stub.command
CommandHandler for the QUIT command.
QuitCommandHandler() - Constructor for class org.mockftpserver.stub.command.QuitCommandHandler
Constructor.
quotes(String) - Static method in class org.mockftpserver.core.command.AbstractCommandHandler
Return the specified text surrounded with double quotes

R

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
Reply code sent back when a FileSystemException is caught by the AbstractFakeCommandHandler.handleCommand(Command, Session) This defaults to ReplyCodes.EXISTING_FILE_ERROR (550).
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
 

S

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
 

T

toString() - Method in class org.mockftpserver.core.command.Command
Return the String representation of this object
toString() - Method in class org.mockftpserver.core.command.InvocationRecord
Return the String representation of this object
toString() - Method in class org.mockftpserver.fake.filesystem.AbstractFakeFileSystem
 
toString() - Method in class org.mockftpserver.fake.filesystem.DirectoryEntry
 
toString() - Method in class org.mockftpserver.fake.filesystem.FileEntry
 
toString() - Method in class org.mockftpserver.fake.filesystem.Permissions
 
toString() - Method in class org.mockftpserver.fake.UserAccount
 
TRANSFER_DATA_FINAL_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
TRANSFER_DATA_INITIAL_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
TYPE - Static variable in class org.mockftpserver.core.command.CommandNames
 
TYPE_INFO_KEY - Static variable in class org.mockftpserver.stub.command.TypeCommandHandler
 
TYPE_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
TypeCommandHandler - Class in org.mockftpserver.fake.command
CommandHandler for the TYPE command.
TypeCommandHandler() - Constructor for class org.mockftpserver.fake.command.TypeCommandHandler
 
TypeCommandHandler - Class in org.mockftpserver.stub.command
CommandHandler for the TYPE command.
TypeCommandHandler() - Constructor for class org.mockftpserver.stub.command.TypeCommandHandler
Constructor.

U

UnixDirectoryListingFormatter - Class in org.mockftpserver.fake.filesystem
Unix-specific implementation of the DirectoryListingFormatter interface.
UnixDirectoryListingFormatter() - Constructor for class org.mockftpserver.fake.filesystem.UnixDirectoryListingFormatter
 
UnixFakeFileSystem - Class in org.mockftpserver.fake.filesystem
Implementation of the FileSystem interface that simulates a Unix file system.
UnixFakeFileSystem() - Constructor for class org.mockftpserver.fake.filesystem.UnixFakeFileSystem
Construct a new instance and initialize the directoryListingFormatter to a UnixDirectoryListingFormatter.
UNSUPPORTED - Static variable in class org.mockftpserver.core.command.CommandNames
 
UnsupportedCommandHandler - Class in org.mockftpserver.core.command
CommandHandler that encapsulates the sending of the reply when a requested command is not recognized/supported.
UnsupportedCommandHandler() - Constructor for class org.mockftpserver.core.command.UnsupportedCommandHandler
Constructor.
USER - Static variable in class org.mockftpserver.core.command.CommandNames
 
USER_ACCOUNT - Static variable in class org.mockftpserver.core.session.SessionKeys
 
USER_ACCOUNT_NOT_VALID - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
USER_LOGGED_IN_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
USER_NEED_PASSWORD_OK - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
USER_NO_SUCH_USER - Static variable in class org.mockftpserver.core.command.ReplyCodes
 
UserAccount - Class in org.mockftpserver.fake
Represents a single user account on the server, including the username, password, home directory, list of groups to which this user belongs, and default permissions applied to newly-created files and directories.
UserAccount() - Constructor for class org.mockftpserver.fake.UserAccount
Construct a new uninitialized instance.
UserAccount(String, String, String) - Constructor for class org.mockftpserver.fake.UserAccount
Construct a new initialized instance.
UserCommandHandler - Class in org.mockftpserver.fake.command
CommandHandler for the USER command.
UserCommandHandler() - Constructor for class org.mockftpserver.fake.command.UserCommandHandler
 
UserCommandHandler - Class in org.mockftpserver.stub.command
CommandHandler for the USER command.
UserCommandHandler() - Constructor for class org.mockftpserver.stub.command.UserCommandHandler
Constructor.
USERNAME - Static variable in class org.mockftpserver.core.session.SessionKeys
 
USERNAME_KEY - Static variable in class org.mockftpserver.stub.command.UserCommandHandler
 

V

validateUserAccount(String, Session) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
Validate the UserAccount for the specified username.
verifyExecutePermission(Session, String) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
Verify that the current user has execute permission to the specified path
verifyFileSystemCondition(boolean, String, String) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
Verify that the specified condition related to the file system is true, otherwise throw a FileSystemException.
verifyLoggedIn(Session) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
Verify that the current user (if any) has already logged in successfully.
verifyReadPermission(Session, String) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
Verify that the current user has read permission to the specified path
verifyWritePermission(Session, String) - Method in class org.mockftpserver.fake.command.AbstractFakeCommandHandler
Verify that the current user has write permission to the specified path

W

WindowsDirectoryListingFormatter - Class in org.mockftpserver.fake.filesystem
Windows-specific implementation of the DirectoryListingFormatter interface.
WindowsDirectoryListingFormatter() - Constructor for class org.mockftpserver.fake.filesystem.WindowsDirectoryListingFormatter
 
WindowsFakeFileSystem - Class in org.mockftpserver.fake.filesystem
Implementation of the FileSystem interface that simulates a Microsoft Windows file system.
WindowsFakeFileSystem() - Constructor for class org.mockftpserver.fake.filesystem.WindowsFakeFileSystem
Construct a new instance and initialize the directoryListingFormatter to a WindowsDirectoryListingFormatter.
WRITE_FILE_ERROR - Static variable in class org.mockftpserver.core.command.ReplyCodes
 

X

XPWD - Static variable in class org.mockftpserver.core.command.CommandNames
 
A B C D E F G H I J K L M N O P Q R S T U V W X 
Skip navigation links

Copyright © 2016. All rights reserved.