Home | History | Annotate | Download | only in command

Lines Matching refs:command

16 package org.mockftpserver.stub.command;

18 import org.mockftpserver.core.command.AbstractTrackingCommandHandler;
19 import org.mockftpserver.core.command.Command;
20 import org.mockftpserver.core.command.CommandHandler;
21 import org.mockftpserver.core.command.InvocationRecord;
22 import org.mockftpserver.core.command.ReplyCodes;
36 * Subclasses can optionally override the {@link #beforeProcessData(Command, Session, InvocationRecord)}
37 * method for logic before the data transfer or the {@link #afterProcessData(Command, Session, InvocationRecord)}
86 * Handle the command. Perform the following steps:
97 * @see org.mockftpserver.core.command.AbstractTrackingCommandHandler#handleCommand(org.mockftpserver.core.command.Command, org.mockftpserver.core.session.Session, org.mockftpserver.core.command.InvocationRecord)
99 public final void handleCommand(Command command, Session session, InvocationRecord invocationRecord) throws Exception {
101 beforeProcessData(command, session, invocationRecord);
105 processData(command, session, invocationRecord);
109 afterProcessData(command, session, invocationRecord);
124 * Do nothing by default. Subclasses should override to validate command parameters and
127 * @param command - the Command to be handled
128 * @param session - the session on which the Command was submitted
133 protected void beforeProcessData(Command command, Session session, InvocationRecord invocationRecord) throws Exception {
142 * @param command - the Command to be handled
143 * @param session - the session on which the Command was submitted
148 protected abstract void processData(Command command, Session session, InvocationRecord invocationRecord) throws Exception;
154 * @param command - the Command to be handled
155 * @param session - the session on which the Command was submitted
160 protected void afterProcessData(Command command, Session session, InvocationRecord invocationRecord) throws Exception {
165 * Send the preliminary reply for this command on the control connection.