org.huihoo.jfox.jmx.adaptor.http
Class AbstractCommand
java.lang.Object
|
+--org.huihoo.jfox.jmx.adaptor.http.AbstractCommand
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- AgentCommand, CreateMBeanCommand, UnregisterMBeanCommand, ViewMBeanCommand
- public abstract class AbstractCommand
- extends java.lang.Object
- implements Command
- Author:
- Young Yang
|
Field Summary |
protected VelocityContext |
ctx
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ctx
protected VelocityContext ctx
AbstractCommand
public AbstractCommand()
execute
public VelocityContext execute(HttpRequest request,
HttpResponse response)
throws java.lang.Exception
- Specified by:
execute in interface Command
java.lang.Exception
doGet
public abstract void doGet(HttpRequest request,
HttpResponse response)
throws java.lang.Exception
- set the VelocityContext
java.lang.Exception
doPost
public void doPost(HttpRequest request,
HttpResponse response)
throws java.lang.Exception
java.lang.Exception
getTemplateName
public java.lang.String getTemplateName()
- Specified by:
getTemplateName in interface Command