public final class StaticReplyCommandHandler extends AbstractStaticReplyCommandHandler
replyCode property. If only the
 replyCode property is set, then the default reply text corresponding to that
 reply code is used in the response. You can optionally configure the reply text by setting
 the replyMessageKey or replyText property.
 Each invocation record stored by this CommandHandler contains no data elements.
replyCode, replyMessageKey, replyTextLOG| Constructor and Description | 
|---|
StaticReplyCommandHandler()
Create a new uninitialized instance 
 | 
StaticReplyCommandHandler(int replyCode)
Create a new instance with the specified replyCode 
 | 
StaticReplyCommandHandler(int replyCode,
                         String replyText)
Create a new instance with the specified replyCode and replyText 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
handleCommand(Command command,
             Session session,
             InvocationRecord invocationRecord)
Handle the specified command for the session. 
 | 
sendReply, sendReply, setReplyCode, setReplyMessageKey, setReplyTextclearInvocations, getInvocation, handleCommand, numberOfInvocations, sendReplyassertValidReplyCode, getReplyTextBundle, quotes, setReplyTextBundlepublic StaticReplyCommandHandler()
public StaticReplyCommandHandler(int replyCode)
replyCode - - the replyCode to useAssertFailedException - - if the replyCode is nullpublic StaticReplyCommandHandler(int replyCode,
                                 String replyText)
replyCode - - the replyCode to usereplyText - - the replyTextAssertFailedException - - if the replyCode is nullpublic void handleCommand(Command command, Session session, InvocationRecord invocationRecord)
AbstractTrackingCommandHandlerhandleCommand in class AbstractTrackingCommandHandlercommand - - the Command to be handledsession - - the session on which the Command was submittedinvocationRecord - - the InvocationRecord; CommandHandlers are expected to add
                         handler-specific data to the InvocationRecord, as appropriateAbstractTrackingCommandHandler.handleCommand(Command, org.mockftpserver.core.session.Session, InvocationRecord)Copyright © 2016. All rights reserved.