org.sandev.tools.ControlPanel
Class XHTMLControlPanelServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.sandev.tools.ControlPanel.XHTMLControlPanelServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class XHTMLControlPanelServlet
extends javax.servlet.http.HttpServlet

A wrapper for the platform control panel that simply calls through to the container for all display and update procesing. AUTOGENERATED FILE, DO NOT EDIT DIRECTLY.
source: declared in build
generator: org.sandev.generator.CtrlPanelServletGenerator
time: Jul 31, 2008 4:34:17 PM

See Also:
Serialized Form

Field Summary
static java.lang.String jmxCtrlPanelURLPrefix
           
 
Constructor Summary
XHTMLControlPanelServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Pass HTTP 'GET' request over to handleRequest method.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Pass HTTP 'POST' request over to handleRequest method.
protected  java.lang.String getLink(javax.management.ObjectInstance oi)
          Given an ObjectInstance, write out a link to the native JMX control panel for it.
protected  void handleRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Process the HTTP request and trap any errors.
protected  void writeNodeStructure(javax.servlet.ServletOutputStream sos)
          Write out a control structure of the nodes in this deployment.
protected  void writeUpgradeInfo(javax.servlet.ServletOutputStream sos)
          Footer information explaining how to change the link URLs.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jmxCtrlPanelURLPrefix

public static final java.lang.String jmxCtrlPanelURLPrefix
See Also:
Constant Field Values
Constructor Detail

XHTMLControlPanelServlet

public XHTMLControlPanelServlet()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
Pass HTTP 'GET' request over to handleRequest method.

Overrides:
doGet in class javax.servlet.http.HttpServlet

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
Pass HTTP 'POST' request over to handleRequest method.

Overrides:
doPost in class javax.servlet.http.HttpServlet

handleRequest

protected void handleRequest(javax.servlet.http.HttpServletRequest req,
                             javax.servlet.http.HttpServletResponse res)
Process the HTTP request and trap any errors.


writeNodeStructure

protected void writeNodeStructure(javax.servlet.ServletOutputStream sos)
                           throws java.io.IOException
Write out a control structure of the nodes in this deployment.

Throws:
java.io.IOException

getLink

protected java.lang.String getLink(javax.management.ObjectInstance oi)
Given an ObjectInstance, write out a link to the native JMX control panel for it.


writeUpgradeInfo

protected void writeUpgradeInfo(javax.servlet.ServletOutputStream sos)
                         throws java.io.IOException
Footer information explaining how to change the link URLs. Some containers may not provide a native JMX control panel interface, and others may want to use an aftermarket JMX monitor. That's done by changing the jmxCtrlPanelURLPrefix directly (normally as part of the build process for the particular deployment.

Throws:
java.io.IOException