org.mbari.siam.configt
Class ConfigToolHTMLWriter

java.lang.Object
  extended by org.mbari.siam.configt.ConfigToolHTMLWriter
All Implemented Interfaces:
HTMLWriter

public class ConfigToolHTMLWriter
extends java.lang.Object
implements HTMLWriter


Field Summary
protected static org.apache.log4j.Logger _log4j
          Log4J logger
protected  ServletApp _parent
           
 
Constructor Summary
ConfigToolHTMLWriter(ServletApp parent)
           
 
Method Summary
 void appendHelpSection(java.lang.StringBuffer pageHTML, java.lang.String title, java.lang.String name, java.lang.String anchorName, java.lang.StringBuffer synopsis, java.lang.StringBuffer description)
           
 java.lang.String getButtonBar(java.lang.String[] actionValues)
           
 java.lang.String getForm(java.lang.String method, java.lang.String action)
           
 java.lang.String getInput(java.lang.String type, java.lang.String name, java.lang.String value)
           
 void outEndPage(javax.servlet.http.HttpServletResponse res, javax.servlet.http.HttpServletRequest req)
          Generate page reminding users to reboot for changes to take effect.
 void outExit(javax.servlet.http.HttpServletResponse res, javax.servlet.http.HttpServletRequest req)
          Generate the main servlet page
 void outGeneric(java.lang.String pageID, javax.servlet.http.HttpServletResponse res, javax.servlet.http.HttpServletRequest req)
          Generate the Node Configuration main page
 void outHelp(javax.servlet.http.HttpServletResponse res, javax.servlet.http.HttpServletRequest req)
          Generate help page
 void outMain(javax.servlet.http.HttpServletResponse res, javax.servlet.http.HttpServletRequest req)
          Generate the main servlet page
 void outNodeSummary(javax.servlet.http.HttpServletResponse res, javax.servlet.http.HttpServletRequest req)
          Generate page summarizing node configuration options
 void outPage(java.lang.String pageID, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 void outPortMain(javax.servlet.http.HttpServletResponse res, javax.servlet.http.HttpServletRequest req)
          Generate the Port Configuration main page (port type selection)
 void outPortSummary(javax.servlet.http.HttpServletResponse res, javax.servlet.http.HttpServletRequest req)
          Generate page summarizing port configuration options
 void outService(javax.servlet.http.HttpServletResponse res, javax.servlet.http.HttpServletRequest req)
          Generate port service name selection page.
 void setParent(ServletApp parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log4j

protected static org.apache.log4j.Logger _log4j
Log4J logger


_parent

protected ServletApp _parent
Constructor Detail

ConfigToolHTMLWriter

public ConfigToolHTMLWriter(ServletApp parent)
Method Detail

setParent

public void setParent(ServletApp parent)
Specified by:
setParent in interface HTMLWriter

outPage

public void outPage(java.lang.String pageID,
                    javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws javax.servlet.ServletException,
                    java.io.IOException
Specified by:
outPage in interface HTMLWriter
Throws:
javax.servlet.ServletException
java.io.IOException

getInput

public java.lang.String getInput(java.lang.String type,
                                 java.lang.String name,
                                 java.lang.String value)

getForm

public java.lang.String getForm(java.lang.String method,
                                java.lang.String action)

getButtonBar

public java.lang.String getButtonBar(java.lang.String[] actionValues)

outExit

public void outExit(javax.servlet.http.HttpServletResponse res,
                    javax.servlet.http.HttpServletRequest req)
             throws javax.servlet.ServletException,
                    java.io.IOException
Generate the main servlet page

Throws:
javax.servlet.ServletException
java.io.IOException

outMain

public void outMain(javax.servlet.http.HttpServletResponse res,
                    javax.servlet.http.HttpServletRequest req)
             throws javax.servlet.ServletException,
                    java.io.IOException
Generate the main servlet page

Throws:
javax.servlet.ServletException
java.io.IOException

outGeneric

public void outGeneric(java.lang.String pageID,
                       javax.servlet.http.HttpServletResponse res,
                       javax.servlet.http.HttpServletRequest req)
                throws javax.servlet.ServletException,
                       java.io.IOException
Generate the Node Configuration main page

Throws:
javax.servlet.ServletException
java.io.IOException

outPortMain

public void outPortMain(javax.servlet.http.HttpServletResponse res,
                        javax.servlet.http.HttpServletRequest req)
                 throws javax.servlet.ServletException,
                        java.io.IOException
Generate the Port Configuration main page (port type selection)

Throws:
javax.servlet.ServletException
java.io.IOException

outService

public void outService(javax.servlet.http.HttpServletResponse res,
                       javax.servlet.http.HttpServletRequest req)
                throws javax.servlet.ServletException,
                       java.io.IOException
Generate port service name selection page. Select JAR files for Ports designated with the JAR port type.

Throws:
javax.servlet.ServletException
java.io.IOException

outNodeSummary

public void outNodeSummary(javax.servlet.http.HttpServletResponse res,
                           javax.servlet.http.HttpServletRequest req)
                    throws javax.servlet.ServletException,
                           java.io.IOException
Generate page summarizing node configuration options

Throws:
javax.servlet.ServletException
java.io.IOException

outPortSummary

public void outPortSummary(javax.servlet.http.HttpServletResponse res,
                           javax.servlet.http.HttpServletRequest req)
                    throws javax.servlet.ServletException,
                           java.io.IOException
Generate page summarizing port configuration options

Throws:
javax.servlet.ServletException
java.io.IOException

outEndPage

public void outEndPage(javax.servlet.http.HttpServletResponse res,
                       javax.servlet.http.HttpServletRequest req)
                throws javax.servlet.ServletException,
                       java.io.IOException
Generate page reminding users to reboot for changes to take effect.

Throws:
javax.servlet.ServletException
java.io.IOException

appendHelpSection

public void appendHelpSection(java.lang.StringBuffer pageHTML,
                              java.lang.String title,
                              java.lang.String name,
                              java.lang.String anchorName,
                              java.lang.StringBuffer synopsis,
                              java.lang.StringBuffer description)

outHelp

public void outHelp(javax.servlet.http.HttpServletResponse res,
                    javax.servlet.http.HttpServletRequest req)
             throws javax.servlet.ServletException,
                    java.io.IOException
Generate help page

Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.