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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.felix.webconsole.AbstractWebConsolePlugin
ATTR_FILEUPLOAD, GET_RESOURCE_METHOD_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) getLabel()protected URLgetResource(String path) Called internally byAbstractWebConsolePluginto load resources.getTitle()protected voidinit(org.osgi.service.component.ComponentContext context) protected voidrenderContent(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, startResponseMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods 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:
doPostin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
getLabel
- Specified by:
getLabelin classorg.apache.felix.webconsole.AbstractWebConsolePlugin
-
getResource
Called internally byAbstractWebConsolePluginto 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.- Parameters:
path- the path to read.- Returns:
- the URL of the resource or
nullif not found.
-
getTitle
- Specified by:
getTitlein 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:
renderContentin classorg.apache.felix.webconsole.AbstractWebConsolePlugin- Throws:
javax.servlet.ServletExceptionIOException
-