org.apache.qpid.management.servlet
Class ConnectQManToBroker

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.muse.core.platform.mini.MiniServlet
              extended by org.apache.qpid.management.servlet.ConnectQManToBroker
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class ConnectQManToBroker
extends org.apache.muse.core.platform.mini.MiniServlet

When QMan is started and a configuration file is given (via system property) with initial broker connection data(s), this servlet simply sends connect command(s) to QMan in order to estabilish the connection(s) to the requested broker(s).

See Also:
Serialized Form

Constructor Summary
ConnectQManToBroker()
           
 
Method Summary
 void init()
          Send one or more initial "connect" command(s) to QMan in order to estabilish a connection with broker found on the configuration file..
 void service(HttpServletRequest request, HttpServletResponse response)
          This is a startup module only so an override of the default servlet behaviour must be done in order to prevent incoming http requests processing.
 
Methods inherited from class org.apache.muse.core.platform.mini.MiniServlet
createIsolationLayer, doPost
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, 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
 

Constructor Detail

ConnectQManToBroker

public ConnectQManToBroker()
Method Detail

init

public void init()
Send one or more initial "connect" command(s) to QMan in order to estabilish a connection with broker found on the configuration file.. Note that this is done only if that configuration file is given (via system property) and it is valid.

Overrides:
init in class GenericServlet

service

public void service(HttpServletRequest request,
                    HttpServletResponse response)
             throws ServletException
This is a startup module only so an override of the default servlet behaviour must be done in order to prevent incoming http requests processing.

Overrides:
service in class HttpServlet
Parameters:
request - the http request.
response - the http response.
Throws:
ServletException - each time this method is called.


Licensed to the Apache Software Foundation