Package org.apache.catalina.manager
Class JMXProxyServlet
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- org.apache.catalina.manager.JMXProxyServlet
-
- All Implemented Interfaces:
Servlet
,ServletConfig
,java.io.Serializable
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 Summary
Fields Modifier and Type Field Description protected javax.management.MBeanServer
mBeanServer
MBean server.protected Registry
registry
-
Constructor Summary
Constructors Constructor Description JMXProxyServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doGet(HttpServletRequest request, HttpServletResponse response)
Process a GET request for the specified resource.void
getAttribute(java.io.PrintWriter writer, java.lang.String onameStr, java.lang.String att, java.lang.String key)
void
init()
Initialize this servlet.boolean
isSupported(java.lang.String type)
Determines if a type is supported by theJMXProxyServlet
.void
listBeans(java.io.PrintWriter writer, java.lang.String qry)
void
setAttribute(java.io.PrintWriter writer, java.lang.String onameStr, java.lang.String att, java.lang.String val)
-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
-
-
-
Field Detail
-
mBeanServer
protected transient javax.management.MBeanServer mBeanServer
MBean server.
-
registry
protected transient Registry registry
-
-
Method Detail
-
init
public void init() throws ServletException
Initialize this servlet.- Overrides:
init
in classGenericServlet
- Throws:
ServletException
- if an exception occurs that interrupts the servlet's normal operation
-
doGet
public void doGet(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
Process a GET request for the specified resource.- Overrides:
doGet
in classHttpServlet
- Parameters:
request
- The servlet request we are processingresponse
- The servlet response we are creating- Throws:
java.io.IOException
- if an input/output error occursServletException
- if a servlet-specified error occurs- See Also:
ServletResponse.setContentType(java.lang.String)
-
getAttribute
public void getAttribute(java.io.PrintWriter writer, java.lang.String onameStr, java.lang.String att, java.lang.String key)
-
setAttribute
public void setAttribute(java.io.PrintWriter writer, java.lang.String onameStr, java.lang.String att, java.lang.String val)
-
listBeans
public void listBeans(java.io.PrintWriter writer, java.lang.String qry)
-
isSupported
public boolean isSupported(java.lang.String type)
Determines if a type is supported by theJMXProxyServlet
.- Parameters:
type
- The type to check- Returns:
- Always returns
true
-
-