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
FieldsModifier and TypeFieldDescriptionstatic 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doPost
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) getLabel()
protected URL
getResource
(String path) Called internally byAbstractWebConsolePlugin
to load resources.getTitle()
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
-
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_USER
- See Also:
-
PN_USER_PATH
- See Also:
-
-
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 classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
getLabel
- Specified by:
getLabel
in classorg.apache.felix.webconsole.AbstractWebConsolePlugin
-
getResource
Called internally byAbstractWebConsolePlugin
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
- Specified by:
getTitle
in classorg.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 classorg.apache.felix.webconsole.AbstractWebConsolePlugin
- Throws:
javax.servlet.ServletException
IOException
-