org.apache.felix.webconsole.internal.core
Class BundlesServlet

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.core.BundlesServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig, OsgiManagerPlugin
Direct Known Subclasses:
AssemblyListRender

public class BundlesServlet
extends BaseWebConsolePlugin

The BundlesServlet TODO

See Also:
Serialized Form

Field Summary
static String BUNDLE_ID
           
static String LABEL
           
static String NAME
           
 
Fields inherited from class org.apache.felix.webconsole.AbstractWebConsolePlugin
ATTR_FILEUPLOAD
 
Constructor Summary
BundlesServlet()
           
 
Method Summary
 void activate(BundleContext bundleContext)
           
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
          Renders the web console page for the request.
protected  void doPost(HttpServletRequest req, HttpServletResponse resp)
           
protected  Bundle[] getBundles()
           
 String getLabel()
           
static org.apache.felix.webconsole.internal.core.BundlesServlet.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
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
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

LABEL

public static final String LABEL
See Also:
Constant Field Values

BUNDLE_ID

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

BundlesServlet

public BundlesServlet()
Method Detail

activate

public void activate(BundleContext bundleContext)
Specified by:
activate in interface OsgiManagerPlugin
Overrides:
activate in class AbstractWebConsolePlugin

getLabel

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

getTitle

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

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

doPost

protected void doPost(HttpServletRequest req,
                      HttpServletResponse resp)
               throws ServletException,
                      IOException
Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException

renderContent

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

getBundles

protected Bundle[] getBundles()

getRequestInfo

public static org.apache.felix.webconsole.internal.core.BundlesServlet.RequestInfo getRequestInfo(HttpServletRequest request)


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