org.cougaar.pizza.servlet
Class HistoryServlet.HistoryFormatter

java.lang.Object
  extended byorg.cougaar.pizza.servlet.HistoryServlet.HistoryFormatter
Enclosing class:
HistoryServlet

protected class HistoryServlet.HistoryFormatter
extends java.lang.Object

The inner class used by the servlet to format the request results.


Field Summary
static int FORMAT_DATA
           
static int FORMAT_HTML
           
static int FORMAT_XML
           
 
Constructor Summary
HistoryServlet.HistoryFormatter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 void execute(javax.servlet.http.HttpServletResponse response)
          Execute the request - print the web page
protected  java.lang.String getHtmlForState()
          Print the actual table of events
protected  void processParams(javax.servlet.http.HttpServletRequest request)
          Interpret the Format requested (only HTML supported), sort the events as requested before we do printing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORMAT_DATA

public static final int FORMAT_DATA
See Also:
Constant Field Values

FORMAT_XML

public static final int FORMAT_XML
See Also:
Constant Field Values

FORMAT_HTML

public static final int FORMAT_HTML
See Also:
Constant Field Values
Constructor Detail

HistoryServlet.HistoryFormatter

public HistoryServlet.HistoryFormatter(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response)
                                throws java.io.IOException,
                                       javax.servlet.ServletException
Method Detail

processParams

protected void processParams(javax.servlet.http.HttpServletRequest request)
Interpret the Format requested (only HTML supported), sort the events as requested before we do printing.


execute

public void execute(javax.servlet.http.HttpServletResponse response)
             throws java.io.IOException
Execute the request - print the web page

Throws:
java.io.IOException

getHtmlForState

protected java.lang.String getHtmlForState()
Print the actual table of events