java.lang.Cloneable
, java.lang.Runnable
Monitor
public class Listen extends CM1Command
Modifier and Type | Class | Description |
---|---|---|
protected static class |
Listen.ListenCriterium |
|
protected class |
Listen.Listener |
|
protected static class |
Listen.STATTYPE |
Modifier and Type | Field | Description |
---|---|---|
protected static SLinkedList<Listen.Listener> |
listeners |
className, parameters, req
Constructor | Description |
---|---|
Listen(RequestHandler req,
java.lang.String parameters) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getCommandWord() |
|
java.util.List<Listen.ListenCriterium> |
getCriterium(java.lang.String rest) |
|
java.lang.String |
getHelp(MOB user,
PhysicalAgent target,
java.lang.String rest) |
|
boolean |
parameterCheck(MOB user,
Listen.ListenCriterium crit) |
|
boolean |
passesSecurityCheck(MOB user,
PhysicalAgent target) |
|
void |
run() |
|
boolean |
securityCheck(MOB user,
Listen.ListenCriterium crit) |
|
protected void |
sendMsg(Listen.Listener listener,
java.lang.String msg) |
getTarget, isAuthorized, newInstance
protected static SLinkedList<Listen.Listener> listeners
public Listen(RequestHandler req, java.lang.String parameters)
public java.lang.String getCommandWord()
getCommandWord
in class CM1Command
protected void sendMsg(Listen.Listener listener, java.lang.String msg) throws java.io.IOException
java.io.IOException
public boolean securityCheck(MOB user, Listen.ListenCriterium crit)
public boolean parameterCheck(MOB user, Listen.ListenCriterium crit)
public java.util.List<Listen.ListenCriterium> getCriterium(java.lang.String rest) throws java.io.IOException
java.io.IOException
public void run()
public boolean passesSecurityCheck(MOB user, PhysicalAgent target)
passesSecurityCheck
in class CM1Command
public java.lang.String getHelp(MOB user, PhysicalAgent target, java.lang.String rest)
getHelp
in class CM1Command