@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 java.lang.String |
LABEL |
protected ResourceResolverFactory |
resourceResolverFactory |
static java.lang.String |
TITLE |
Constructor and Description |
---|
TopologyWebConsolePlugin() |
Modifier and Type | Method and Description |
---|---|
void |
activate(org.osgi.framework.BundleContext bundleContext) |
void |
deactivate() |
java.lang.String |
getLabel() |
protected ResourceResolver |
getResourceResolver() |
java.lang.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(java.io.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 java.lang.String LABEL
public static final java.lang.String TITLE
@Reference protected ResourceResolverFactory resourceResolverFactory
public java.lang.String getLabel()
getLabel
in class org.apache.felix.webconsole.AbstractWebConsolePlugin
public java.lang.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, java.io.IOException
renderContent
in class org.apache.felix.webconsole.AbstractWebConsolePlugin
javax.servlet.ServletException
java.io.IOException
protected ResourceResolver getResourceResolver() throws LoginException
LoginException
public void handleTopologyEvent(TopologyEvent event)
handleTopologyEvent
in interface TopologyEventListener
event
- The topology eventpublic void printConfiguration(java.io.PrintWriter pw)
Copyright © 2018 The Apache Software Foundation. All rights reserved.