org.apache.servicemix.web.jmx
Class JMXServletSupport

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.servicemix.web.jmx.JMXServletSupport
All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
JMXServlet

public abstract class JMXServletSupport
extends HttpServlet

A useful base class for any JMS related servlet; there are various ways to map JMS operations to web requests so we put most of the common behaviour in a reusable base class.

Version:
$Revision: 356269 $
See Also:
Serialized Form

Field Summary
protected static String MANAGEMENT_CONTEXT_PROPERTY
           
 
Constructor Summary
JMXServletSupport()
           
 
Method Summary
protected  boolean asBoolean(HttpServletRequest request, String name)
          Converts the value of the named parameter into a boolean
 ManagementContext getManagementContext()
           
 MBeanServer getMBeanServer()
           
protected  ObjectName getObjectName(HttpServletRequest request)
           
protected  QueryExp getQueryExp(HttpServletRequest request)
           
 void init()
           
 void setManagementContext(ManagementContext managementContext)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MANAGEMENT_CONTEXT_PROPERTY

protected static final String MANAGEMENT_CONTEXT_PROPERTY
See Also:
Constant Field Values
Constructor Detail

JMXServletSupport

public JMXServletSupport()
Method Detail

init

public void init()
          throws ServletException
Overrides:
init in class GenericServlet
Throws:
ServletException

getMBeanServer

public MBeanServer getMBeanServer()

getManagementContext

public ManagementContext getManagementContext()

setManagementContext

public void setManagementContext(ManagementContext managementContext)

getQueryExp

protected QueryExp getQueryExp(HttpServletRequest request)
                        throws ServletException
Throws:
ServletException

getObjectName

protected ObjectName getObjectName(HttpServletRequest request)
                            throws ServletException
Throws:
ServletException

asBoolean

protected boolean asBoolean(HttpServletRequest request,
                            String name)
Converts the value of the named parameter into a boolean



Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.