Package org.apache.sling.discovery.oak
Class TopologyWebConsolePlugin
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.felix.webconsole.AbstractWebConsolePlugin
org.apache.sling.discovery.oak.TopologyWebConsolePlugin
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
,TopologyEventListener
public class TopologyWebConsolePlugin
extends org.apache.felix.webconsole.AbstractWebConsolePlugin
implements TopologyEventListener
Simple webconsole which gives an overview of the topology visible by the
discovery service
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected ResourceResolverFactory
static final String
Fields inherited from class org.apache.felix.webconsole.AbstractWebConsolePlugin
ATTR_FILEUPLOAD, ATTR_FILEUPLOAD_REPO, GET_RESOURCE_METHOD_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(org.osgi.framework.BundleContext bundleContext) void
getLabel()
protected ResourceResolver
getTitle()
void
handleTopologyEvent
(TopologyEvent event) keep a truncated history of the log events for information purpose (to be shown in the webconsole)void
protected void
renderContent
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Methods inherited from class org.apache.felix.webconsole.AbstractWebConsolePlugin
doGet, endResponse, getBrandingPlugin, getBundle, getBundleContext, getCategory, getCssReferences, getParameter, getResourceProvider, getServletName, isHtmlRequest, log, log, readTemplateFile, renderMenu, renderTopNavigation, sendRedirect, setBrandingPlugin, setLogLevel, startResponse
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, init, init, log, log
-
Field Details
-
LABEL
- See Also:
-
TITLE
- See Also:
-
resourceResolverFactory
-
-
Constructor Details
-
TopologyWebConsolePlugin
public TopologyWebConsolePlugin()
-
-
Method Details
-
getLabel
- Specified by:
getLabel
in classorg.apache.felix.webconsole.AbstractWebConsolePlugin
-
getTitle
- Specified by:
getTitle
in classorg.apache.felix.webconsole.AbstractWebConsolePlugin
-
activate
public void activate(org.osgi.framework.BundleContext bundleContext) - Overrides:
activate
in classorg.apache.felix.webconsole.AbstractWebConsolePlugin
-
deactivate
public void deactivate()- Overrides:
deactivate
in classorg.apache.felix.webconsole.AbstractWebConsolePlugin
-
renderContent
protected void renderContent(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException - Specified by:
renderContent
in classorg.apache.felix.webconsole.AbstractWebConsolePlugin
- Throws:
javax.servlet.ServletException
IOException
-
getResourceResolver
- Throws:
LoginException
-
handleTopologyEvent
keep a truncated history of the log events for information purpose (to be shown in the webconsole)- Specified by:
handleTopologyEvent
in interfaceTopologyEventListener
- Parameters:
event
- The topology event
-
printConfiguration
-