Package org.apache.catalina.manager
Class JMXProxyServlet
- java.lang.Object
- 
- javax.servlet.GenericServlet
- 
- javax.servlet.http.HttpServlet
- 
- org.apache.catalina.manager.JMXProxyServlet
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- Servlet,- ServletConfig
 
 public class JMXProxyServlet extends HttpServlet This servlet will dump JMX attributes in a simple format and implement proxy services for modeler.- Author:
- Costin Manolache
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected javax.management.MBeanServermBeanServerMBean server.protected Registryregistry
 - 
Constructor SummaryConstructors Constructor Description JMXProxyServlet()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoGet(HttpServletRequest request, HttpServletResponse response)Process a GET request for the specified resource.voidgetAttribute(java.io.PrintWriter writer, java.lang.String onameStr, java.lang.String att, java.lang.String key)voidinit()Initialize this servlet.booleanisSupported(java.lang.String type)Determines if a type is supported by theJMXProxyServlet.voidlistBeans(java.io.PrintWriter writer, java.lang.String qry)voidsetAttribute(java.io.PrintWriter writer, java.lang.String onameStr, java.lang.String att, java.lang.String val)- 
Methods inherited from class javax.servlet.http.HttpServletdoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 - 
Methods inherited from class javax.servlet.GenericServletdestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
- 
 
- 
- 
- 
Field Detail- 
mBeanServerprotected transient javax.management.MBeanServer mBeanServer MBean server.
 - 
registryprotected transient Registry registry 
 
- 
 - 
Method Detail- 
initpublic void init() throws ServletExceptionInitialize this servlet.- Overrides:
- initin class- GenericServlet
- Throws:
- ServletException- if an exception occurs that interrupts the servlet's normal operation
 
 - 
doGetpublic void doGet(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException Process a GET request for the specified resource.- Overrides:
- doGetin class- HttpServlet
- Parameters:
- request- The servlet request we are processing
- response- The servlet response we are creating
- Throws:
- java.io.IOException- if an input/output error occurs
- ServletException- if a servlet-specified error occurs
- See Also:
- ServletResponse.setContentType(java.lang.String)
 
 - 
getAttributepublic void getAttribute(java.io.PrintWriter writer, java.lang.String onameStr, java.lang.String att, java.lang.String key)
 - 
setAttributepublic void setAttribute(java.io.PrintWriter writer, java.lang.String onameStr, java.lang.String att, java.lang.String val)
 - 
listBeanspublic void listBeans(java.io.PrintWriter writer, java.lang.String qry)
 - 
isSupportedpublic boolean isSupported(java.lang.String type) Determines if a type is supported by theJMXProxyServlet.- Parameters:
- type- The type to check
- Returns:
- Always returns true
 
 
- 
 
-