@Service(value={TopologyEventListener.class,javax.servlet.Servlet.class}) @Property(name="service.description",value="Apache Sling Web Console Plugin to display Background servlets and ExecutionEngine status") @Property(name="felix.webconsole.label",value="topology") @Property(name="felix.webconsole.title",value="Topology Management") @Property(name="felix.webconsole.category",value="Sling") @Property(name="felix.webconsole.configprinter.modes",value="zip") public class TopologyWebConsolePlugin extends org.apache.felix.webconsole.AbstractWebConsolePlugin implements TopologyEventListener
Modifier and Type | Field and Description |
---|---|
static String |
LABEL |
protected ResourceResolverFactory |
resourceResolverFactory |
static String |
TITLE |
Constructor and Description |
---|
TopologyWebConsolePlugin() |
Modifier and Type | Method and Description |
---|---|
void |
activate(org.osgi.framework.BundleContext bundleContext) |
void |
deactivate() |
String |
getLabel() |
protected ResourceResolver |
getResourceResolver() |
String |
getTitle() |
void |
handleTopologyEvent(TopologyEvent event)
keep a truncated history of the log events for information purpose (to be shown in the webconsole)
|
void |
printConfiguration(PrintWriter pw) |
protected void |
renderContent(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
doGet, endResponse, getBrandingPlugin, getBundle, getBundleContext, getCategory, getCssReferences, getParameter, getResourceProvider, getServletName, isHtmlRequest, log, log, readTemplateFile, renderMenu, renderTopNavigation, sendRedirect, setBrandingPlugin, setLogLevel, startResponse
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public static final String LABEL
public static final String TITLE
@Reference protected ResourceResolverFactory resourceResolverFactory
public String getLabel()
getLabel
in class org.apache.felix.webconsole.AbstractWebConsolePlugin
public String getTitle()
getTitle
in class org.apache.felix.webconsole.AbstractWebConsolePlugin
@Activate public void activate(org.osgi.framework.BundleContext bundleContext)
activate
in class org.apache.felix.webconsole.AbstractWebConsolePlugin
@Deactivate public void deactivate()
deactivate
in class org.apache.felix.webconsole.AbstractWebConsolePlugin
protected void renderContent(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
renderContent
in class org.apache.felix.webconsole.AbstractWebConsolePlugin
javax.servlet.ServletException
IOException
protected ResourceResolver getResourceResolver() throws LoginException
LoginException
public void handleTopologyEvent(TopologyEvent event)
handleTopologyEvent
in interface TopologyEventListener
event
- The topology eventpublic void printConfiguration(PrintWriter pw)
Copyright © 2017 The Apache Software Foundation. All rights reserved.