public abstract class AbstractRestCommand extends java.lang.Object implements RestCommand
Modifier | Constructor and Description |
---|---|
protected |
AbstractRestCommand(java.lang.String name)
Construct a RestCommand given a name
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
evaluate(org.simpleframework.http.Request request,
org.simpleframework.http.Response response)
Evaluate the Command.
|
abstract cc.clayman.console.ManagementConsole |
getManagementConsole()
Get the ManagementConsole this is a command for.
|
java.lang.String |
getName()
Get the name of command as a string.
|
int |
hashCode()
Hash code
|
protected java.lang.String |
leadin()
Create the String to print out before a message
|
abstract void |
setManagementConsole(cc.clayman.console.ManagementConsole mc)
Set the ManagementConsole this is a command for.
|
protected void |
setName(java.lang.String n)
Set the name
|
protected AbstractRestCommand(java.lang.String name)
public abstract boolean evaluate(org.simpleframework.http.Request request, org.simpleframework.http.Response response)
evaluate
in interface RestCommand
public java.lang.String getName()
protected void setName(java.lang.String n)
public abstract cc.clayman.console.ManagementConsole getManagementConsole()
getManagementConsole
in interface Command
public abstract void setManagementConsole(cc.clayman.console.ManagementConsole mc)
setManagementConsole
in interface Command
public int hashCode()
hashCode
in class java.lang.Object
protected java.lang.String leadin()
User Space Routing 0.10.3