Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Licensed to the Apache Software Foundation (ASF) under one
   * or more contributor license agreements.  See the NOTICE file
   * distributed with this work for additional information
   * regarding copyright ownership.  The ASF licenses this file
   * to you under the Apache License, Version 2.0 (the
   * "License"); you may not use this file except in compliance
   * with the License.  You may obtain a copy of the License at
   *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
  */
 package org.apache.felix.webconsole;
 
 
 public interface WebConsoleConstants
 {

    
The name of the service to register as to be used as a "plugin" for the OSGi Manager (value is "javax.servlet.Servlet").
 
     public static final String SERVICE_NAME = "javax.servlet.Servlet";

    
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 Servlet services will be ignored by the Felix Web Console and not be used as a plugin.

 
     public static final String PLUGIN_LABEL = "felix.webconsole.label";

    
The title under which the OSGi Manager plugin is called by the OSGi Manager (value is "felix.webconsole.label").

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.

Since:
2.0.0
 
     public static final String PLUGIN_TITLE = "felix.webconsole.title";

    
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_NAME services which do not extend the AbstractWebConsolePlugin. Extensions of the AbstractWebConsolePlugin should overwrite the AbstractWebConsolePlugin.getCssReferences() method to provide additional CSS resources.

Since:
2.0.0
 
     public static final String PLUGIN_CSS_REFERENCES = "felix.webconsole.css";

    
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 (from HttpServletRequest.getContextPath()) and the Web Console servlet path (from HttpServletRequest.getServletPath(), /system/console by default).

The type of this request attribute is String.

Since:
2.0.0
 
     public static final String ATTR_APP_ROOT = "felix.webconsole.appRoot";

    
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 (from 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.

Since:
1.2.12
 
     public static final String ATTR_PLUGIN_ROOT = "felix.webconsole.pluginRoot";

    
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 the AbstractWebConsolePlugin.renderTopNavigation(javax.servlet.http.HttpServletRequest, java.io.PrintWriter) method does.

The type of this request attribute is Map<String, String>.

Since:
2.0.0
    public static final String ATTR_LABEL_MAP = "felix.webconsole.labelMap";
New to GrepCode? Check out our FAQ X