|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jSyncManager.SJS.Adapters.SMTPServer.AbstractSMTPServer.SmtpCommand
public abstract class AbstractSMTPServer.SmtpCommand
Handles the response of the system to a single command
Field Summary | |
---|---|
protected java.lang.String |
cmd
The string command value |
protected long |
mask
Single bit which represents this command |
Constructor Summary | |
---|---|
protected |
AbstractSMTPServer.SmtpCommand(java.lang.String cmd)
constructs a new command with the given command string. |
Method Summary | |
---|---|
protected void |
applyState()
Applies the state mask for this command to the state |
java.lang.String |
getCmd()
|
long |
getMask()
|
boolean |
isStateSet(java.lang.String... command)
Checks whether all state bits representing the given commands are set in the given state |
abstract java.lang.String |
process(java.lang.String args)
Processes the given request with this command handler implementation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String cmd
protected long mask
Constructor Detail |
---|
protected AbstractSMTPServer.SmtpCommand(java.lang.String cmd)
cmd
- command string which uniquely identifies this commandMethod Detail |
---|
protected void applyState()
public boolean isStateSet(java.lang.String... command)
public abstract java.lang.String process(java.lang.String args) throws java.lang.Exception
args
-
java.lang.Exception
public java.lang.String getCmd()
public long getMask()
|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |