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

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.ConfigManager
All Implemented Interfaces:
Serializable, Servlet, ServletConfig, OsgiManagerPlugin

public class ConfigManager
extends BaseWebConsolePlugin

The ConfigManager TODO

See Also:
Serialized Form

Field Summary
static String factoryPID
           
static String LABEL
           
static String NAME
           
static String PID
           
 
Fields inherited from class org.apache.felix.webconsole.AbstractWebConsolePlugin
ATTR_FILEUPLOAD
 
Constructor Summary
ConfigManager()
           
 
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  Map getAttributeDefinitionMap(Configuration config, String locale)
           
protected  Bundle getBundle(String bundleLocation)
           
protected  ConfigurationAdmin getConfigurationAdmin()
           
 String getLabel()
           
protected  Locale getLocale(HttpServletRequest request)
           
protected  Map getMetadataPids()
           
protected  MetaTypeService getMetaTypeService()
           
protected  ObjectClassDefinition getObjectClassDefinition(Bundle bundle, String pid, String locale)
           
protected  ObjectClassDefinition getObjectClassDefinition(Configuration config, String locale)
           
protected  ObjectClassDefinition getObjectClassDefinition(String pid, String locale)
           
 String getTitle()
           
 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

PID

public static final String PID
See Also:
Constant Field Values

factoryPID

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

ConfigManager

public ConfigManager()
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
See Also:
AbstractWebConsolePlugin.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

renderContent

public void renderContent(HttpServletRequest request,
                          HttpServletResponse response)
                   throws IOException
Specified by:
renderContent in class AbstractWebConsolePlugin
Throws:
IOException
See Also:
AbstractWebConsolePlugin.renderContent(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

getConfigurationAdmin

protected ConfigurationAdmin getConfigurationAdmin()

getMetaTypeService

protected MetaTypeService getMetaTypeService()

getMetadataPids

protected Map getMetadataPids()

getObjectClassDefinition

protected ObjectClassDefinition getObjectClassDefinition(Configuration config,
                                                         String locale)

getObjectClassDefinition

protected ObjectClassDefinition getObjectClassDefinition(Bundle bundle,
                                                         String pid,
                                                         String locale)

getObjectClassDefinition

protected ObjectClassDefinition getObjectClassDefinition(String pid,
                                                         String locale)

getAttributeDefinitionMap

protected Map getAttributeDefinitionMap(Configuration config,
                                        String locale)

getBundle

protected Bundle getBundle(String bundleLocation)

getLocale

protected Locale getLocale(HttpServletRequest request)


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