AbstractServlet@Deprecated public abstract class SimpleWebConsolePlugin extends AbstractWebConsolePlugin
AbstractWebConsolePlugin and supports the
following features:
ATTR_FILEUPLOAD, ATTR_FILEUPLOAD_REPO, GET_RESOURCE_METHOD_NAME| Constructor and Description |
|---|
SimpleWebConsolePlugin(java.lang.String label,
java.lang.String title,
java.lang.String[] css)
Deprecated.
Creates new Simple Web Console Plugin with the default category
(
null) |
SimpleWebConsolePlugin(java.lang.String label,
java.lang.String title,
java.lang.String category,
java.lang.String[] css)
Deprecated.
Creates new Simple Web Console Plugin with the given category.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.osgi.framework.BundleContext bundleContext)
Deprecated.
This method is called from the Felix Web Console to ensure the
AbstractWebConsolePlugin is correctly setup.
|
void |
deactivate()
Deprecated.
This method will close all service trackers, created by
getService(String) method. |
java.lang.String |
getCategory()
Deprecated.
This method should return category string which will be used to render
the plugin in the navigation menu.
|
java.lang.String |
getLabel()
Deprecated.
Retrieves the label.
|
java.lang.Object |
getService(java.lang.String serviceName)
Deprecated.
Gets the service with the specified class name.
|
java.lang.String |
getServletName()
Deprecated.
Returns the title for this plugin as returned by
AbstractWebConsolePlugin.getTitle() |
java.lang.String |
getTitle()
Deprecated.
Retrieves the title of the plug-in.
|
SimpleWebConsolePlugin |
register(org.osgi.framework.BundleContext bc)
Deprecated.
This is an utility method.
|
void |
unregister()
Deprecated.
An utility method that removes the service, registered by the
register(BundleContext) method. |
getBrandingPlugin, getBundle, getParameter, getVariableResolver, log, log, setBrandingPlugin, setLogLevelpublic SimpleWebConsolePlugin(java.lang.String label,
java.lang.String title,
java.lang.String[] css)
null)label - the front label. See
AbstractWebConsolePlugin.getLabel()title - the plugin title . See
AbstractWebConsolePlugin.getTitle()css - the additional plugin CSS. See
AbstractWebConsolePlugin.getCssReferences()public SimpleWebConsolePlugin(java.lang.String label,
java.lang.String title,
java.lang.String category,
java.lang.String[] css)
label - the front label. See
AbstractWebConsolePlugin.getLabel()title - the plugin title . See
AbstractWebConsolePlugin.getTitle()category - the plugin's navigation category. See
AbstractWebConsolePlugin.getCategory()css - the additional plugin CSS. See
AbstractWebConsolePlugin.getCssReferences()public void activate(org.osgi.framework.BundleContext bundleContext)
AbstractWebConsolePluginactivate in class AbstractWebConsolePluginbundleContext - the context of the plugin bundlepublic java.lang.String getServletName()
AbstractWebConsolePluginAbstractWebConsolePlugin.getTitle()getServletName in interface javax.servlet.ServletConfiggetServletName in class AbstractWebConsolePluginGenericServlet.getServletName()public final java.lang.String getLabel()
AbstractWebConsolePluginAbstractWebConsolePlugin()
constructor is used.getLabel in class AbstractWebConsolePluginAbstractWebConsolePlugin.getLabel()public final java.lang.String getTitle()
AbstractWebConsolePluginAbstractWebConsolePlugin()
constructor is used.getTitle in class AbstractWebConsolePluginAbstractWebConsolePlugin.getTitle()public java.lang.String getCategory()
AbstractWebConsolePluginfelix.webconsole.category OSGi property. Currently only
single level categories are supported. So, this should be a simple
String.getCategory in class AbstractWebConsolePluginAbstractWebConsolePlugin.getCategory()public final SimpleWebConsolePlugin register(org.osgi.framework.BundleContext bc)
unregister() when the plugin is no longer
needed.bc - the bundle context used for service registration.public final void unregister()
register(BundleContext) method.public final java.lang.Object getService(java.lang.String serviceName)
ServiceTracker if the service is not already got.serviceName - the service name to obtainnull if missing.public void deactivate()
getService(String) method. If you override this method, don't
forget to call the super.deactivate in class AbstractWebConsolePluginAbstractWebConsolePlugin.deactivate()Copyright © 2010 - 2023 Adobe. All Rights Reserved