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  org.apache.velocity.VelocityContext ctx
           
 
Constructor Summary
AbstractCommand()
           
 
Method Summary
abstract  void doGet(HttpRequest request, HttpResponse response)
          set the VelocityContext
 void doPost(HttpRequest request, HttpResponse response)
           
 org.apache.velocity.VelocityContext execute(HttpRequest request, HttpResponse response)
           
 java.lang.String getTemplateName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctx

protected org.apache.velocity.VelocityContext ctx
Constructor Detail

AbstractCommand

public AbstractCommand()
Method Detail

execute

public org.apache.velocity.VelocityContext execute(HttpRequest request,
                                                   HttpResponse response)
                                            throws java.lang.Exception
Specified by:
execute in interface Command

doGet

public abstract void doGet(HttpRequest request,
                           HttpResponse response)
                    throws java.lang.Exception
set the VelocityContext

doPost

public void doPost(HttpRequest request,
                   HttpResponse response)
            throws java.lang.Exception

getTemplateName

public java.lang.String getTemplateName()
Specified by:
getTemplateName in interface Command