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:
Serializable,Servlet,ServletConfig
This servlet will dump JMX attributes in a simple format and implement proxy services for modeler.
- Author:
- Costin Manolache
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(HttpServletRequest request, HttpServletResponse response) Process a GET request for the specified resource.voidgetAttribute(PrintWriter writer, String onameStr, String att, String key) voidinit()Initialize this servlet.booleanisSupported(String type) Determines if a type is supported by theJMXProxyServlet.voidlistBeans(PrintWriter writer, String qry) voidsetAttribute(PrintWriter writer, String onameStr, String att, String val) Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
mBeanServer
MBean server. -
registry
-
-
Constructor Details
-
JMXProxyServlet
public JMXProxyServlet()
-
-
Method Details
-
init
Initialize this servlet.- Overrides:
initin classGenericServlet- Throws:
ServletException- if an exception occurs that interrupts the servlet's normal operation
-
doGet
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException Process a GET request for the specified resource.- Overrides:
doGetin classHttpServlet- Parameters:
request- The servlet request we are processingresponse- The servlet response we are creating- Throws:
IOException- if an input/output error occursServletException- if a servlet-specified error occurs- See Also:
-
getAttribute
-
setAttribute
-
listBeans
-
isSupported
Determines if a type is supported by theJMXProxyServlet.- Parameters:
type- The type to check- Returns:
- Always returns
true
-