public class ServiceUserWebConsolePlugin
extends org.apache.felix.webconsole.AbstractWebConsolePlugin
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_NAME |
static String |
LABEL |
static String |
PN_ACTION |
static String |
PN_ALERT |
static String |
PN_APP_PATH |
static String |
PN_BUNDLE |
static String |
PN_NAME |
static String |
PN_SUB_SERVICE |
static String |
PN_USER |
static String |
PN_USER_PATH |
static String |
TITLE |
Constructor and Description |
---|
ServiceUserWebConsolePlugin() |
Modifier and Type | Method and Description |
---|---|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
getLabel() |
protected URL |
getResource(String path)
Called internally by
AbstractWebConsolePlugin to load resources. |
String |
getTitle() |
protected void |
init(org.osgi.service.component.ComponentContext context) |
protected void |
renderContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
activate, deactivate, doGet, endResponse, getBrandingPlugin, getBundle, getBundleContext, getCategory, getCssReferences, getParameter, getResourceProvider, getServletName, isHtmlRequest, log, log, readTemplateFile, renderMenu, renderTopNavigation, sendRedirect, setBrandingPlugin, setLogLevel, startResponse
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final String COMPONENT_NAME
public static final String LABEL
public static final String TITLE
public static final String PN_ACTION
public static final String PN_ALERT
public static final String PN_APP_PATH
public static final String PN_BUNDLE
public static final String PN_NAME
public static final String PN_SUB_SERVICE
public static final String PN_USER
public static final String PN_USER_PATH
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public String getLabel()
getLabel
in class org.apache.felix.webconsole.AbstractWebConsolePlugin
protected URL getResource(String path)
AbstractWebConsolePlugin
to load resources.
This particular implementation depends on the label. As example, if the
plugin is accessed as /system/console/abc
, and the plugin
resources are accessed like /system/console/abc/res/logo.gif
,
the code here will try load resource /res/logo.gif
from the
bundle, providing the plugin.path
- the path to read.null
if not found.public String getTitle()
getTitle
in class org.apache.felix.webconsole.AbstractWebConsolePlugin
protected void init(org.osgi.service.component.ComponentContext context)
protected void renderContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
renderContent
in class org.apache.felix.webconsole.AbstractWebConsolePlugin
javax.servlet.ServletException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.