Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.console » remote » [javadoc | source]
org.jboss.console.remote
public class: InvokerServlet [javadoc | source]
java.lang.Object
   javax.servlet.GenericServlet
      javax.servlet.http.HttpServlet
         org.jboss.console.remote.InvokerServlet

All Implemented Interfaces:
    Serializable, Servlet, ServletConfig

This servlet accepts a post containing a MarshalledInvocation, extracts the Invocation object, and then routes the invocation via JMX to either: 1. the MBean specified via the invokerName ini parameter 2. the MBean whose object name hash is specified by the invocation.getObjectName() value. This name's hash must have been entered into the Registry. The method signature of the invoker must be Object invoke(org.jboss.invocation.Invocation).
Method from org.jboss.console.remote.InvokerServlet Summary:
destroy,   doGet,   doPost,   getServletInfo,   init,   processRequest
Methods from javax.servlet.http.HttpServlet:
service
Methods from javax.servlet.GenericServlet:
destroy,   getInitParameter,   getInitParameterNames,   getServletConfig,   getServletContext,   getServletInfo,   getServletName,   init,   init,   log,   log,   service
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.console.remote.InvokerServlet Detail:
 public  void destroy() 
    Destroys the servlet.
 protected  void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException 
    Handles the HTTP GET method.
 protected  void doPost(HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException 
    Handles the HTTP POST method.
 public String getServletInfo() 
    Returns a short description of the servlet.
 public  void init(ServletConfig config) throws ServletException 
    Initializes the servlet.
 protected  void processRequest(HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException 
    Read a MarshalledInvocation and dispatch it to the target JMX object invoke(Invocation) object.