org.mockftpserver.core.command
Class ReplyTextBundleUtil
java.lang.Object
org.mockftpserver.core.command.ReplyTextBundleUtil
public final class ReplyTextBundleUtil
- extends Object
Contains common utility method to conditionally set the reply text ResourceBundle on a
CommandHandler instance.
- Version:
- $Revision: 184 $ - $Date: 2008-12-03 17:52:39 -0500 (Wed, 03 Dec 2008) $
- Author:
- Chris Mair
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplyTextBundleUtil
public ReplyTextBundleUtil()
setReplyTextBundleIfAppropriate
public static void setReplyTextBundleIfAppropriate(CommandHandler commandHandler,
ResourceBundle replyTextBundle)
- 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).
- Parameters:
commandHandler - - the CommandHandler instancereplyTextBundle - - the ResourceBundle to use for localizing reply text
- Throws:
AssertFailedException - - if the commandHandler is null
Copyright © 2014. All rights reserved.