public interface WebConsoleConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_APP_ROOT
The name of the request attribute providing the absolute path of the
Web Console root (value is "felix.webconsole.appRoot").
|
static java.lang.String |
ATTR_CONSOLE_VARIABLE_RESOLVER
The name of the request attribute holding the
VariableResolver
for the request (value is "felix.webconsole.variable.resolver"). |
static java.lang.String |
ATTR_LABEL_MAP
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.String |
ATTR_LANG_MAP
The name of the request attribute holding the language
Map
for the request (value is "felix.webconsole.langMap"). |
static java.lang.String |
ATTR_PLUGIN_ROOT
The name of the request attribute providing the absolute path of the
current plugin (value is "felix.webconsole.pluginRoot").
|
static java.lang.String |
CONFIG_PRINTER_MODES
The property marking a service as a configuration printer.
|
static java.lang.String |
CONFIG_PRINTER_WEB_UNESCAPED
Name of the optional service registration property indicating that a
ConfigurationPrinter service will provide HTML output when used
in web mode. |
static java.lang.String |
PLUGIN_CATEGORY
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.String |
PLUGIN_CSS_REFERENCES
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.String |
PLUGIN_LABEL
The URI address label under which the OSGi Manager plugin is called by
the OSGi Manager (value is "felix.webconsole.label").
|
static java.lang.String |
PLUGIN_TITLE
The title under which the OSGi Manager plugin is called by
the OSGi Manager (value is "felix.webconsole.title").
|
static java.lang.String |
SERVICE_NAME
The name of the service to register as to be used as a "plugin" for
the OSGi Manager (value is "javax.servlet.Servlet").
|
static final java.lang.String SERVICE_NAME
static final java.lang.String PLUGIN_LABEL
This service registration property must be set to a single non-empty
String value. Otherwise the Servlet
services will
be ignored by the Felix Web Console and not be used as a plugin.
static final java.lang.String PLUGIN_TITLE
For Servlet
services not extending the
AbstractWebConsolePlugin
this property is required for the
service to be used as a plugin. Otherwise the service is just ignored
by the Felix Web Console.
For Servlet
services extending from the
AbstractWebConsolePlugin
abstract 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.
static final java.lang.String PLUGIN_CATEGORY
For Servlet
services not extending the
AbstractWebConsolePlugin
this property is required to declare a
specific category. Otherwise the plugin is put into the default category.
For Servlet
services extending from the
AbstractWebConsolePlugin
abstract 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 the
AbstractWebConsolePlugin.getCategory()
is called which should be
overritten.
static final java.lang.String CONFIG_PRINTER_MODES
PLUGIN_LABEL
, PLUGIN_TITLE
and
this property, it is treated as a configuration printer service.static final java.lang.String CONFIG_PRINTER_WEB_UNESCAPED
ConfigurationPrinter
service will provide HTML output when used
in web
mode. If this property is
set to true
the configuration printer is expected to
generate HTML output which will not be escaped. Otherwise output in web
mode is escaped for plain text use.static final java.lang.String PLUGIN_CSS_REFERENCES
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_NAME
services which do not extend the
AbstractWebConsolePlugin
. Extensions of the
AbstractWebConsolePlugin
should overwrite the
AbstractWebConsolePlugin.getCssReferences()
method to provide
additional CSS resources.
static final java.lang.String ATTR_APP_ROOT
HttpServletRequest.getContextPath()
)
and the Web Console servlet path (from
HttpServletRequest.getServletPath()
,
/system/console
by default).
The type of this request attribute is String
.
static final java.lang.String ATTR_PLUGIN_ROOT
ServletRequest.getContextPath()
),
the configured path of the web console root (/system/console
by default) and the plugin label PLUGIN_LABEL
.
The type of this request attribute is String
.
static final java.lang.String ATTR_LABEL_MAP
AbstractWebConsolePlugin.renderTopNavigation(javax.servlet.http.HttpServletRequest, java.io.PrintWriter)
method does.
The type of this request attribute is Map<String, String>
.
static final java.lang.String ATTR_CONSOLE_VARIABLE_RESOLVER
VariableResolver
for the request (value is "felix.webconsole.variable.resolver").static final java.lang.String ATTR_LANG_MAP
Map
for 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 by Locale.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.Copyright © 2010 - 2020 Adobe. All Rights Reserved