public abstract class AbstractCommandHandler extends Object implements CommandHandler, ReplyTextBundleAware
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
LOG |
Constructor and Description |
---|
AbstractCommandHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertValidReplyCode(int replyCode)
Assert that the specified number is a valid reply code
|
ResourceBundle |
getReplyTextBundle()
Return the ResourceBundle containing the reply text messages
|
protected static String |
quotes(String text)
Return the specified text surrounded with double quotes
|
void |
setReplyTextBundle(ResourceBundle replyTextBundle)
Set the ResourceBundle containing the reply text messages
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleCommand
public ResourceBundle getReplyTextBundle()
getReplyTextBundle
in interface ReplyTextBundleAware
ReplyTextBundleAware.getReplyTextBundle()
public void setReplyTextBundle(ResourceBundle replyTextBundle)
setReplyTextBundle
in interface ReplyTextBundleAware
replyTextBundle
- - the replyTextBundle to setReplyTextBundleAware.setReplyTextBundle(java.util.ResourceBundle)
protected static String quotes(String text)
text
- - the text to surround with quotesAssertFailedException
- - if text is nullprotected void assertValidReplyCode(int replyCode)
replyCode
- - the reply code to checkAssertFailedException
- - if the replyCode is invalidCopyright © 2016. All rights reserved.