Class ServiceUserWebConsolePlugin

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.felix.webconsole.AbstractWebConsolePlugin
org.apache.sling.serviceuser.webconsole.impl.ServiceUserWebConsolePlugin
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ServiceUserWebConsolePlugin extends org.apache.felix.webconsole.AbstractWebConsolePlugin
Web console plugin to test configuration resolution.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class org.apache.felix.webconsole.AbstractWebConsolePlugin

    ATTR_FILEUPLOAD, GET_RESOURCE_METHOD_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
     
    protected URL
    Called internally by AbstractWebConsolePlugin to load resources.
     
    protected void
    init(org.osgi.service.component.ComponentContext context)
     
    protected void
    renderContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     

    Methods inherited from class org.apache.felix.webconsole.AbstractWebConsolePlugin

    activate, deactivate, 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, doPut, doTrace, getLastModified, service, service

    Methods inherited from class javax.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, init, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ServiceUserWebConsolePlugin

      public ServiceUserWebConsolePlugin()
  • Method Details

    • doPost

      protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides:
      doPost in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in class org.apache.felix.webconsole.AbstractWebConsolePlugin
    • getResource

      protected URL getResource(String path)
      Called internally by AbstractWebConsolePlugin to load resources. This particular implementation depends on the label. As example, if the plugin is accessed as /system/console/abc, and the plugin resources are accessed like /system/console/abc/res/logo.gif, the code here will try load resource /res/logo.gif from the bundle, providing the plugin.
      Parameters:
      path - the path to read.
      Returns:
      the URL of the resource or null if not found.
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in class org.apache.felix.webconsole.AbstractWebConsolePlugin
    • init

      protected void init(org.osgi.service.component.ComponentContext context)
    • renderContent

      protected void renderContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Specified by:
      renderContent in class org.apache.felix.webconsole.AbstractWebConsolePlugin
      Throws:
      javax.servlet.ServletException
      IOException