com.adventnet.html.staticssi
Class StaticMain

java.lang.Object
  extended by com.adventnet.html.staticssi.StaticMain

public class StaticMain
extends java.lang.Object

In the 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 HtmlMain 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 class is the common class to handle both type of html generation. The servlet should create an instance of this class and invoke corresponding functions from here.

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

Constructor Summary
StaticMain()
           
 
Method Summary
 java.lang.String displayFile(java.lang.String fName)
           
 java.lang.String getCurrentUser()
           
 void processGetRequest(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sres)
           
 void processPostRequest(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sres)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticMain

public StaticMain()
Method Detail

getCurrentUser

public java.lang.String getCurrentUser()

processGetRequest

public void processGetRequest(javax.servlet.http.HttpServletRequest sreq,
                              javax.servlet.http.HttpServletResponse sres)
                       throws javax.servlet.ServletException,
                              java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

processPostRequest

public void processPostRequest(javax.servlet.http.HttpServletRequest sreq,
                               javax.servlet.http.HttpServletResponse sres)
                        throws javax.servlet.ServletException,
                               java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

displayFile

public java.lang.String displayFile(java.lang.String fName)