Package | Description |
---|---|
org.mockftpserver.core.command | |
org.mockftpserver.core.server | |
org.mockftpserver.core.session | |
org.mockftpserver.fake.command | |
org.mockftpserver.stub.command |
Modifier and Type | Method and Description |
---|---|
void |
AbstractTrackingCommandHandler.handleCommand(Command command,
Session session)
Handle the specified command for the session.
|
void |
CommandHandler.handleCommand(Command command,
Session session)
Handle the specified command for the session.
|
void |
SimpleCompositeCommandHandler.handleCommand(Command command,
Session session) |
void |
ConnectCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
UnsupportedCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
protected abstract void |
AbstractTrackingCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord)
Handle the specified command for the session.
|
void |
StaticReplyCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
protected void |
AbstractStaticReplyCommandHandler.sendReply(Session session)
Send the reply using the replyCode and message key/text configured for this command handler.
|
protected void |
AbstractTrackingCommandHandler.sendReply(Session session,
int replyCode,
String replyMessageKey,
String replyText,
Object[] arguments)
Send a reply for this command on the control connection.
|
protected void |
AbstractStaticReplyCommandHandler.sendReply(Session session,
Object messageParameter)
Send the reply using the replyCode and message key/text configured for this command handler.
|
Modifier and Type | Method and Description |
---|---|
protected Session |
AbstractFtpServer.createSession(Socket clientSocket)
Create a new Session instance for the specified client Socket
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultSession
Default implementation of the
Session interface. |
Modifier and Type | Method and Description |
---|---|
protected String |
AbstractFakeCommandHandler.getRealPath(Session session,
String path)
Return the full, absolute path for the specified abstract pathname.
|
protected Object |
AbstractFakeCommandHandler.getRequiredSessionAttribute(Session session,
String name)
Return the value of the named attribute within the session.
|
protected UserAccount |
AbstractFakeCommandHandler.getUserAccount(Session session) |
protected void |
ReinCommandHandler.handle(Command command,
Session session) |
protected void |
RmdCommandHandler.handle(Command command,
Session session) |
protected void |
HelpCommandHandler.handle(Command command,
Session session) |
protected void |
DeleCommandHandler.handle(Command command,
Session session) |
protected void |
NoopCommandHandler.handle(Command command,
Session session) |
protected void |
SiteCommandHandler.handle(Command command,
Session session) |
protected void |
RestCommandHandler.handle(Command command,
Session session) |
protected void |
AborCommandHandler.handle(Command command,
Session session) |
protected void |
StatCommandHandler.handle(Command command,
Session session) |
protected void |
StruCommandHandler.handle(Command command,
Session session) |
protected void |
ListCommandHandler.handle(Command command,
Session session) |
protected void |
PortCommandHandler.handle(Command command,
Session session) |
protected void |
NlstCommandHandler.handle(Command command,
Session session) |
protected void |
EprtCommandHandler.handle(Command command,
Session session) |
protected void |
RntoCommandHandler.handle(Command command,
Session session) |
protected void |
PwdCommandHandler.handle(Command command,
Session session) |
protected void |
AcctCommandHandler.handle(Command command,
Session session) |
protected void |
AbstractStoreFileCommandHandler.handle(Command command,
Session session) |
protected void |
PasvCommandHandler.handle(Command command,
Session session) |
protected void |
QuitCommandHandler.handle(Command command,
Session session) |
protected void |
UserCommandHandler.handle(Command command,
Session session) |
protected void |
ModeCommandHandler.handle(Command command,
Session session) |
protected void |
PassCommandHandler.handle(Command command,
Session session) |
protected void |
RetrCommandHandler.handle(Command command,
Session session) |
protected void |
MkdCommandHandler.handle(Command command,
Session session) |
protected void |
EpsvCommandHandler.handle(Command command,
Session session) |
protected void |
SmntCommandHandler.handle(Command command,
Session session) |
protected void |
RnfrCommandHandler.handle(Command command,
Session session) |
protected void |
CwdCommandHandler.handle(Command command,
Session session) |
protected void |
AlloCommandHandler.handle(Command command,
Session session) |
protected void |
SystCommandHandler.handle(Command command,
Session session) |
protected void |
TypeCommandHandler.handle(Command command,
Session session) |
protected void |
CdupCommandHandler.handle(Command command,
Session session) |
protected abstract void |
AbstractFakeCommandHandler.handle(Command command,
Session session)
Handle the specified command for the session.
|
void |
AbstractFakeCommandHandler.handleCommand(Command command,
Session session)
Use template method to centralize and ensure common validation
|
protected void |
AbstractFakeCommandHandler.login(UserAccount userAccount,
Session session,
int replyCode,
String replyMessageKey)
Log in the specified user for the current session.
|
protected void |
AbstractFakeCommandHandler.sendReply(Session session,
int replyCode)
Send a reply for this command on the control connection.
|
protected void |
AbstractFakeCommandHandler.sendReply(Session session,
int replyCode,
List args)
Send a reply for this command on the control connection.
|
protected void |
AbstractFakeCommandHandler.sendReply(Session session,
int replyCode,
String messageKey)
Send a reply for this command on the control connection.
|
protected void |
AbstractFakeCommandHandler.sendReply(Session session,
int replyCode,
String messageKey,
List args)
Send a reply for this command on the control connection.
|
protected boolean |
AbstractFakeCommandHandler.validateUserAccount(String username,
Session session)
Validate the UserAccount for the specified username.
|
protected void |
AbstractFakeCommandHandler.verifyExecutePermission(Session session,
String path)
Verify that the current user has execute permission to the specified path
|
protected void |
AbstractFakeCommandHandler.verifyLoggedIn(Session session)
Verify that the current user (if any) has already logged in successfully.
|
protected void |
AbstractFakeCommandHandler.verifyReadPermission(Session session,
String path)
Verify that the current user has read permission to the specified path
|
protected void |
AbstractFakeCommandHandler.verifyWritePermission(Session session,
String path)
Verify that the current user has write permission to the specified path
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractStubDataCommandHandler.afterProcessData(Command command,
Session session,
InvocationRecord invocationRecord)
Perform any necessary logic after transferring data across the data connection.
|
protected void |
FileRetrCommandHandler.beforeProcessData(Command command,
Session session,
InvocationRecord invocationRecord) |
protected void |
AppeCommandHandler.beforeProcessData(Command command,
Session session,
InvocationRecord invocationRecord) |
protected void |
ListCommandHandler.beforeProcessData(Command command,
Session session,
InvocationRecord invocationRecord) |
protected void |
NlstCommandHandler.beforeProcessData(Command command,
Session session,
InvocationRecord invocationRecord) |
protected void |
AbstractStubDataCommandHandler.beforeProcessData(Command command,
Session session,
InvocationRecord invocationRecord)
Perform any necessary logic before transferring data across the data connection.
|
protected void |
RetrCommandHandler.beforeProcessData(Command command,
Session session,
InvocationRecord invocationRecord) |
protected void |
StorCommandHandler.beforeProcessData(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
ReinCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
RmdCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
HelpCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
DeleCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
NoopCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
SiteCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
RestCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
AborCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
StatCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
StruCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
PortCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord)
Handle the command
|
void |
EprtCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord)
Handle the command
|
void |
RntoCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
PwdCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
AcctCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
PasvCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
QuitCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
UserCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
AbstractStubDataCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord)
Handle the command.
|
void |
ModeCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
PassCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
MkdCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
EpsvCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
SmntCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
RnfrCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
CwdCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
AlloCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
SystCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
TypeCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
void |
CdupCommandHandler.handleCommand(Command command,
Session session,
InvocationRecord invocationRecord) |
protected void |
FileRetrCommandHandler.processData(Command command,
Session session,
InvocationRecord invocationRecord) |
protected void |
ListCommandHandler.processData(Command command,
Session session,
InvocationRecord invocationRecord) |
protected void |
NlstCommandHandler.processData(Command command,
Session session,
InvocationRecord invocationRecord) |
protected void |
AbstractStorCommandHandler.processData(Command command,
Session session,
InvocationRecord invocationRecord) |
protected abstract void |
AbstractStubDataCommandHandler.processData(Command command,
Session session,
InvocationRecord invocationRecord)
Abstract method placeholder for subclass transfer of data across the data connection.
|
protected void |
RetrCommandHandler.processData(Command command,
Session session,
InvocationRecord invocationRecord) |
protected void |
AbstractStubDataCommandHandler.sendFinalReply(Session session)
Send the final reply.
|
protected void |
StouCommandHandler.sendFinalReply(Session session)
Override the default implementation to send a custom reply text that includes the STOU response filename
|
Copyright © 2016. All rights reserved.