org.apache.felix.webconsole.internal.compendium
Class ComponentsServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.felix.webconsole.AbstractWebConsolePlugin
              extended by org.apache.felix.webconsole.internal.BaseWebConsolePlugin
                  extended by org.apache.felix.webconsole.internal.compendium.ComponentsServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig, OsgiManagerPlugin

public class ComponentsServlet
extends BaseWebConsolePlugin

See Also:
Serialized Form

Field Summary
static String COMPONENT_ID
           
static String LABEL
           
static String NAME
           
static String OPERATION
           
static String OPERATION_CONFIGURE
           
static String OPERATION_DISABLE
           
static String OPERATION_ENABLE
           
 
Fields inherited from class org.apache.felix.webconsole.AbstractWebConsolePlugin
ATTR_FILEUPLOAD
 
Constructor Summary
ComponentsServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
          Renders the web console page for the request.
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
           
protected  ConfigurationAdmin getConfigurationAdmin()
           
 String getLabel()
           
protected  MetaTypeService getMetaTypeService()
           
static org.apache.felix.webconsole.internal.compendium.ComponentsServlet.RequestInfo getRequestInfo(HttpServletRequest request)
           
 String getTitle()
           
protected  void renderContent(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class org.apache.felix.webconsole.internal.BaseWebConsolePlugin
deactivate, getLog, getPackageAdmin, getService, getStartLevel
 
Methods inherited from class org.apache.felix.webconsole.AbstractWebConsolePlugin
activate, endResponse, getBundleContext, getParameter, getServletName, renderTopNavigation, sendRedirect, startResponse
 
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, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.felix.webconsole.internal.OsgiManagerPlugin
activate
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

LABEL

public static final String LABEL
See Also:
Constant Field Values

COMPONENT_ID

public static final String COMPONENT_ID
See Also:
Constant Field Values

OPERATION

public static final String OPERATION
See Also:
Constant Field Values

OPERATION_ENABLE

public static final String OPERATION_ENABLE
See Also:
Constant Field Values

OPERATION_DISABLE

public static final String OPERATION_DISABLE
See Also:
Constant Field Values

OPERATION_CONFIGURE

public static final String OPERATION_CONFIGURE
See Also:
Constant Field Values
Constructor Detail

ComponentsServlet

public ComponentsServlet()
Method Detail

getTitle

public String getTitle()
Specified by:
getTitle in class AbstractWebConsolePlugin

getLabel

public String getLabel()
Specified by:
getLabel in class AbstractWebConsolePlugin

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws IOException
Overrides:
doPost in class HttpServlet
Throws:
IOException

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     IOException
Description copied from class: AbstractWebConsolePlugin
Renders the web console page for the request. This consist of the following four parts called in order:
  1. AbstractWebConsolePlugin.startResponse(HttpServletRequest, HttpServletResponse)
  2. AbstractWebConsolePlugin.renderTopNavigation(HttpServletRequest, PrintWriter)
  3. AbstractWebConsolePlugin.renderContent(HttpServletRequest, HttpServletResponse)
  4. AbstractWebConsolePlugin.endResponse(PrintWriter)

Overrides:
doGet in class AbstractWebConsolePlugin
Throws:
ServletException
IOException

renderContent

protected void renderContent(HttpServletRequest request,
                             HttpServletResponse response)
                      throws IOException
Specified by:
renderContent in class AbstractWebConsolePlugin
Throws:
IOException

getConfigurationAdmin

protected ConfigurationAdmin getConfigurationAdmin()

getMetaTypeService

protected MetaTypeService getMetaTypeService()

getRequestInfo

public static org.apache.felix.webconsole.internal.compendium.ComponentsServlet.RequestInfo getRequestInfo(HttpServletRequest request)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.