org.apache.felix.webconsole.WebConsoleConstants.ATTR_APP_ROOT
.
org.apache.felix.webconsole.WebConsoleConstants.ATTR_APP_ROOT
insteadorg.apache.felix.webconsole.WebConsoleConstants.ATTR_LABEL_MAP
.
org.apache.felix.webconsole.WebConsoleConstants.ATTR_LABEL_MAP
insteadpublic static final String ATTR_LABEL_MAP_CATEGORIZED = WebConsoleConstants.ATTR_LABEL_MAP + ".categorized";
private static final String FRAMEWORK_PROP_MANAGER_ROOT = "felix.webconsole.manager.root"; //$NON-NLS-1$
private static final String FRAMEWORK_PROP_USER_NAME = "felix.webconsole.username"; //$NON-NLS-1$
private static final String FRAMEWORK_PROP_PASSWORD = "felix.webconsole.password"; //$NON-NLS-1$
private static final String FRAMEWORK_PROP_LOG_LEVEL = "felix.webconsole.loglevel"; //$NON-NLS-1$
static final String DEFAULT_PASSWORD = "{sha-256}jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg="; //$NON-NLS-1$
private static final String OLD_CONFIG_MANAGER_CLASS = "org.apache.felix.webconsole.internal.compendium.ConfigManager"; //$NON-NLS-1$
private static final String NEW_CONFIG_MANAGER_CLASS = "org.apache.felix.webconsole.internal.configuration.ConfigManager"; //$NON-NLS-1$
"org.apache.felix.webconsole.internal.configuration.ConfigurationAdminConfigurationPrinter", //$NON-NLS-1$
"org.apache.felix.webconsole.internal.compendium.PreferencesConfigurationPrinter", //$NON-NLS-1$
"org.apache.felix.webconsole.internal.compendium.LogServlet", "logs", //$NON-NLS-1$ //$NON-NLS-2$
"org.apache.felix.webconsole.internal.core.BundlesServlet", "bundles", //$NON-NLS-1$ //$NON-NLS-2$
"org.apache.felix.webconsole.internal.core.ServicesServlet", "services", //$NON-NLS-1$ //$NON-NLS-2$
"org.apache.felix.webconsole.internal.misc.LicenseServlet", "licenses", //$NON-NLS-1$ //$NON-NLS-2$
"org.apache.felix.webconsole.internal.system.VMStatPlugin", "vmstat", //$NON-NLS-1$ //$NON-NLS-2$
ConfigurationUtil.getProperty( bundleContext, FRAMEWORK_PROP_MANAGER_ROOT, DEFAULT_MANAGER_ROOT ) );
new Integer( ConfigurationUtil.getProperty( bundleContext, FRAMEWORK_PROP_LOG_LEVEL, DEFAULT_LOG_LEVEL ) ) );
this.configurationListener = bundleContext.registerService( "org.osgi.service.cm.ManagedService", //$NON-NLS-1$
put( Constants.SERVICE_DESCRIPTION, "OSGi Management Console Configuration Receiver" ); //$NON-NLS-1$
private voidensureLocaleCookieSet(HttpServletRequest request, HttpServletResponse response, Locale locale) {
final Map labelMap = holder.getLocalizedLabelMap( resourceBundleManager, locale, this.defaultCategory );
for ( int dot = label.indexOf( '.', last ); plugin == null && dot > last; last = dot + 1, dot = label
ServletContext.log(String)
method if the
configured log level is less than or equal to the given level
.
Note, that the level
parameter is only used to decide whether
the GenericServlet.log(String)
method is called or not. The
actual implementation of the GenericServlet.log
method is
outside of the control of this method.
If the servlet has not been initialized yet or has already been destroyed the message is printed to stderr.
level
The log level at which to log the messagemessage
The message to logServletContext.log(String, Throwable)
method if
the configured log level is less than or equal to the given
level
.
Note, that the level
parameter is only used to decide whether
the GenericServlet.log(String, Throwable)
method is called
or not. The actual implementation of the GenericServlet.log
method is outside of the control of this method.
If the servlet has not been initialized yet or has already been destroyed the message is printed to stderr.
level
The log level at which to log the messagemessage
The message to logt
The Throwable
to log with the messageprivateHttpServiceTracker(final OsgiManager osgiManager, final String httpServiceSelector, final Filter httpServiceFilter)
holder.setDefaultPluginLabel(ConfigurationUtil.getProperty(config, PROP_DEFAULT_RENDER, DEFAULT_PAGE));
String newWebManagerRoot = ConfigurationUtil.getProperty(config, PROP_MANAGER_ROOT, DEFAULT_MANAGER_ROOT);
this.defaultCategory = ConfigurationUtil.getProperty( config, PROP_CATEGORY, DEFAULT_CATEGORY );
true
if the list of enabled plugins is
configured but the plugin is not contained in that list.
This method is intended to be used only for PluginHolder.InternalPlugin.isEnabled()