Interface WebConsoleConstants
-
@Deprecated(since="2021-04-30") public interface WebConsoleConstantsDeprecated.The Apache Felix Webconsole is not supported in Cloud environments.WebConsoleConstants provides some common constants that are used by plugin developers.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_APP_ROOTDeprecated.The name of the request attribute providing the absolute path of the Web Console root (value is "felix.webconsole.appRoot").static java.lang.StringATTR_CONSOLE_VARIABLE_RESOLVERDeprecated.The name of the request attribute holding theVariableResolverfor the request (value is "felix.webconsole.variable.resolver").static java.lang.StringATTR_LABEL_MAPDeprecated.The name of the request attribute providing a mapping of labels to page titles of registered console plugins (value is "felix.webconsole.labelMap").static java.lang.StringATTR_LANG_MAPDeprecated.The name of the request attribute holding the languageMapfor the request (value is "felix.webconsole.langMap").static java.lang.StringATTR_PLUGIN_ROOTDeprecated.The name of the request attribute providing the absolute path of the current plugin (value is "felix.webconsole.pluginRoot").static java.lang.StringCONFIG_PRINTER_MODESDeprecated.The property marking a service as a configuration printer.static java.lang.StringCONFIG_PRINTER_WEB_UNESCAPEDDeprecated.Name of the optional service registration property indicating that aConfigurationPrinterservice will provide HTML output when used inwebmode.static java.lang.StringPLUGIN_CATEGORYDeprecated.The category under which the OSGi Manager plugin is listed in the top navigation by the OSGi Manager (value is "felix.webconsole.category").static java.lang.StringPLUGIN_CSS_REFERENCESDeprecated.The name of the service registration properties providing references to addition CSS files that should be loaded when rendering the header for a registered plugin.static java.lang.StringPLUGIN_LABELDeprecated.The URI address label under which the OSGi Manager plugin is called by the OSGi Manager (value is "felix.webconsole.label").static java.lang.StringPLUGIN_TITLEDeprecated.The title under which the OSGi Manager plugin is called by the OSGi Manager (value is "felix.webconsole.title").static java.lang.StringSERVICE_NAMEDeprecated.The name of the service to register as to be used as a "plugin" for the OSGi Manager (value is "javax.servlet.Servlet").
-
-
-
Field Detail
-
SERVICE_NAME
static final java.lang.String SERVICE_NAME
Deprecated.The name of the service to register as to be used as a "plugin" for the OSGi Manager (value is "javax.servlet.Servlet").- See Also:
- Constant Field Values
-
PLUGIN_LABEL
static final java.lang.String PLUGIN_LABEL
Deprecated.The URI address label under which the OSGi Manager plugin is called by the OSGi Manager (value is "felix.webconsole.label").This service registration property must be set to a single non-empty String value. Otherwise the
Servletservices will be ignored by the Felix Web Console and not be used as a plugin.- See Also:
- Constant Field Values
-
PLUGIN_TITLE
static final java.lang.String PLUGIN_TITLE
Deprecated.The title under which the OSGi Manager plugin is called by the OSGi Manager (value is "felix.webconsole.title").For
Servletservices not extending theAbstractWebConsolePluginthis property is required for the service to be used as a plugin. Otherwise the service is just ignored by the Felix Web Console.For
Servletservices extending from theAbstractWebConsolePluginabstract class this property is not technically required. To support lazy service access, e.g. for plugins implemented using the OSGi Service Factory pattern, the use of this service registration property is encouraged.- Since:
- 2.0.0
- See Also:
- Constant Field Values
-
PLUGIN_CATEGORY
static final java.lang.String PLUGIN_CATEGORY
Deprecated.The category under which the OSGi Manager plugin is listed in the top navigation by the OSGi Manager (value is "felix.webconsole.category").For
Servletservices not extending theAbstractWebConsolePluginthis property is required to declare a specific category. Otherwise the plugin is put into the default category.For
Servletservices extending from theAbstractWebConsolePluginabstract class this property is not technically required. To support lazy service access with categorization, e.g. for plugins implemented using the OSGi Service Factory pattern, the use of this service registration property is strongly encouraged. If the property is missing theAbstractWebConsolePlugin.getCategory()is called which should be overritten.- Since:
- 3.1.3; Web Console Bundle 4.0.2
- See Also:
- Constant Field Values
-
CONFIG_PRINTER_MODES
static final java.lang.String CONFIG_PRINTER_MODES
Deprecated.The property marking a service as a configuration printer. This can be any service having either a printConfiguration(PrintWriter) or printConfiguration(PrintWriter, String) method - this is according to the ConfigurationPrinter and ModeAwareConfigurationPrinter interfaces. If a service has aPLUGIN_LABEL,PLUGIN_TITLEand this property, it is treated as a configuration printer service.- Since:
- 3.1.2; Web Console Bundle 3.1.4
- See Also:
- Constant Field Values
-
CONFIG_PRINTER_WEB_UNESCAPED
static final java.lang.String CONFIG_PRINTER_WEB_UNESCAPED
Deprecated.Name of the optional service registration property indicating that aConfigurationPrinterservice will provide HTML output when used inwebmode. If this property is set totruethe configuration printer is expected to generate HTML output which will not be escaped. Otherwise output in web mode is escaped for plain text use.- Since:
- 3.1.2; Web Console Bundle 3.1.4
- See Also:
- Constant Field Values
-
PLUGIN_CSS_REFERENCES
static final java.lang.String PLUGIN_CSS_REFERENCES
Deprecated.The name of the service registration properties providing references to addition CSS files that should be loaded when rendering the header for a registered plugin.This property is expected to be a single string value, array of string values or a Collection (or Vector) of string values.
This service registration property is only used for plugins registered as
SERVICE_NAMEservices which do not extend theAbstractWebConsolePlugin. Extensions of theAbstractWebConsolePluginshould overwrite theAbstractWebConsolePlugin.getCssReferences()method to provide additional CSS resources.- Since:
- 2.0.0
- See Also:
- Constant Field Values
-
ATTR_APP_ROOT
static final java.lang.String ATTR_APP_ROOT
Deprecated.The name of the request attribute providing the absolute path of the Web Console root (value is "felix.webconsole.appRoot"). This consists of the servlet context path (fromHttpServletRequest.getContextPath()) and the Web Console servlet path (fromHttpServletRequest.getServletPath(),/system/consoleby default).The type of this request attribute is
String.- Since:
- 2.0.0
- See Also:
- Constant Field Values
-
ATTR_PLUGIN_ROOT
static final java.lang.String ATTR_PLUGIN_ROOT
Deprecated.The name of the request attribute providing the absolute path of the current plugin (value is "felix.webconsole.pluginRoot"). This consists of the servlet context path (fromServletRequest.getContextPath()), the configured path of the web console root (/system/consoleby default) and the plugin labelPLUGIN_LABEL.The type of this request attribute is
String.- Since:
- 1.2.12
- See Also:
- Constant Field Values
-
ATTR_LABEL_MAP
static final java.lang.String ATTR_LABEL_MAP
Deprecated.The name of the request attribute providing a mapping of labels to page titles of registered console plugins (value is "felix.webconsole.labelMap"). This map may be used to render a navigation of the console plugins as theAbstractWebConsolePlugin.renderTopNavigation(javax.servlet.http.HttpServletRequest, java.io.PrintWriter)method does.The type of this request attribute is
Map<String, String>.- Since:
- 2.0.0
- See Also:
- Constant Field Values
-
ATTR_CONSOLE_VARIABLE_RESOLVER
static final java.lang.String ATTR_CONSOLE_VARIABLE_RESOLVER
Deprecated.The name of the request attribute holding theVariableResolverfor the request (value is "felix.webconsole.variable.resolver").
-
ATTR_LANG_MAP
static final java.lang.String ATTR_LANG_MAP
Deprecated.The name of the request attribute holding the languageMapfor the request (value is "felix.webconsole.langMap"). This map contains the web console supported languages, which are automatically detected. The keys of the map are the language codes, like "en", "en_US" .. and so-on. The value for each key is the locale user-friendly name - exactly the same as returned byLocale.getDisplayLanguage(). The automatic detection of languages is very simple. It relies on having a 'res/flags/[lang].gif' file in the bundle. So translators should not only provide localized l10n/bundle.properties but also a flag image. The image should be obtained from http://famfamfam.com/lab/icons/flags/ and eventually renamed to the correct locale.- Since:
- 3.1.2
- See Also:
- Constant Field Values
-
-