com.adventnet.html.dynamic
Class DynamicMain

java.lang.Object
  extended by com.adventnet.html.dynamic.DynamicMain

public class DynamicMain
extends java.lang.Object

In this case of HTTP communcation, the displayed html page can be generated in two ways.

          1. Dynamic Html Page generation.

          2. Customized Html Page generation using SSI tags.

In the first case the user don't need to type any html file for his instrumentation. The HtmlCreation and DynamicHtml classes will generate dynamic html files and take care of all the necessary operations like modify value, create value, etc.

In the second case, using the .shtml files generated from the MibCompiler that contains required ssi tags to display the instrumented information, the user can customize the html pages. This case is handled by StaticMain, HtmlParser, StaticUtil classes.

This class handles the dynamic html generation. The Jmx_dynamic servlet should create an instance of this class and invoke corresponding functions from here.

See Also:
com.adventnet.Dynamic, com.adventnet.ssiparser.DynamicHtml

Field Summary
 int CONFLICT
          HTTP error CONFLICT
 int FORBIDDEN
          HTTP error FORBIDDEN
 boolean getFromPost
           
 int NOT_AUTHORISED
          HTTP error NOT_AUTHORISED
 int NOT_FOUND
          HTTP error NOTFOUND
 
Constructor Summary
DynamicMain()
          Default Constructor for DynamicMain.
 
Method Summary
 java.lang.String processGetRequest(java.util.Hashtable table)
          Process the Get Request.The hashtable consists of all the Get Request Parameters.
 java.lang.String processPostRequest(java.util.Hashtable table)
          Process the Post Request.The hashtable consists of all the Post Request Parameters.
 void registerErrorInterface(DynErrorInterface intf)
          Registers the ErrorHtmlInterface.
 void registerHtmlInterface(HtmlInterface intf)
          Registers the HtmlInterface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

getFromPost

public boolean getFromPost

FORBIDDEN

public int FORBIDDEN
HTTP error FORBIDDEN


NOT_FOUND

public int NOT_FOUND
HTTP error NOTFOUND


NOT_AUTHORISED

public int NOT_AUTHORISED
HTTP error NOT_AUTHORISED


CONFLICT

public int CONFLICT
HTTP error CONFLICT

Constructor Detail

DynamicMain

public DynamicMain()
Default Constructor for DynamicMain.

Method Detail

registerHtmlInterface

public void registerHtmlInterface(HtmlInterface intf)
Registers the HtmlInterface.

Parameters:
name - the HtmlInterface object

registerErrorInterface

public void registerErrorInterface(DynErrorInterface intf)
Registers the ErrorHtmlInterface.

Parameters:
name - the DynErrorInterface object

processGetRequest

public java.lang.String processGetRequest(java.util.Hashtable table)
Process the Get Request.The hashtable consists of all the Get Request Parameters.

Parameters:
name - the hashtable table.
Returns:
the String consisting of HtmlTags.

processPostRequest

public java.lang.String processPostRequest(java.util.Hashtable table)
Process the Post Request.The hashtable consists of all the Post Request Parameters.

Parameters:
name - the hashtable table.
Returns:
the String consisting of HtmlTags.