Class ServiceUserWebConsolePlugin
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.apache.felix.webconsole.servlet.AbstractServlet
org.apache.sling.serviceuser.webconsole.impl.ServiceUserWebConsolePlugin
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class ServiceUserWebConsolePlugin
extends org.apache.felix.webconsole.servlet.AbstractServlet
Web console plugin to test configuration resolution.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
ConstructorsConstructorDescriptionServiceUserWebConsolePlugin(org.osgi.service.component.ComponentContext context, org.apache.sling.xss.XSSAPI xss, org.apache.sling.api.resource.ResourceResolverFactory resolverFactory, org.apache.sling.serviceusermapping.ServiceUserMapper mapper, org.osgi.service.cm.ConfigurationAdmin configAdmin) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected URLgetResource(String path) Called internally byAbstractServletto load resources.voidrenderContent(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Methods inherited from class org.apache.felix.webconsole.servlet.AbstractServlet
doGet, getVariableResolver, readTemplateFile, setNoCache, spoolResourceMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
COMPONENT_NAME
- See Also:
-
LABEL
- See Also:
-
TITLE
- See Also:
-
PN_ACTION
- See Also:
-
PN_ALERT
- See Also:
-
PN_APP_PATH
- See Also:
-
PN_BUNDLE
- See Also:
-
PN_NAME
- See Also:
-
PN_SUB_SERVICE
- See Also:
-
PN_CONFIGURATION_INSTANCE_IDENTIFIER
- See Also:
-
PN_USER
- See Also:
-
PN_USER_PATH
- See Also:
-
-
Constructor Details
-
ServiceUserWebConsolePlugin
public ServiceUserWebConsolePlugin(org.osgi.service.component.ComponentContext context, org.apache.sling.xss.XSSAPI xss, org.apache.sling.api.resource.ResourceResolverFactory resolverFactory, org.apache.sling.serviceusermapping.ServiceUserMapper mapper, org.osgi.service.cm.ConfigurationAdmin configAdmin)
-
-
Method Details
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException - Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
getResource
Called internally byAbstractServletto 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.giffrom the bundle, providing the plugin.- Overrides:
getResourcein classorg.apache.felix.webconsole.servlet.AbstractServlet- Parameters:
path- the path to read.- Returns:
- the URL of the resource or
nullif not found.
-
renderContent
public void renderContent(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException - Overrides:
renderContentin classorg.apache.felix.webconsole.servlet.AbstractServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-