org.apache.karaf.webconsole.admin
Class AdminPlugin

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.karaf.webconsole.admin.AdminPlugin
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class AdminPlugin
extends org.apache.felix.webconsole.AbstractWebConsolePlugin

Felix Web Console plugin for interacting with the AdminService

See Also:
Serialized Form

Field Summary
static java.lang.String LABEL
           
static java.lang.String NAME
           
 
Fields inherited from class org.apache.felix.webconsole.AbstractWebConsolePlugin
ATTR_FILEUPLOAD, GET_RESOURCE_METHOD_NAME
 
Constructor Summary
AdminPlugin()
           
 
Method Summary
protected  void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 java.lang.String getLabel()
           
protected  java.net.URL getResource(java.lang.String path)
           
 java.lang.String getTitle()
           
protected  void renderContent(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 void setAdminService(AdminService adminService)
           
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 void start()
          Blueprint lifecycle callback methods
 void stop()
           
 
Methods inherited from class org.apache.felix.webconsole.AbstractWebConsolePlugin
activate, deactivate, doGet, endResponse, getBrandingPlugin, getBundle, getBundleContext, getCssReferences, getParameter, getResourceProvider, getServletName, isHtmlRequest, log, log, readTemplateFile, renderTopNavigation, sendRedirect, setBrandingPlugin, setLogLevel, 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 java.lang.String NAME
See Also:
Constant Field Values

LABEL

public static final java.lang.String LABEL
See Also:
Constant Field Values
Constructor Detail

AdminPlugin

public AdminPlugin()
Method Detail

start

public void start()
Blueprint lifecycle callback methods


stop

public void stop()

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in class org.apache.felix.webconsole.AbstractWebConsolePlugin

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in class org.apache.felix.webconsole.AbstractWebConsolePlugin

renderContent

protected void renderContent(javax.servlet.http.HttpServletRequest req,
                             javax.servlet.http.HttpServletResponse res)
                      throws javax.servlet.ServletException,
                             java.io.IOException
Specified by:
renderContent in class org.apache.felix.webconsole.AbstractWebConsolePlugin
Throws:
javax.servlet.ServletException
java.io.IOException

doPost

protected void doPost(javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse res)
               throws javax.servlet.ServletException,
                      java.io.IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

getResource

protected java.net.URL getResource(java.lang.String path)

setAdminService

public void setAdminService(AdminService adminService)
Parameters:
adminService - the adminService to set

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
Parameters:
bundleContext - the bundleContext to set


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