org.apache.qpid.management.web.action
Class BrokersManagementAction

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.qpid.management.web.action.BrokersManagementAction
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class BrokersManagementAction
extends HttpServlet

This controller is responsible to :

See Also:
Serialized Form

Constructor Summary
BrokersManagementAction()
           
 
Method Summary
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
          Retrieves all connected brokers (their connection data) and prepare the model that is then forwarded to the appropriate view page.
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
          Connects QMan with a new broker and forwards to the brokers list view page.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrokersManagementAction

public BrokersManagementAction()
Method Detail

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     IOException
Retrieves all connected brokers (their connection data) and prepare the model that is then forwarded to the appropriate view page.

Overrides:
doGet in class HttpServlet
Parameters:
request - the http request.
response - the http response.
Throws:
ServletException - in case of failure while forwarding to the view component.
IOException - in case of failure while forwarding to the view component.

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      IOException
Connects QMan with a new broker and forwards to the brokers list view page.

Overrides:
doPost in class HttpServlet
Parameters:
request - the http request.
response - the http response.
Throws:
ServletException - in case of failure while forwarding to the view component.
IOException - in case of failure while forwarding to the view component.


Licensed to the Apache Software Foundation